diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java new file mode 100644 index 00000000000..3ca0a53a94f --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java @@ -0,0 +1,242 @@ +/* + * 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; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.cloud.spanner.executor.v1.stub.SpannerExecutorProxyStub; +import com.google.cloud.spanner.executor.v1.stub.SpannerExecutorProxyStubSettings; +import com.google.spanner.executor.v1.SpannerAsyncActionRequest; +import com.google.spanner.executor.v1.SpannerAsyncActionResponse; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service that executes SpannerActions asynchronously. + * + * <p>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: + * + * <pre>{@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<SpannerAsyncActionRequest, SpannerAsyncActionResponse> 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. + * } + * } + * }</pre> + * + * <p>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(). + * + * <table> + * <caption>Methods</caption> + * <tr> + * <th>Method</th> + * <th>Description</th> + * <th>Method Variants</th> + * </tr> + * <tr> + * <td><p> ExecuteActionAsync</td> + * <td><p> ExecuteActionAsync is a streaming call that starts executing a new Spanner action. + * <p> For each request, the server will reply with one or more responses, but only the last response will contain status in the outcome. + * <p> 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.</td> + * <td> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> executeActionAsyncCallable() + * </ul> + * </td> + * </tr> + * </table> + * + * <p>See the individual methods for example code. + * + * <p>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. + * + * <p>This class can be customized by passing in a custom instance of SpannerExecutorProxySettings + * to create(). For example: + * + * <p>To customize credentials: + * + * <pre>{@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); + * }</pre> + * + * <p>To customize the endpoint: + * + * <pre>{@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); + * }</pre> + * + * <p>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. + * + * <p>For each request, the server will reply with one or more responses, but only the last + * response will contain status in the outcome. + * + * <p>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. + * + * <p>Sample code: + * + * <pre>{@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<SpannerAsyncActionRequest, SpannerAsyncActionResponse> 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. + * } + * } + * }</pre> + */ + public final BidiStreamingCallable<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncCallable() { + return stub.executeActionAsyncCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java new file mode 100644 index 00000000000..768bf5d0e3a --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java @@ -0,0 +1,195 @@ +/* + * 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; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.spanner.executor.v1.stub.SpannerExecutorProxyStubSettings; +import com.google.spanner.executor.v1.SpannerAsyncActionRequest; +import com.google.spanner.executor.v1.SpannerAsyncActionResponse; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SpannerExecutorProxyClient}. + * + * <p>The default instance has everything set to sensible defaults: + * + * <ul> + * <li>The default service address (spanner-cloud-executor.googleapis.com) and default port (443) + * are used. + * <li>Credentials are acquired automatically through Application Default Credentials. + * <li>Retries are configured for idempotent methods but not for non-idempotent methods. + * </ul> + * + * <p>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. + * + * <p>For example, to set the total timeout of executeActionAsync to 30 seconds: + * + * <pre>{@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(); + * }</pre> + */ +@Generated("by gapic-generator-java") +public class SpannerExecutorProxySettings extends ClientSettings<SpannerExecutorProxySettings> { + + /** Returns the object with the settings used for calls to executeActionAsync. */ + public StreamingCallSettings<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncSettings() { + return ((SpannerExecutorProxyStubSettings) getStubSettings()).executeActionAsyncSettings(); + } + + public static final SpannerExecutorProxySettings create(SpannerExecutorProxyStubSettings stub) + throws IOException { + return new SpannerExecutorProxySettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SpannerExecutorProxyStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SpannerExecutorProxyStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List<String> getDefaultServiceScopes() { + return SpannerExecutorProxyStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SpannerExecutorProxyStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SpannerExecutorProxyStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SpannerExecutorProxyStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SpannerExecutorProxyStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SpannerExecutorProxySettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SpannerExecutorProxySettings. */ + public static class Builder + extends ClientSettings.Builder<SpannerExecutorProxySettings, Builder> { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SpannerExecutorProxyStubSettings.newBuilder(clientContext)); + } + + protected Builder(SpannerExecutorProxySettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SpannerExecutorProxyStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SpannerExecutorProxyStubSettings.newBuilder()); + } + + public SpannerExecutorProxyStubSettings.Builder getStubSettingsBuilder() { + return ((SpannerExecutorProxyStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + * <p>Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to executeActionAsync. */ + public StreamingCallSettings.Builder<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncSettings() { + return getStubSettingsBuilder().executeActionAsyncSettings(); + } + + @Override + public SpannerExecutorProxySettings build() throws IOException { + return new SpannerExecutorProxySettings(this); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/gapic_metadata.json new file mode 100644 index 00000000000..91e72f27e57 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/gapic_metadata.json @@ -0,0 +1,21 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.spanner.executor.v1", + "libraryPackage": "com.google.cloud.spanner.executor.v1", + "services": { + "SpannerExecutorProxy": { + "clients": { + "grpc": { + "libraryClient": "SpannerExecutorProxyClient", + "rpcs": { + "ExecuteActionAsync": { + "methods": ["executeActionAsyncCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/package-info.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/package-info.java new file mode 100644 index 00000000000..20f0308977e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/package-info.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +/** + * A client to Cloud Spanner Executor test API + * + * <p>The interfaces provided are listed below, along with usage samples. + * + * <p>======================= SpannerExecutorProxyClient ======================= + * + * <p>Service Description: Service that executes SpannerActions asynchronously. + * + * <p>Sample for SpannerExecutorProxyClient: + * + * <pre>{@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<SpannerAsyncActionRequest, SpannerAsyncActionResponse> 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. + * } + * } + * }</pre> + */ +@Generated("by gapic-generator-java") +package com.google.cloud.spanner.executor.v1; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyCallableFactory.java b/owl-bot-staging/v1/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/owl-bot-staging/v1/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. + * + * <p>This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcSpannerExecutorProxyCallableFactory implements GrpcStubCallableFactory { + + @Override + public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable( + GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, + UnaryCallSettings<RequestT, ResponseT> callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public <RequestT, ResponseT, PagedListResponseT> + UnaryCallable<RequestT, PagedListResponseT> createPagedCallable( + GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, + PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable( + GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, + BatchingCallSettings<RequestT, ResponseT> callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public <RequestT, ResponseT, MetadataT> + OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable( + GrpcCallSettings<RequestT, Operation> grpcCallSettings, + OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public <RequestT, ResponseT> + BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable( + GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, + StreamingCallSettings<RequestT, ResponseT> callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public <RequestT, ResponseT> + ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable( + GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, + ServerStreamingCallSettings<RequestT, ResponseT> callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public <RequestT, ResponseT> + ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable( + GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, + StreamingCallSettings<RequestT, ResponseT> callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyStub.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyStub.java new file mode 100644 index 00000000000..fe462bbf539 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyStub.java @@ -0,0 +1,162 @@ +/* + * 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.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.spanner.executor.v1.SpannerAsyncActionRequest; +import com.google.spanner.executor.v1.SpannerAsyncActionResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SpannerExecutorProxy service API. + * + * <p>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<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncMethodDescriptor = + MethodDescriptor.<SpannerAsyncActionRequest, SpannerAsyncActionResponse>newBuilder() + .setType(MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + "google.spanner.executor.v1.SpannerExecutorProxy/ExecuteActionAsync") + .setRequestMarshaller( + ProtoUtils.marshaller(SpannerAsyncActionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SpannerAsyncActionResponse.getDefaultInstance())) + .build(); + + private final BidiStreamingCallable<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSpannerExecutorProxyStub create(SpannerExecutorProxyStubSettings settings) + throws IOException { + return new GrpcSpannerExecutorProxyStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSpannerExecutorProxyStub create(ClientContext clientContext) + throws IOException { + return new GrpcSpannerExecutorProxyStub( + SpannerExecutorProxyStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSpannerExecutorProxyStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSpannerExecutorProxyStub( + SpannerExecutorProxyStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSpannerExecutorProxyStub, 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 GrpcSpannerExecutorProxyStub( + SpannerExecutorProxyStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcSpannerExecutorProxyCallableFactory()); + } + + /** + * Constructs an instance of GrpcSpannerExecutorProxyStub, 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 GrpcSpannerExecutorProxyStub( + SpannerExecutorProxyStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncTransportSettings = + GrpcCallSettings.<SpannerAsyncActionRequest, SpannerAsyncActionResponse>newBuilder() + .setMethodDescriptor(executeActionAsyncMethodDescriptor) + .build(); + + this.executeActionAsyncCallable = + callableFactory.createBidiStreamingCallable( + executeActionAsyncTransportSettings, + settings.executeActionAsyncSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public BidiStreamingCallable<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncCallable() { + return executeActionAsyncCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStub.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStub.java new file mode 100644 index 00000000000..d3823b1f67d --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStub.java @@ -0,0 +1,41 @@ +/* + * 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.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.spanner.executor.v1.SpannerAsyncActionRequest; +import com.google.spanner.executor.v1.SpannerAsyncActionResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SpannerExecutorProxy service API. + * + * <p>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<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncCallable() { + throw new UnsupportedOperationException("Not implemented: executeActionAsyncCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java new file mode 100644 index 00000000000..9ed12c6b257 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java @@ -0,0 +1,292 @@ +/* + * 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.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.spanner.executor.v1.SpannerAsyncActionRequest; +import com.google.spanner.executor.v1.SpannerAsyncActionResponse; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SpannerExecutorProxyStub}. + * + * <p>The default instance has everything set to sensible defaults: + * + * <ul> + * <li>The default service address (spanner-cloud-executor.googleapis.com) and default port (443) + * are used. + * <li>Credentials are acquired automatically through Application Default Credentials. + * <li>Retries are configured for idempotent methods but not for non-idempotent methods. + * </ul> + * + * <p>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. + * + * <p>For example, to set the total timeout of executeActionAsync to 30 seconds: + * + * <pre>{@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(); + * }</pre> + */ +@Generated("by gapic-generator-java") +public class SpannerExecutorProxyStubSettings + extends StubSettings<SpannerExecutorProxyStubSettings> { + /** The default scopes of the service. */ + private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES = + ImmutableList.<String>builder().build(); + + private final StreamingCallSettings<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncSettings; + + /** Returns the object with the settings used for calls to executeActionAsync. */ + public StreamingCallSettings<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncSettings() { + return executeActionAsyncSettings; + } + + public SpannerExecutorProxyStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSpannerExecutorProxyStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "spanner-cloud-executor"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "spanner-cloud-executor.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "spanner-cloud-executor.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List<String> getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SpannerExecutorProxyStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SpannerExecutorProxyStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + executeActionAsyncSettings = settingsBuilder.executeActionAsyncSettings().build(); + } + + /** Builder for SpannerExecutorProxyStubSettings. */ + public static class Builder + extends StubSettings.Builder<SpannerExecutorProxyStubSettings, Builder> { + private final ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders; + private final StreamingCallSettings.Builder< + SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncSettings; + private static final ImmutableMap<String, ImmutableSet<StatusCode.Code>> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder<String, ImmutableSet<StatusCode.Code>> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap<String, RetrySettings> RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder<String, RetrySettings> definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + executeActionAsyncSettings = StreamingCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(); + initDefaults(this); + } + + protected Builder(SpannerExecutorProxyStubSettings settings) { + super(settings); + + executeActionAsyncSettings = settings.executeActionAsyncSettings.toBuilder(); + + unaryMethodSettingsBuilders = ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + * <p>Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to executeActionAsync. */ + public StreamingCallSettings.Builder<SpannerAsyncActionRequest, SpannerAsyncActionResponse> + executeActionAsyncSettings() { + return executeActionAsyncSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public SpannerExecutorProxyStubSettings build() throws IOException { + return new SpannerExecutorProxyStubSettings(this); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json new file mode 100644 index 00000000000..0cd72e33eae --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json @@ -0,0 +1,5303 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$LogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Backup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Backup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Backup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.BackupInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.BackupInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig$EncryptionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig$EncryptionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Database", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Database$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Database$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DatabaseDialect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DatabaseRole", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DatabaseRole$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DdlStatementActionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DdlStatementActionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DeleteBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DeleteBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DropDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DropDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionInfo$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseDdlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseDdlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseDdlResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseDdlResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseRolesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseRolesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseRolesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseRolesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabasesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabasesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabasesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabasesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.OperationProgress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.OperationProgress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig$EncryptionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreSourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingLimits", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingLimits$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingTargets", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingTargets$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.DeleteInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.DeleteInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.GetInstanceConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.GetInstanceConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.GetInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.GetInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.Instance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.Instance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.Instance$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstancesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstancesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.OperationProgress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.OperationProgress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ReplicaInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ReplicaInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ReplicaInfo$ReplicaType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.AdminAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.AdminAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.AdminResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.AdminResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.BatchDmlAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.BatchDmlAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.BatchPartition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.BatchPartition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CancelOperationAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CancelOperationAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ChangeStreamRecord", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ChangeStreamRecord$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ChildPartitionsRecord", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ChildPartitionsRecord$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ChildPartitionsRecord$ChildPartition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ChildPartitionsRecord$ChildPartition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloseBatchTransactionAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloseBatchTransactionAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloudBackupResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloudBackupResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloudDatabaseResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloudDatabaseResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloudInstanceConfigResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloudInstanceConfigResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloudInstanceResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CloudInstanceResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ColumnMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ColumnMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.Concurrency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.Concurrency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CopyCloudBackupAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CopyCloudBackupAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CreateCloudBackupAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CreateCloudBackupAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CreateCloudDatabaseAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CreateCloudDatabaseAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CreateCloudInstanceAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CreateCloudInstanceAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CreateUserInstanceConfigAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.CreateUserInstanceConfigAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DataChangeRecord", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DataChangeRecord$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DataChangeRecord$ColumnType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DataChangeRecord$ColumnType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DataChangeRecord$Mod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DataChangeRecord$Mod$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DeleteCloudBackupAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DeleteCloudBackupAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DeleteCloudInstanceAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DeleteCloudInstanceAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DeleteUserInstanceConfigAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DeleteUserInstanceConfigAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DmlAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DmlAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DropCloudDatabaseAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.DropCloudDatabaseAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ExecuteChangeStreamQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ExecuteChangeStreamQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ExecutePartitionAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ExecutePartitionAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.FinishTransactionAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.FinishTransactionAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.FinishTransactionAction$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetCloudBackupAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetCloudBackupAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetCloudDatabaseAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetCloudDatabaseAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetCloudInstanceAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetCloudInstanceAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetCloudInstanceConfigAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetCloudInstanceConfigAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetOperationAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.GetOperationAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.HeartbeatRecord", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.HeartbeatRecord$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.KeyRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.KeyRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.KeyRange$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.KeySet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.KeySet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudBackupOperationsAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudBackupOperationsAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudBackupsAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudBackupsAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudDatabasesAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudDatabasesAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudInstanceConfigsAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudInstanceConfigsAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudInstancesAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ListCloudInstancesAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.MutationAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.MutationAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.MutationAction$InsertArgs", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.MutationAction$InsertArgs$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.MutationAction$Mod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.MutationAction$Mod$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.MutationAction$UpdateArgs", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.MutationAction$UpdateArgs$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.OperationResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.OperationResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.PartitionedUpdateAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.PartitionedUpdateAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.PartitionedUpdateAction$ExecutePartitionedUpdateOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.PartitionedUpdateAction$ExecutePartitionedUpdateOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.QueryAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.QueryAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.QueryAction$Parameter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.QueryAction$Parameter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.QueryResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.QueryResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ReadAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ReadAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ReadResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ReadResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.RestoreCloudDatabaseAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.RestoreCloudDatabaseAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.SpannerAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.SpannerAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.SpannerActionOutcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.SpannerActionOutcome$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.SpannerAsyncActionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.SpannerAsyncActionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.SpannerAsyncActionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.SpannerAsyncActionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.StartBatchTransactionAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.StartBatchTransactionAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.StartTransactionAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.StartTransactionAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.TableMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.TableMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.TransactionExecutionOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.TransactionExecutionOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateCloudBackupAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateCloudBackupAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateCloudDatabaseAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateCloudDatabaseAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateCloudInstanceAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateCloudInstanceAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateUserInstanceConfigAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.UpdateUserInstanceConfigAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ValueList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.ValueList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.WriteMutationsAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.WriteMutationsAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchCreateSessionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchCreateSessionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchCreateSessionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchCreateSessionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteRequest$MutationGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteRequest$MutationGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BeginTransactionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BeginTransactionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitResponse$CommitStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitResponse$CommitStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CreateSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CreateSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DeleteSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DeleteSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ExcludeReplicas", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ExcludeReplicas$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$IncludeReplicas", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$IncludeReplicas$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlRequest$Statement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlRequest$Statement$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest$QueryMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest$QueryOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest$QueryOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.GetSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.GetSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.KeyRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.KeyRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.KeySet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.KeySet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ListSessionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ListSessionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ListSessionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ListSessionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Delete", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Delete$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Write", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Write$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartialResultSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartialResultSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Partition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Partition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionReadRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionReadRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$ChildLink", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$ChildLink$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$Kind", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$ShortRepresentation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$ShortRepresentation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.QueryPlan", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.QueryPlan$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ReadRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ReadRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RequestOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RequestOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RequestOptions$Priority", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSetMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSetMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSetStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSetStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RollbackRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RollbackRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Session", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Session$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.StructType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.StructType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.StructType$Field", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.StructType$Field$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Transaction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Transaction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$PartitionedDml", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$PartitionedDml$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadOnly", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadOnly$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadWrite", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadWrite$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadWrite$ReadLockMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionSelector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionSelector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Type$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TypeAnnotationCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TypeCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxy.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxy.java new file mode 100644 index 00000000000..6321a714a72 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxy.java @@ -0,0 +1,59 @@ +/* + * 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSpannerExecutorProxy implements MockGrpcService { + private final MockSpannerExecutorProxyImpl serviceImpl; + + public MockSpannerExecutorProxy() { + serviceImpl = new MockSpannerExecutorProxyImpl(); + } + + @Override + public List<AbstractMessage> getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxyImpl.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxyImpl.java new file mode 100644 index 00000000000..d5b135b64a2 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/MockSpannerExecutorProxyImpl.java @@ -0,0 +1,99 @@ +/* + * 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; + +import com.google.api.core.BetaApi; +import com.google.protobuf.AbstractMessage; +import com.google.spanner.executor.v1.SpannerAsyncActionRequest; +import com.google.spanner.executor.v1.SpannerAsyncActionResponse; +import com.google.spanner.executor.v1.SpannerExecutorProxyGrpc.SpannerExecutorProxyImplBase; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSpannerExecutorProxyImpl extends SpannerExecutorProxyImplBase { + private List<AbstractMessage> requests; + private Queue<Object> responses; + + public MockSpannerExecutorProxyImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List<AbstractMessage> getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List<AbstractMessage> responses) { + this.responses = new LinkedList<Object>(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver<SpannerAsyncActionRequest> executeActionAsync( + final StreamObserver<SpannerAsyncActionResponse> responseObserver) { + StreamObserver<SpannerAsyncActionRequest> requestObserver = + new StreamObserver<SpannerAsyncActionRequest>() { + @Override + public void onNext(SpannerAsyncActionRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof SpannerAsyncActionResponse) { + responseObserver.onNext(((SpannerAsyncActionResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExecuteActionAsync, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SpannerAsyncActionResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClientTest.java b/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClientTest.java new file mode 100644 index 00000000000..b28fed3b4d8 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner-executor/src/test/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClientTest.java @@ -0,0 +1,141 @@ +/* + * 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.spanner.executor.v1.SpannerAction; +import com.google.spanner.executor.v1.SpannerActionOutcome; +import com.google.spanner.executor.v1.SpannerAsyncActionRequest; +import com.google.spanner.executor.v1.SpannerAsyncActionResponse; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SpannerExecutorProxyClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockSpannerExecutorProxy mockSpannerExecutorProxy; + private LocalChannelProvider channelProvider; + private SpannerExecutorProxyClient client; + + @BeforeClass + public static void startStaticServer() { + mockSpannerExecutorProxy = new MockSpannerExecutorProxy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockSpannerExecutorProxy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SpannerExecutorProxySettings settings = + SpannerExecutorProxySettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SpannerExecutorProxyClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void executeActionAsyncTest() throws Exception { + SpannerAsyncActionResponse expectedResponse = + SpannerAsyncActionResponse.newBuilder() + .setActionId(198295492) + .setOutcome(SpannerActionOutcome.newBuilder().build()) + .build(); + mockSpannerExecutorProxy.addResponse(expectedResponse); + SpannerAsyncActionRequest request = + SpannerAsyncActionRequest.newBuilder() + .setActionId(198295492) + .setAction(SpannerAction.newBuilder().build()) + .build(); + + MockStreamObserver<SpannerAsyncActionResponse> responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable<SpannerAsyncActionRequest, SpannerAsyncActionResponse> callable = + client.executeActionAsyncCallable(); + ApiStreamObserver<SpannerAsyncActionRequest> requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List<SpannerAsyncActionResponse> actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void executeActionAsyncExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpannerExecutorProxy.addException(exception); + SpannerAsyncActionRequest request = + SpannerAsyncActionRequest.newBuilder() + .setActionId(198295492) + .setAction(SpannerAction.newBuilder().build()) + .build(); + + MockStreamObserver<SpannerAsyncActionResponse> responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable<SpannerAsyncActionRequest, SpannerAsyncActionResponse> callable = + client.executeActionAsyncCallable(); + ApiStreamObserver<SpannerAsyncActionRequest> requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List<SpannerAsyncActionResponse> actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java similarity index 88% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java index 2cc03907b7b..b898bceedf5 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java @@ -107,19 +107,415 @@ * <p>Note: close() needs to be called on the DatabaseAdminClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * - * <p>The surface of this class includes several types of Java methods for each of the API's - * methods: - * - * <ol> - * <li>A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - * <li>A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - * <li>A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - * </ol> + * <table> + * <caption>Methods</caption> + * <tr> + * <th>Method</th> + * <th>Description</th> + * <th>Method Variants</th> + * </tr> + * <tr> + * <td><p> ListDatabases</td> + * <td><p> Lists Cloud Spanner databases.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listDatabases(ListDatabasesRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listDatabases(InstanceName parent) + * <li><p> listDatabases(String parent) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listDatabasesPagedCallable() + * <li><p> listDatabasesCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> CreateDatabase</td> + * <td><p> Creates a new Cloud Spanner database and starts to prepare it for serving. The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<database_name>/operations/<operation_id>` and can be used to track preparation of the database. The [metadata][google.longrunning.Operation.metadata] field type is [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The [response][google.longrunning.Operation.response] field type is [Database][google.spanner.admin.database.v1.Database], if successful.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> createDatabaseAsync(CreateDatabaseRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> createDatabaseAsync(InstanceName parent, String createStatement) + * <li><p> createDatabaseAsync(String parent, String createStatement) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> createDatabaseOperationCallable() + * <li><p> createDatabaseCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> GetDatabase</td> + * <td><p> Gets the state of a Cloud Spanner database.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> getDatabase(GetDatabaseRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> getDatabase(DatabaseName name) + * <li><p> getDatabase(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> getDatabaseCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> UpdateDatabase</td> + * <td><p> Updates a Cloud Spanner database. The returned [long-running operation][google.longrunning.Operation] can be used to track the progress of updating the database. If the named database does not exist, returns `NOT_FOUND`. + * <p> While the operation is pending: + * <p> * The database's [reconciling][google.spanner.admin.database.v1.Database.reconciling] field is set to true. * Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's [cancel_time][google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time] is set, the updates are reverted, and the operation terminates with a `CANCELLED` status. * New UpdateDatabase requests will return a `FAILED_PRECONDITION` error until the pending operation is done (returns successfully or with error). * Reading the database via the API continues to give the pre-request values. + * <p> Upon completion of the returned operation: + * <p> * The new values are in effect and readable via the API. * The database's [reconciling][google.spanner.admin.database.v1.Database.reconciling] field becomes false. + * <p> The returned [long-running operation][google.longrunning.Operation] will have a name of the format `projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>` and can be used to track the database modification. The [metadata][google.longrunning.Operation.metadata] field type is [UpdateDatabaseMetadata][google.spanner.admin.database.v1.UpdateDatabaseMetadata]. The [response][google.longrunning.Operation.response] field type is [Database][google.spanner.admin.database.v1.Database], if successful.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> updateDatabaseAsync(UpdateDatabaseRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> updateDatabaseAsync(Database database, FieldMask updateMask) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> updateDatabaseOperationCallable() + * <li><p> updateDatabaseCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> UpdateDatabaseDdl</td> + * <td><p> Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<database_name>/operations/<operation_id>` and can be used to track execution of the schema change(s). The [metadata][google.longrunning.Operation.metadata] field type is [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> updateDatabaseDdlAsync(UpdateDatabaseDdlRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> updateDatabaseDdlAsync(DatabaseName database, List<String> statements) + * <li><p> updateDatabaseDdlAsync(String database, List<String> statements) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> updateDatabaseDdlOperationCallable() + * <li><p> updateDatabaseDdlCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> DropDatabase</td> + * <td><p> Drops (aka deletes) a Cloud Spanner database. Completed backups for the database will be retained according to their `expire_time`. Note: Cloud Spanner might continue to accept requests for a few seconds after the database has been deleted.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> dropDatabase(DropDatabaseRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> dropDatabase(DatabaseName database) + * <li><p> dropDatabase(String database) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> dropDatabaseCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> GetDatabaseDdl</td> + * <td><p> Returns the schema of a Cloud Spanner database as a list of formatted DDL statements. This method does not show pending schema updates, those may be queried using the [Operations][google.longrunning.Operations] API.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> getDatabaseDdl(GetDatabaseDdlRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> getDatabaseDdl(DatabaseName database) + * <li><p> getDatabaseDdl(String database) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> getDatabaseDdlCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> SetIamPolicy</td> + * <td><p> Sets the access control policy on a database or backup resource. Replaces any existing policy. + * <p> Authorization requires `spanner.databases.setIamPolicy` permission on [resource][google.iam.v1.SetIamPolicyRequest.resource]. For backups, authorization requires `spanner.backups.setIamPolicy` permission on [resource][google.iam.v1.SetIamPolicyRequest.resource].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> setIamPolicy(SetIamPolicyRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> setIamPolicy(ResourceName resource, Policy policy) + * <li><p> setIamPolicy(String resource, Policy policy) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> setIamPolicyCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> GetIamPolicy</td> + * <td><p> Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. + * <p> Authorization requires `spanner.databases.getIamPolicy` permission on [resource][google.iam.v1.GetIamPolicyRequest.resource]. For backups, authorization requires `spanner.backups.getIamPolicy` permission on [resource][google.iam.v1.GetIamPolicyRequest.resource].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> getIamPolicy(GetIamPolicyRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> getIamPolicy(ResourceName resource) + * <li><p> getIamPolicy(String resource) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> getIamPolicyCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> TestIamPermissions</td> + * <td><p> Returns permissions that the caller has on the specified database or backup resource. + * <p> Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> testIamPermissions(TestIamPermissionsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> testIamPermissions(ResourceName resource, List<String> permissions) + * <li><p> testIamPermissions(String resource, List<String> permissions) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> testIamPermissionsCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> CreateBackup</td> + * <td><p> Starts creating a new Cloud Spanner Backup. The returned backup [long-running operation][google.longrunning.Operation] will have a name of the format `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>` and can be used to track creation of the backup. The [metadata][google.longrunning.Operation.metadata] field type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the creation and delete the backup. There can be only one pending backup creation per database. Backup creation of different databases can run concurrently.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> createBackupAsync(CreateBackupRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> createBackupAsync(InstanceName parent, Backup backup, String backupId) + * <li><p> createBackupAsync(String parent, Backup backup, String backupId) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> createBackupOperationCallable() + * <li><p> createBackupCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> CopyBackup</td> + * <td><p> Starts copying a Cloud Spanner Backup. The returned backup [long-running operation][google.longrunning.Operation] will have a name of the format `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>` and can be used to track copying of the backup. The operation is associated with the destination backup. The [metadata][google.longrunning.Operation.metadata] field type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run on the same source backup.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> copyBackupAsync(CopyBackupRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> copyBackupAsync(InstanceName parent, String backupId, BackupName sourceBackup, Timestamp expireTime) + * <li><p> copyBackupAsync(InstanceName parent, String backupId, String sourceBackup, Timestamp expireTime) + * <li><p> copyBackupAsync(String parent, String backupId, BackupName sourceBackup, Timestamp expireTime) + * <li><p> copyBackupAsync(String parent, String backupId, String sourceBackup, Timestamp expireTime) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> copyBackupOperationCallable() + * <li><p> copyBackupCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> GetBackup</td> + * <td><p> Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> getBackup(GetBackupRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> getBackup(BackupName name) + * <li><p> getBackup(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> getBackupCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> UpdateBackup</td> + * <td><p> Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> updateBackup(UpdateBackupRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> updateBackup(Backup backup, FieldMask updateMask) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> updateBackupCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> DeleteBackup</td> + * <td><p> Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> deleteBackup(DeleteBackupRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> deleteBackup(BackupName name) + * <li><p> deleteBackup(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> deleteBackupCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ListBackups</td> + * <td><p> Lists completed and pending backups. Backups returned are ordered by `create_time` in descending order, starting from the most recent `create_time`.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listBackups(ListBackupsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listBackups(InstanceName parent) + * <li><p> listBackups(String parent) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listBackupsPagedCallable() + * <li><p> listBackupsCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> RestoreDatabase</td> + * <td><p> Create a new database by restoring from a completed backup. The new database must be in the same project and in an instance with the same instance configuration as the instance containing the backup. The returned database [long-running operation][google.longrunning.Operation] has a name of the format `projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`, and can be used to track the progress of the operation, and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]. The [response][google.longrunning.Operation.response] type is [Database][google.spanner.admin.database.v1.Database], if successful. Cancelling the returned operation will stop the restore and delete the database. There can be only one database being restored into an instance at a time. Once the restore operation completes, a new restore operation can be initiated, without waiting for the optimize operation associated with the first restore to complete.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> restoreDatabaseAsync(RestoreDatabaseRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> restoreDatabaseAsync(InstanceName parent, String databaseId, BackupName backup) + * <li><p> restoreDatabaseAsync(InstanceName parent, String databaseId, String backup) + * <li><p> restoreDatabaseAsync(String parent, String databaseId, BackupName backup) + * <li><p> restoreDatabaseAsync(String parent, String databaseId, String backup) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> restoreDatabaseOperationCallable() + * <li><p> restoreDatabaseCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ListDatabaseOperations</td> + * <td><p> Lists database [longrunning-operations][google.longrunning.Operation]. A database operation has a name of the form `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`. The long-running operation [metadata][google.longrunning.Operation.metadata] field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listDatabaseOperations(ListDatabaseOperationsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listDatabaseOperations(InstanceName parent) + * <li><p> listDatabaseOperations(String parent) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listDatabaseOperationsPagedCallable() + * <li><p> listDatabaseOperationsCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ListBackupOperations</td> + * <td><p> Lists the backup [long-running operations][google.longrunning.Operation] in the given instance. A backup operation has a name of the form `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`. The long-running operation [metadata][google.longrunning.Operation.metadata] field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations. Operations returned are ordered by `operation.metadata.value.progress.start_time` in descending order starting from the most recently started operation.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listBackupOperations(ListBackupOperationsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listBackupOperations(InstanceName parent) + * <li><p> listBackupOperations(String parent) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listBackupOperationsPagedCallable() + * <li><p> listBackupOperationsCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ListDatabaseRoles</td> + * <td><p> Lists Cloud Spanner database roles.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listDatabaseRoles(ListDatabaseRolesRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listDatabaseRoles(DatabaseName parent) + * <li><p> listDatabaseRoles(String parent) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listDatabaseRolesPagedCallable() + * <li><p> listDatabaseRolesCallable() + * </ul> + * </td> + * </tr> + * </table> * * <p>See the individual methods for example code. * @@ -527,6 +923,7 @@ public final OperationFuture<Database, CreateDatabaseMetadata> createDatabaseAsy * .addAllExtraStatements(new ArrayList<String>()) * .setEncryptionConfig(EncryptionConfig.newBuilder().build()) * .setDatabaseDialect(DatabaseDialect.forNumber(0)) + * .setProtoDescriptors(ByteString.EMPTY) * .build(); * Database response = databaseAdminClient.createDatabaseAsync(request).get(); * } @@ -566,6 +963,7 @@ public final OperationFuture<Database, CreateDatabaseMetadata> createDatabaseAsy * .addAllExtraStatements(new ArrayList<String>()) * .setEncryptionConfig(EncryptionConfig.newBuilder().build()) * .setDatabaseDialect(DatabaseDialect.forNumber(0)) + * .setProtoDescriptors(ByteString.EMPTY) * .build(); * OperationFuture<Database, CreateDatabaseMetadata> future = * databaseAdminClient.createDatabaseOperationCallable().futureCall(request); @@ -605,6 +1003,7 @@ public final OperationFuture<Database, CreateDatabaseMetadata> createDatabaseAsy * .addAllExtraStatements(new ArrayList<String>()) * .setEncryptionConfig(EncryptionConfig.newBuilder().build()) * .setDatabaseDialect(DatabaseDialect.forNumber(0)) + * .setProtoDescriptors(ByteString.EMPTY) * .build(); * ApiFuture<Operation> future = * databaseAdminClient.createDatabaseCallable().futureCall(request); @@ -1058,6 +1457,7 @@ public final OperationFuture<Empty, UpdateDatabaseDdlMetadata> updateDatabaseDdl * .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) * .addAllStatements(new ArrayList<String>()) * .setOperationId("operationId129704162") + * .setProtoDescriptors(ByteString.EMPTY) * .build(); * databaseAdminClient.updateDatabaseDdlAsync(request).get(); * } @@ -1095,6 +1495,7 @@ public final OperationFuture<Empty, UpdateDatabaseDdlMetadata> updateDatabaseDdl * .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) * .addAllStatements(new ArrayList<String>()) * .setOperationId("operationId129704162") + * .setProtoDescriptors(ByteString.EMPTY) * .build(); * OperationFuture<Empty, UpdateDatabaseDdlMetadata> future = * databaseAdminClient.updateDatabaseDdlOperationCallable().futureCall(request); @@ -1132,6 +1533,7 @@ public final OperationFuture<Empty, UpdateDatabaseDdlMetadata> updateDatabaseDdl * .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) * .addAllStatements(new ArrayList<String>()) * .setOperationId("operationId129704162") + * .setProtoDescriptors(ByteString.EMPTY) * .build(); * ApiFuture<Operation> future = * databaseAdminClient.updateDatabaseDdlCallable().futureCall(request); diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java index 01a82a54712..e05095565a9 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.spanner.admin.database.v1.stub.DatabaseAdminStubSettings; diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/gapic_metadata.json similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/gapic_metadata.json diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java index 0697aaf54f5..08ac4062926 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java @@ -654,6 +654,21 @@ public DatabaseAdminStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "spanner"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); @@ -1022,7 +1037,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1035,7 +1049,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1470,6 +1483,15 @@ public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatab return listDatabaseRolesSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public DatabaseAdminStubSettings build() throws IOException { return new DatabaseAdminStubSettings(this); diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminCallableFactory.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminCallableFactory.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminCallableFactory.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminCallableFactory.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java index 5a267d5a5d1..47ecd2b416b 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java @@ -72,6 +72,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminCallableFactory.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminCallableFactory.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminCallableFactory.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminCallableFactory.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java index d99345bc9de..10fac3e8536 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/HttpJsonDatabaseAdminStub.java @@ -35,6 +35,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java similarity index 86% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java index 325f0704ad6..8ad508278ed 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java @@ -106,19 +106,326 @@ * <p>Note: close() needs to be called on the InstanceAdminClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * - * <p>The surface of this class includes several types of Java methods for each of the API's - * methods: - * - * <ol> - * <li>A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - * <li>A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - * <li>A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - * </ol> + * <table> + * <caption>Methods</caption> + * <tr> + * <th>Method</th> + * <th>Description</th> + * <th>Method Variants</th> + * </tr> + * <tr> + * <td><p> ListInstanceConfigs</td> + * <td><p> Lists the supported instance configurations for a given project.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listInstanceConfigs(ListInstanceConfigsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listInstanceConfigs(ProjectName parent) + * <li><p> listInstanceConfigs(String parent) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listInstanceConfigsPagedCallable() + * <li><p> listInstanceConfigsCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> GetInstanceConfig</td> + * <td><p> Gets information about a particular instance configuration.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> getInstanceConfig(GetInstanceConfigRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> getInstanceConfig(InstanceConfigName name) + * <li><p> getInstanceConfig(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> getInstanceConfigCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> CreateInstanceConfig</td> + * <td><p> Creates an instance config and begins preparing it to be used. The returned [long-running operation][google.longrunning.Operation] can be used to track the progress of preparing the new instance config. The instance config name is assigned by the caller. If the named instance config already exists, `CreateInstanceConfig` returns `ALREADY_EXISTS`. + * <p> Immediately after the request returns: + * <p> * The instance config is readable via the API, with all requested attributes. The instance config's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] field is set to true. Its state is `CREATING`. + * <p> While the operation is pending: + * <p> * Cancelling the operation renders the instance config immediately unreadable via the API. * Except for deleting the creating resource, all other attempts to modify the instance config are rejected. + * <p> Upon completion of the returned operation: + * <p> * Instances can be created using the instance configuration. * The instance config's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] field becomes false. Its state becomes `READY`. + * <p> The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_config_name>/operations/<operation_id>` and can be used to track creation of the instance config. The [metadata][google.longrunning.Operation.metadata] field type is [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]. The [response][google.longrunning.Operation.response] field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * <p> Authorization requires `spanner.instanceConfigs.create` permission on the resource [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> createInstanceConfigAsync(CreateInstanceConfigRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> createInstanceConfigAsync(ProjectName parent, InstanceConfig instanceConfig, String instanceConfigId) + * <li><p> createInstanceConfigAsync(String parent, InstanceConfig instanceConfig, String instanceConfigId) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> createInstanceConfigOperationCallable() + * <li><p> createInstanceConfigCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> UpdateInstanceConfig</td> + * <td><p> Updates an instance config. The returned [long-running operation][google.longrunning.Operation] can be used to track the progress of updating the instance. If the named instance config does not exist, returns `NOT_FOUND`. + * <p> Only user managed configurations can be updated. + * <p> Immediately after the request returns: + * <p> * The instance config's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] field is set to true. + * <p> While the operation is pending: + * <p> * Cancelling the operation sets its metadata's [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time]. The operation is guaranteed to succeed at undoing all changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance config are rejected. * Reading the instance config via the API continues to give the pre-request values. + * <p> Upon completion of the returned operation: + * <p> * Creating instances using the instance configuration uses the new values. * The instance config's new values are readable via the API. * The instance config's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] field becomes false. + * <p> The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_config_name>/operations/<operation_id>` and can be used to track the instance config modification. The [metadata][google.longrunning.Operation.metadata] field type is [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata]. The [response][google.longrunning.Operation.response] field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * <p> Authorization requires `spanner.instanceConfigs.update` permission on the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> updateInstanceConfigAsync(UpdateInstanceConfigRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> updateInstanceConfigAsync(InstanceConfig instanceConfig, FieldMask updateMask) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> updateInstanceConfigOperationCallable() + * <li><p> updateInstanceConfigCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> DeleteInstanceConfig</td> + * <td><p> Deletes the instance config. Deletion is only allowed when no instances are using the configuration. If any instances are using the config, returns `FAILED_PRECONDITION`. + * <p> Only user managed configurations can be deleted. + * <p> Authorization requires `spanner.instanceConfigs.delete` permission on the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> deleteInstanceConfig(DeleteInstanceConfigRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> deleteInstanceConfig(InstanceConfigName name) + * <li><p> deleteInstanceConfig(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> deleteInstanceConfigCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ListInstanceConfigOperations</td> + * <td><p> Lists the user-managed instance config [long-running operations][google.longrunning.Operation] in the given project. An instance config operation has a name of the form `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`. The long-running operation [metadata][google.longrunning.Operation.metadata] field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations. Operations returned are ordered by `operation.metadata.value.start_time` in descending order starting from the most recently started operation.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listInstanceConfigOperations(ListInstanceConfigOperationsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listInstanceConfigOperations(ProjectName parent) + * <li><p> listInstanceConfigOperations(String parent) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listInstanceConfigOperationsPagedCallable() + * <li><p> listInstanceConfigOperationsCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ListInstances</td> + * <td><p> Lists all instances in the given project.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listInstances(ListInstancesRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listInstances(ProjectName parent) + * <li><p> listInstances(String parent) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listInstancesPagedCallable() + * <li><p> listInstancesCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> GetInstance</td> + * <td><p> Gets information about a particular instance.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> getInstance(GetInstanceRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> getInstance(InstanceName name) + * <li><p> getInstance(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> getInstanceCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> CreateInstance</td> + * <td><p> Creates an instance and begins preparing it to begin serving. The returned [long-running operation][google.longrunning.Operation] can be used to track the progress of preparing the new instance. The instance name is assigned by the caller. If the named instance already exists, `CreateInstance` returns `ALREADY_EXISTS`. + * <p> Immediately upon completion of this request: + * <p> * The instance is readable via the API, with all requested attributes but no allocated resources. Its state is `CREATING`. + * <p> Until completion of the returned operation: + * <p> * Cancelling the operation renders the instance immediately unreadable via the API. * The instance can be deleted. * All other attempts to modify the instance are rejected. + * <p> Upon completion of the returned operation: + * <p> * Billing for all successfully-allocated resources begins (some types may have lower than the requested levels). * Databases can be created in the instance. * The instance's allocated resource levels are readable via the API. * The instance's state becomes `READY`. + * <p> The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_name>/operations/<operation_id>` and can be used to track creation of the instance. The [metadata][google.longrunning.Operation.metadata] field type is [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The [response][google.longrunning.Operation.response] field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> createInstanceAsync(CreateInstanceRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> createInstanceAsync(ProjectName parent, String instanceId, Instance instance) + * <li><p> createInstanceAsync(String parent, String instanceId, Instance instance) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> createInstanceOperationCallable() + * <li><p> createInstanceCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> UpdateInstance</td> + * <td><p> Updates an instance, and begins allocating or releasing resources as requested. The returned [long-running operation][google.longrunning.Operation] can be used to track the progress of updating the instance. If the named instance does not exist, returns `NOT_FOUND`. + * <p> Immediately upon completion of this request: + * <p> * For resource types for which a decrease in the instance's allocation has been requested, billing is based on the newly-requested level. + * <p> Until completion of the returned operation: + * <p> * Cancelling the operation sets its metadata's [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins restoring resources to their pre-request values. The operation is guaranteed to succeed at undoing all resource changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance are rejected. * Reading the instance via the API continues to give the pre-request resource levels. + * <p> Upon completion of the returned operation: + * <p> * Billing begins for all successfully-allocated resources (some types may have lower than the requested levels). * All newly-reserved resources are available for serving the instance's tables. * The instance's new resource levels are readable via the API. + * <p> The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_name>/operations/<operation_id>` and can be used to track the instance modification. The [metadata][google.longrunning.Operation.metadata] field type is [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The [response][google.longrunning.Operation.response] field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. + * <p> Authorization requires `spanner.instances.update` permission on the resource [name][google.spanner.admin.instance.v1.Instance.name].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> updateInstanceAsync(UpdateInstanceRequest request) + * </ul> + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> + * <ul> + * <li><p> updateInstanceAsync(Instance instance, FieldMask fieldMask) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> updateInstanceOperationCallable() + * <li><p> updateInstanceCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> DeleteInstance</td> + * <td><p> Deletes an instance. + * <p> Immediately upon completion of the request: + * <p> * Billing ceases for all of the instance's reserved resources. + * <p> Soon afterward: + * <p> * The instance and *all of its databases* immediately and irrevocably disappear from the API. All data in the databases is permanently deleted.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> deleteInstance(DeleteInstanceRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> deleteInstance(InstanceName name) + * <li><p> deleteInstance(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> deleteInstanceCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> SetIamPolicy</td> + * <td><p> Sets the access control policy on an instance resource. Replaces any existing policy. + * <p> Authorization requires `spanner.instances.setIamPolicy` on [resource][google.iam.v1.SetIamPolicyRequest.resource].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> setIamPolicy(SetIamPolicyRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> setIamPolicy(ResourceName resource, Policy policy) + * <li><p> setIamPolicy(String resource, Policy policy) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> setIamPolicyCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> GetIamPolicy</td> + * <td><p> Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set. + * <p> Authorization requires `spanner.instances.getIamPolicy` on [resource][google.iam.v1.GetIamPolicyRequest.resource].</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> getIamPolicy(GetIamPolicyRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> getIamPolicy(ResourceName resource) + * <li><p> getIamPolicy(String resource) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> getIamPolicyCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> TestIamPermissions</td> + * <td><p> Returns permissions that the caller has on the specified instance resource. + * <p> Attempting this RPC on a non-existent Cloud Spanner instance resource will result in a NOT_FOUND error if the user has `spanner.instances.list` permission on the containing Google Cloud Project. Otherwise returns an empty set of permissions.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> testIamPermissions(TestIamPermissionsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> testIamPermissions(ResourceName resource, List<String> permissions) + * <li><p> testIamPermissions(String resource, List<String> permissions) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> testIamPermissionsCallable() + * </ul> + * </td> + * </tr> + * </table> * * <p>See the individual methods for example code. * diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java index 9e4e5900f69..0fe140f6ba7 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.spanner.admin.instance.v1.stub.InstanceAdminStubSettings; diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/gapic_metadata.json similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/gapic_metadata.json diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/package-info.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/package-info.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/package-info.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java index 39b83be1ed9..c385ff03ad1 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java @@ -59,6 +59,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminCallableFactory.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminCallableFactory.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminCallableFactory.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminCallableFactory.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java index 8acda6dfd30..3684f515ad9 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/HttpJsonInstanceAdminStub.java @@ -33,6 +33,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java similarity index 98% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java index edbb97ba1e0..2a9ffb20763 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java @@ -481,6 +481,21 @@ public InstanceAdminStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "spanner"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); @@ -808,7 +823,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -821,7 +835,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1134,6 +1147,15 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public InstanceAdminStubSettings build() throws IOException { return new InstanceAdminStubSettings(this); diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java similarity index 84% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java index 7358e4adcf9..9eaacdc33ba 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java @@ -88,19 +88,285 @@ * <p>Note: close() needs to be called on the SpannerClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * - * <p>The surface of this class includes several types of Java methods for each of the API's - * methods: - * - * <ol> - * <li>A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - * <li>A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - * <li>A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - * </ol> + * <table> + * <caption>Methods</caption> + * <tr> + * <th>Method</th> + * <th>Description</th> + * <th>Method Variants</th> + * </tr> + * <tr> + * <td><p> CreateSession</td> + * <td><p> Creates a new session. A session can be used to perform transactions that read and/or modify data in a Cloud Spanner database. Sessions are meant to be reused for many consecutive transactions. + * <p> Sessions can only execute one transaction at a time. To execute multiple concurrent read-write/write-only transactions, create multiple sessions. Note that standalone reads and queries use a transaction internally, and count toward the one transaction limit. + * <p> Active sessions use additional server resources, so it is a good idea to delete idle and unneeded sessions. Aside from explicit deletes, Cloud Spanner may delete sessions for which no operations are sent for more than an hour. If a session is deleted, requests to it return `NOT_FOUND`. + * <p> Idle sessions can be kept alive by sending a trivial SQL query periodically, e.g., `"SELECT 1"`.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> createSession(CreateSessionRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> createSession(DatabaseName database) + * <li><p> createSession(String database) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> createSessionCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> BatchCreateSessions</td> + * <td><p> Creates multiple new sessions. + * <p> This API can be used to initialize a session cache on the clients. See https://goo.gl/TgSFN2 for best practices on session cache management.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> batchCreateSessions(BatchCreateSessionsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> batchCreateSessions(DatabaseName database, int sessionCount) + * <li><p> batchCreateSessions(String database, int sessionCount) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> batchCreateSessionsCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> GetSession</td> + * <td><p> Gets a session. Returns `NOT_FOUND` if the session does not exist. This is mainly useful for determining whether a session is still alive.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> getSession(GetSessionRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> getSession(SessionName name) + * <li><p> getSession(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> getSessionCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ListSessions</td> + * <td><p> Lists all sessions in a given database.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> listSessions(ListSessionsRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> listSessions(DatabaseName database) + * <li><p> listSessions(String database) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> listSessionsPagedCallable() + * <li><p> listSessionsCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> DeleteSession</td> + * <td><p> Ends a session, releasing server resources associated with it. This will asynchronously trigger cancellation of any operations that are running with this session.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> deleteSession(DeleteSessionRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> deleteSession(SessionName name) + * <li><p> deleteSession(String name) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> deleteSessionCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ExecuteSql</td> + * <td><p> Executes an SQL statement, returning all results in a single reply. This method cannot be used to return a result set larger than 10 MiB; if the query yields more data than that, the query fails with a `FAILED_PRECONDITION` error. + * <p> Operations inside read-write transactions might return `ABORTED`. If this occurs, the application should restart the transaction from the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + * <p> Larger result sets can be fetched in streaming fashion by calling [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] instead.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> executeSql(ExecuteSqlRequest request) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> executeSqlCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ExecuteStreamingSql</td> + * <td><p> Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result set as a stream. Unlike [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], there is no limit on the size of the returned result set. However, no individual row in the result set can exceed 100 MiB, and no column value can exceed 10 MiB.</td> + * <td> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> executeStreamingSqlCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> ExecuteBatchDml</td> + * <td><p> Executes a batch of SQL DML statements. This method allows many statements to be run with lower latency than submitting them sequentially with [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. + * <p> Statements are executed in sequential order. A request can succeed even if a statement fails. The [ExecuteBatchDmlResponse.status][google.spanner.v1.ExecuteBatchDmlResponse.status] field in the response provides information about the statement that failed. Clients must inspect this field to determine whether an error occurred. + * <p> Execution stops after the first failed statement; the remaining statements are not executed.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> executeBatchDml(ExecuteBatchDmlRequest request) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> executeBatchDmlCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> Read</td> + * <td><p> Reads rows from the database using key lookups and scans, as a simple key/value style alternative to [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be used to return a result set larger than 10 MiB; if the read matches more data than that, the read fails with a `FAILED_PRECONDITION` error. + * <p> Reads inside read-write transactions might return `ABORTED`. If this occurs, the application should restart the transaction from the beginning. See [Transaction][google.spanner.v1.Transaction] for more details. + * <p> Larger result sets can be yielded in streaming fashion by calling [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> read(ReadRequest request) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> readCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> StreamingRead</td> + * <td><p> Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no limit on the size of the returned result set. However, no individual row in the result set can exceed 100 MiB, and no column value can exceed 10 MiB.</td> + * <td> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> streamingReadCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> BeginTransaction</td> + * <td><p> Begins a new transaction. This step can often be skipped: [Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a side-effect.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> beginTransaction(BeginTransactionRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> beginTransaction(SessionName session, TransactionOptions options) + * <li><p> beginTransaction(String session, TransactionOptions options) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> beginTransactionCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> Commit</td> + * <td><p> Commits a transaction. The request includes the mutations to be applied to rows in the database. + * <p> `Commit` might return an `ABORTED` error. This can occur at any time; commonly, the cause is conflicts with concurrent transactions. However, it can also happen for a variety of other reasons. If `Commit` returns `ABORTED`, the caller should re-attempt the transaction from the beginning, re-using the same session. + * <p> On very rare occasions, `Commit` might return `UNKNOWN`. This can happen, for example, if the client job experiences a 1+ hour networking failure. At that point, Cloud Spanner has lost track of the transaction outcome and we recommend that you perform another read from the database to see the state of things as they are now.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> commit(CommitRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> commit(SessionName session, ByteString transactionId, List<Mutation> mutations) + * <li><p> commit(SessionName session, TransactionOptions singleUseTransaction, List<Mutation> mutations) + * <li><p> commit(String session, ByteString transactionId, List<Mutation> mutations) + * <li><p> commit(String session, TransactionOptions singleUseTransaction, List<Mutation> mutations) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> commitCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> Rollback</td> + * <td><p> Rolls back a transaction, releasing any locks it holds. It is a good idea to call this for any transaction that includes one or more [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and ultimately decides not to commit. + * <p> `Rollback` returns `OK` if it successfully aborts the transaction, the transaction was already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> rollback(RollbackRequest request) + * </ul> + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> + * <ul> + * <li><p> rollback(SessionName session, ByteString transactionId) + * <li><p> rollback(String session, ByteString transactionId) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> rollbackCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> PartitionQuery</td> + * <td><p> Creates a set of partition tokens that can be used to execute a query operation in parallel. Each of the returned partition tokens can be used by [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] to specify a subset of the query result to read. The same session and read-only transaction must be used by the PartitionQueryRequest used to create the partition tokens and the ExecuteSqlRequests that use the partition tokens. + * <p> Partition tokens become invalid when the session used to create them is deleted, is idle for too long, begins a new transaction, or becomes too old. When any of these happen, it is not possible to resume the query, and the whole operation must be restarted from the beginning.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> partitionQuery(PartitionQueryRequest request) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> partitionQueryCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> PartitionRead</td> + * <td><p> Creates a set of partition tokens that can be used to execute a read operation in parallel. Each of the returned partition tokens can be used by [StreamingRead][google.spanner.v1.Spanner.StreamingRead] to specify a subset of the read result to read. The same session and read-only transaction must be used by the PartitionReadRequest used to create the partition tokens and the ReadRequests that use the partition tokens. There are no ordering guarantees on rows returned among the returned partition tokens, or even within each individual StreamingRead call issued with a partition_token. + * <p> Partition tokens become invalid when the session used to create them is deleted, is idle for too long, begins a new transaction, or becomes too old. When any of these happen, it is not possible to resume the read, and the whole operation must be restarted from the beginning.</td> + * <td> + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> + * <ul> + * <li><p> partitionRead(PartitionReadRequest request) + * </ul> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> partitionReadCallable() + * </ul> + * </td> + * </tr> + * <tr> + * <td><p> BatchWrite</td> + * <td><p> Batches the supplied mutation groups in a collection of efficient transactions. All mutations in a group are committed atomically. However, mutations across groups can be committed non-atomically in an unspecified order and thus, they must be independent of each other. Partial failure is possible, i.e., some groups may have been committed successfully, while some may have failed. The results of individual batches are streamed into the response as the batches are applied. + * <p> BatchWrite requests are not replay protected, meaning that each mutation group may be applied more than once. Replays of non-idempotent mutations may have undesirable effects. For example, replays of an insert mutation may produce an already exists error or if you use generated or commit timestamp-based keys, it may result in additional rows being added to the mutation's table. We recommend structuring your mutation groups to be idempotent to avoid this issue.</td> + * <td> + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> + * <ul> + * <li><p> batchWriteCallable() + * </ul> + * </td> + * </tr> + * </table> * * <p>See the individual methods for example code. * @@ -1643,6 +1909,7 @@ public final CommitResponse commit( * SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) * .addAllMutations(new ArrayList<Mutation>()) * .setReturnCommitStats(true) + * .setMaxCommitDelay(Duration.newBuilder().build()) * .setRequestOptions(RequestOptions.newBuilder().build()) * .build(); * CommitResponse response = spannerClient.commit(request); @@ -1686,6 +1953,7 @@ public final CommitResponse commit(CommitRequest request) { * SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) * .addAllMutations(new ArrayList<Mutation>()) * .setReturnCommitStats(true) + * .setMaxCommitDelay(Duration.newBuilder().build()) * .setRequestOptions(RequestOptions.newBuilder().build()) * .build(); * ApiFuture<CommitResponse> future = spannerClient.commitCallable().futureCall(request); diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java index f83cee51475..8d5ccd72859 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.spanner.v1.stub.SpannerStubSettings; diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/gapic_metadata.json similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/gapic_metadata.json diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/package-info.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/package-info.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/package-info.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerCallableFactory.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerCallableFactory.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerCallableFactory.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerCallableFactory.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java similarity index 99% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java index 7b527bb272c..ac274cb3925 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java @@ -55,6 +55,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerCallableFactory.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerCallableFactory.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerCallableFactory.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerCallableFactory.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerStub.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/HttpJsonSpannerStub.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java similarity index 100% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStub.java diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java similarity index 98% rename from google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java rename to owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java index ac47e6177e1..5b6939e7dad 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java @@ -299,6 +299,21 @@ public SpannerStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "spanner"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); @@ -588,7 +603,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -601,7 +615,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -797,6 +810,15 @@ public UnaryCallSettings.Builder<RollbackRequest, Empty> rollbackSettings() { return batchWriteSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SpannerStubSettings build() throws IOException { return new SpannerStubSettings(this); diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json b/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json new file mode 100644 index 00000000000..b0045af3fac --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json @@ -0,0 +1,2315 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$LogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Backup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Backup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Backup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.BackupInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.BackupInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig$EncryptionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CopyBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig$EncryptionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.CreateDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Database", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Database$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.Database$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DatabaseDialect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DatabaseRole", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DatabaseRole$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DdlStatementActionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DdlStatementActionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DeleteBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DeleteBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DropDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.DropDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.EncryptionInfo$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseDdlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseDdlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseDdlResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseDdlResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.GetDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListBackupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseRolesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseRolesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseRolesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabaseRolesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabasesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabasesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabasesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.ListDatabasesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.OperationProgress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.OperationProgress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig$EncryptionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.RestoreSourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.database.v1.UpdateDatabaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json b/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json new file mode 100644 index 00000000000..46cbdef6597 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json @@ -0,0 +1,1973 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$LogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingLimits", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingLimits$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingTargets", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$AutoscalingTargets$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.AutoscalingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.CreateInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.DeleteInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.DeleteInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.GetInstanceConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.GetInstanceConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.GetInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.GetInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.Instance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.Instance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.Instance$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstancesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ListInstancesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.OperationProgress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.OperationProgress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ReplicaInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ReplicaInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.ReplicaInfo$ReplicaType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.UpdateInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json b/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json new file mode 100644 index 00000000000..98b78b4ff22 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json @@ -0,0 +1,2162 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchCreateSessionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchCreateSessionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchCreateSessionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchCreateSessionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteRequest$MutationGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteRequest$MutationGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BatchWriteResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BeginTransactionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.BeginTransactionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitResponse$CommitStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CommitResponse$CommitStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CreateSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.CreateSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DeleteSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DeleteSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ExcludeReplicas", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ExcludeReplicas$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$IncludeReplicas", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$IncludeReplicas$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlRequest$Statement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlRequest$Statement$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteBatchDmlResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest$QueryMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest$QueryOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ExecuteSqlRequest$QueryOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.GetSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.GetSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.KeyRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.KeyRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.KeySet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.KeySet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ListSessionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ListSessionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ListSessionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ListSessionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Delete", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Delete$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Write", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Mutation$Write$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartialResultSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartialResultSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Partition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Partition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionReadRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionReadRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PartitionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$ChildLink", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$ChildLink$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$Kind", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$ShortRepresentation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.PlanNode$ShortRepresentation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.QueryPlan", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.QueryPlan$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ReadRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ReadRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RequestOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RequestOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RequestOptions$Priority", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSetMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSetMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSetStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ResultSetStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RollbackRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.RollbackRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Session", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Session$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.StructType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.StructType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.StructType$Field", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.StructType$Field$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Transaction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Transaction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$PartitionedDml", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$PartitionedDml$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadOnly", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadOnly$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadWrite", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadWrite$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionOptions$ReadWrite$ReadLockMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionSelector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TransactionSelector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.Type$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TypeAnnotationCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.TypeCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientHttpJsonTest.java new file mode 100644 index 00000000000..e55bf0cd988 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientHttpJsonTest.java @@ -0,0 +1,2383 @@ +/* + * 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.admin.database.v1; + +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListBackupOperationsPagedResponse; +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListBackupsPagedResponse; +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabaseOperationsPagedResponse; +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabaseRolesPagedResponse; +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabasesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.spanner.admin.database.v1.stub.HttpJsonDatabaseAdminStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.spanner.admin.database.v1.Backup; +import com.google.spanner.admin.database.v1.BackupName; +import com.google.spanner.admin.database.v1.Database; +import com.google.spanner.admin.database.v1.DatabaseDialect; +import com.google.spanner.admin.database.v1.DatabaseName; +import com.google.spanner.admin.database.v1.DatabaseRole; +import com.google.spanner.admin.database.v1.EncryptionConfig; +import com.google.spanner.admin.database.v1.EncryptionInfo; +import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse; +import com.google.spanner.admin.database.v1.InstanceName; +import com.google.spanner.admin.database.v1.ListBackupOperationsResponse; +import com.google.spanner.admin.database.v1.ListBackupsResponse; +import com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse; +import com.google.spanner.admin.database.v1.ListDatabaseRolesResponse; +import com.google.spanner.admin.database.v1.ListDatabasesResponse; +import com.google.spanner.admin.database.v1.RestoreInfo; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DatabaseAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static DatabaseAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDatabaseAdminStub.getMethodDescriptors(), + DatabaseAdminSettings.getDefaultEndpoint()); + DatabaseAdminSettings settings = + DatabaseAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DatabaseAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DatabaseAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listDatabasesTest() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List<Database> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDatabasesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabasesTest2() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8887/instances/instance-8887"; + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List<Database> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDatabasesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String createStatement = "createStatement744686547"; + + Database actualResponse = client.createDatabaseAsync(parent, createStatement).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String createStatement = "createStatement744686547"; + client.createDatabaseAsync(parent, createStatement).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8887/instances/instance-8887"; + String createStatement = "createStatement744686547"; + + Database actualResponse = client.createDatabaseAsync(parent, createStatement).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + String createStatement = "createStatement744686547"; + client.createDatabaseAsync(parent, createStatement).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + mockService.addResponse(expectedResponse); + + DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + Database actualResponse = client.getDatabase(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.getDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5262/instances/instance-5262/databases/database-5262"; + + Database actualResponse = client.getDatabase(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5262/instances/instance-5262/databases/database-5262"; + client.getDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Database database = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Database actualResponse = client.updateDatabaseAsync(database, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Database database = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDatabaseAsync(database, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateDatabaseDdlTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDatabaseDdlTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + List<String> statements = new ArrayList<>(); + + client.updateDatabaseDdlAsync(database, statements).get(); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDatabaseDdlExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + List<String> statements = new ArrayList<>(); + client.updateDatabaseDdlAsync(database, statements).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateDatabaseDdlTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDatabaseDdlTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + List<String> statements = new ArrayList<>(); + + client.updateDatabaseDdlAsync(database, statements).get(); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDatabaseDdlExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + List<String> statements = new ArrayList<>(); + client.updateDatabaseDdlAsync(database, statements).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void dropDatabaseTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + client.dropDatabase(database); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void dropDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.dropDatabase(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void dropDatabaseTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + + client.dropDatabase(database); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void dropDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + client.dropDatabase(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseDdlTest() throws Exception { + GetDatabaseDdlResponse expectedResponse = + GetDatabaseDdlResponse.newBuilder() + .addAllStatements(new ArrayList<String>()) + .setProtoDescriptors(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + GetDatabaseDdlResponse actualResponse = client.getDatabaseDdl(database); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDatabaseDdlExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.getDatabaseDdl(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseDdlTest2() throws Exception { + GetDatabaseDdlResponse expectedResponse = + GetDatabaseDdlResponse.newBuilder() + .addAllStatements(new ArrayList<String>()) + .setProtoDescriptors(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + + GetDatabaseDdlResponse actualResponse = client.getDatabaseDdl(database); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDatabaseDdlExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + client.getDatabaseDdl(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1023/instances/instance-1023/databases/database-1023"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1023/instances/instance-1023/databases/database-1023"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1023/instances/instance-1023/databases/database-1023"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1023/instances/instance-1023/databases/database-1023"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + List<String> permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + List<String> permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1023/instances/instance-1023/databases/database-1023"; + List<String> permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1023/instances/instance-1023/databases/database-1023"; + List<String> permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8887/instances/instance-8887"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void copyBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void copyBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void copyBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void copyBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void copyBackupTest3() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8887/instances/instance-8887"; + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void copyBackupExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void copyBackupTest4() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8887/instances/instance-8887"; + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void copyBackupExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3271/instances/instance-3271/backups/backup-3271"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3271/instances/instance-3271/backups/backup-3271"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Backup backup = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Backup actualResponse = client.updateBackup(backup, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Backup backup = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackup(backup, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + client.deleteBackup(name); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.deleteBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3271/instances/instance-3271/backups/backup-3271"; + + client.deleteBackup(name); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3271/instances/instance-3271/backups/backup-3271"; + client.deleteBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List<Backup> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8887/instances/instance-8887"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List<Backup> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void restoreDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String databaseId = "databaseId1688905718"; + BackupName backup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + Database actualResponse = client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreDatabaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String databaseId = "databaseId1688905718"; + BackupName backup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String databaseId = "databaseId1688905718"; + String backup = "backup-1396673086"; + + Database actualResponse = client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreDatabaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String databaseId = "databaseId1688905718"; + String backup = "backup-1396673086"; + client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreDatabaseTest3() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8887/instances/instance-8887"; + String databaseId = "databaseId1688905718"; + BackupName backup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + Database actualResponse = client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreDatabaseExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + String databaseId = "databaseId1688905718"; + BackupName backup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreDatabaseTest4() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8887/instances/instance-8887"; + String databaseId = "databaseId1688905718"; + String backup = "backup-1396673086"; + + Database actualResponse = client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreDatabaseExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + String databaseId = "databaseId1688905718"; + String backup = "backup-1396673086"; + client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listDatabaseOperationsTest() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListDatabaseOperationsResponse expectedResponse = + ListDatabaseOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListDatabaseOperationsPagedResponse pagedListResponse = client.listDatabaseOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDatabaseOperationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listDatabaseOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseOperationsTest2() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListDatabaseOperationsResponse expectedResponse = + ListDatabaseOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8887/instances/instance-8887"; + + ListDatabaseOperationsPagedResponse pagedListResponse = client.listDatabaseOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDatabaseOperationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + client.listDatabaseOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupOperationsTest() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListBackupOperationsResponse expectedResponse = + ListBackupOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListBackupOperationsPagedResponse pagedListResponse = client.listBackupOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupOperationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listBackupOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupOperationsTest2() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListBackupOperationsResponse expectedResponse = + ListBackupOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8887/instances/instance-8887"; + + ListBackupOperationsPagedResponse pagedListResponse = client.listBackupOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupOperationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8887/instances/instance-8887"; + client.listBackupOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseRolesTest() throws Exception { + DatabaseRole responsesElement = DatabaseRole.newBuilder().build(); + ListDatabaseRolesResponse expectedResponse = + ListDatabaseRolesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseRoles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DatabaseName parent = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + ListDatabaseRolesPagedResponse pagedListResponse = client.listDatabaseRoles(parent); + + List<DatabaseRole> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseRolesList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDatabaseRolesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName parent = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.listDatabaseRoles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseRolesTest2() throws Exception { + DatabaseRole responsesElement = DatabaseRole.newBuilder().build(); + ListDatabaseRolesResponse expectedResponse = + ListDatabaseRolesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseRoles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9347/instances/instance-9347/databases/database-9347"; + + ListDatabaseRolesPagedResponse pagedListResponse = client.listDatabaseRoles(parent); + + List<DatabaseRole> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseRolesList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDatabaseRolesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9347/instances/instance-9347/databases/database-9347"; + client.listDatabaseRoles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientTest.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientTest.java new file mode 100644 index 00000000000..35936093c1c --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClientTest.java @@ -0,0 +1,2186 @@ +/* + * 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.admin.database.v1; + +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListBackupOperationsPagedResponse; +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListBackupsPagedResponse; +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabaseOperationsPagedResponse; +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabaseRolesPagedResponse; +import static com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient.ListDatabasesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.spanner.admin.database.v1.Backup; +import com.google.spanner.admin.database.v1.BackupName; +import com.google.spanner.admin.database.v1.CopyBackupRequest; +import com.google.spanner.admin.database.v1.CreateBackupRequest; +import com.google.spanner.admin.database.v1.CreateDatabaseRequest; +import com.google.spanner.admin.database.v1.Database; +import com.google.spanner.admin.database.v1.DatabaseDialect; +import com.google.spanner.admin.database.v1.DatabaseName; +import com.google.spanner.admin.database.v1.DatabaseRole; +import com.google.spanner.admin.database.v1.DeleteBackupRequest; +import com.google.spanner.admin.database.v1.DropDatabaseRequest; +import com.google.spanner.admin.database.v1.EncryptionConfig; +import com.google.spanner.admin.database.v1.EncryptionInfo; +import com.google.spanner.admin.database.v1.GetBackupRequest; +import com.google.spanner.admin.database.v1.GetDatabaseDdlRequest; +import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse; +import com.google.spanner.admin.database.v1.GetDatabaseRequest; +import com.google.spanner.admin.database.v1.InstanceName; +import com.google.spanner.admin.database.v1.ListBackupOperationsRequest; +import com.google.spanner.admin.database.v1.ListBackupOperationsResponse; +import com.google.spanner.admin.database.v1.ListBackupsRequest; +import com.google.spanner.admin.database.v1.ListBackupsResponse; +import com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest; +import com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse; +import com.google.spanner.admin.database.v1.ListDatabaseRolesRequest; +import com.google.spanner.admin.database.v1.ListDatabaseRolesResponse; +import com.google.spanner.admin.database.v1.ListDatabasesRequest; +import com.google.spanner.admin.database.v1.ListDatabasesResponse; +import com.google.spanner.admin.database.v1.RestoreDatabaseRequest; +import com.google.spanner.admin.database.v1.RestoreInfo; +import com.google.spanner.admin.database.v1.UpdateBackupRequest; +import com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest; +import com.google.spanner.admin.database.v1.UpdateDatabaseRequest; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DatabaseAdminClientTest { + private static MockDatabaseAdmin mockDatabaseAdmin; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DatabaseAdminClient client; + + @BeforeClass + public static void startStaticServer() { + mockDatabaseAdmin = new MockDatabaseAdmin(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockDatabaseAdmin)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DatabaseAdminSettings settings = + DatabaseAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DatabaseAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listDatabasesTest() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List<Database> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabasesRequest actualRequest = ((ListDatabasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabasesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabasesTest2() throws Exception { + Database responsesElement = Database.newBuilder().build(); + ListDatabasesResponse expectedResponse = + ListDatabasesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabases(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDatabasesPagedResponse pagedListResponse = client.listDatabases(parent); + + List<Database> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabasesList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabasesRequest actualRequest = ((ListDatabasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabasesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDatabases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String createStatement = "createStatement744686547"; + + Database actualResponse = client.createDatabaseAsync(parent, createStatement).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDatabaseRequest actualRequest = ((CreateDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(createStatement, actualRequest.getCreateStatement()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String createStatement = "createStatement744686547"; + client.createDatabaseAsync(parent, createStatement).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String createStatement = "createStatement744686547"; + + Database actualResponse = client.createDatabaseAsync(parent, createStatement).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDatabaseRequest actualRequest = ((CreateDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(createStatement, actualRequest.getCreateStatement()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String createStatement = "createStatement744686547"; + client.createDatabaseAsync(parent, createStatement).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + Database actualResponse = client.getDatabase(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatabaseRequest actualRequest = ((GetDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.getDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + Database actualResponse = client.getDatabase(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatabaseRequest actualRequest = ((GetDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String name = "name3373707"; + client.getDatabase(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + Database database = Database.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Database actualResponse = client.updateDatabaseAsync(database, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDatabaseRequest actualRequest = ((UpdateDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + Database database = Database.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDatabaseAsync(database, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateDatabaseDdlTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDatabaseDdlTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + List<String> statements = new ArrayList<>(); + + client.updateDatabaseDdlAsync(database, statements).get(); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDatabaseDdlRequest actualRequest = ((UpdateDatabaseDdlRequest) actualRequests.get(0)); + + Assert.assertEquals(database.toString(), actualRequest.getDatabase()); + Assert.assertEquals(statements, actualRequest.getStatementsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDatabaseDdlExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + List<String> statements = new ArrayList<>(); + client.updateDatabaseDdlAsync(database, statements).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateDatabaseDdlTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDatabaseDdlTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + String database = "database1789464955"; + List<String> statements = new ArrayList<>(); + + client.updateDatabaseDdlAsync(database, statements).get(); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDatabaseDdlRequest actualRequest = ((UpdateDatabaseDdlRequest) actualRequests.get(0)); + + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(statements, actualRequest.getStatementsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDatabaseDdlExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String database = "database1789464955"; + List<String> statements = new ArrayList<>(); + client.updateDatabaseDdlAsync(database, statements).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void dropDatabaseTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + client.dropDatabase(database); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DropDatabaseRequest actualRequest = ((DropDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(database.toString(), actualRequest.getDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void dropDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.dropDatabase(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void dropDatabaseTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String database = "database1789464955"; + + client.dropDatabase(database); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DropDatabaseRequest actualRequest = ((DropDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void dropDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String database = "database1789464955"; + client.dropDatabase(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseDdlTest() throws Exception { + GetDatabaseDdlResponse expectedResponse = + GetDatabaseDdlResponse.newBuilder() + .addAllStatements(new ArrayList<String>()) + .setProtoDescriptors(ByteString.EMPTY) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + GetDatabaseDdlResponse actualResponse = client.getDatabaseDdl(database); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatabaseDdlRequest actualRequest = ((GetDatabaseDdlRequest) actualRequests.get(0)); + + Assert.assertEquals(database.toString(), actualRequest.getDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatabaseDdlExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.getDatabaseDdl(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatabaseDdlTest2() throws Exception { + GetDatabaseDdlResponse expectedResponse = + GetDatabaseDdlResponse.newBuilder() + .addAllStatements(new ArrayList<String>()) + .setProtoDescriptors(ByteString.EMPTY) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String database = "database1789464955"; + + GetDatabaseDdlResponse actualResponse = client.getDatabaseDdl(database); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatabaseDdlRequest actualRequest = ((GetDatabaseDdlRequest) actualRequests.get(0)); + + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatabaseDdlExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String database = "database1789464955"; + client.getDatabaseDdl(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String resource = "resource-341064690"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String resource = "resource-341064690"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + List<String> permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + List<String> permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String resource = "resource-341064690"; + List<String> permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String resource = "resource-341064690"; + List<String> permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void copyBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyBackupRequest actualRequest = ((CopyBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(sourceBackup.toString(), actualRequest.getSourceBackup()); + Assert.assertEquals(expireTime, actualRequest.getExpireTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void copyBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyBackupRequest actualRequest = ((CopyBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(sourceBackup, actualRequest.getSourceBackup()); + Assert.assertEquals(expireTime, actualRequest.getExpireTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void copyBackupTest3() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyBackupRequest actualRequest = ((CopyBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(sourceBackup.toString(), actualRequest.getSourceBackup()); + Assert.assertEquals(expireTime, actualRequest.getExpireTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyBackupExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void copyBackupTest4() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyBackupRequest actualRequest = ((CopyBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(sourceBackup, actualRequest.getSourceBackup()); + Assert.assertEquals(expireTime, actualRequest.getExpireTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyBackupExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String name = "name3373707"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setVersionTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .addAllReferencingDatabases(new ArrayList<String>()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .addAllReferencingBackups(new ArrayList<String>()) + .setMaxExpireTime(Timestamp.newBuilder().build()) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Backup actualResponse = client.updateBackup(backup, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBackupRequest actualRequest = ((UpdateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackup(backup, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + client.deleteBackup(name); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.deleteBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteBackup(name); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String name = "name3373707"; + client.deleteBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List<Backup> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List<Backup> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void restoreDatabaseTest() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String databaseId = "databaseId1688905718"; + BackupName backup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + Database actualResponse = client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreDatabaseRequest actualRequest = ((RestoreDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(databaseId, actualRequest.getDatabaseId()); + Assert.assertEquals(backup.toString(), actualRequest.getBackup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreDatabaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String databaseId = "databaseId1688905718"; + BackupName backup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreDatabaseTest2() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String databaseId = "databaseId1688905718"; + String backup = "backup-1396673086"; + + Database actualResponse = client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreDatabaseRequest actualRequest = ((RestoreDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(databaseId, actualRequest.getDatabaseId()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreDatabaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + String databaseId = "databaseId1688905718"; + String backup = "backup-1396673086"; + client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreDatabaseTest3() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String databaseId = "databaseId1688905718"; + BackupName backup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + + Database actualResponse = client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreDatabaseRequest actualRequest = ((RestoreDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(databaseId, actualRequest.getDatabaseId()); + Assert.assertEquals(backup.toString(), actualRequest.getBackup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreDatabaseExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String databaseId = "databaseId1688905718"; + BackupName backup = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]"); + client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreDatabaseTest4() throws Exception { + Database expectedResponse = + Database.newBuilder() + .setName(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .addAllEncryptionInfo(new ArrayList<EncryptionInfo>()) + .setVersionRetentionPeriod("versionRetentionPeriod-629783929") + .setEarliestVersionTime(Timestamp.newBuilder().build()) + .setDefaultLeader("defaultLeader759009962") + .setDatabaseDialect(DatabaseDialect.forNumber(0)) + .setEnableDropProtection(true) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatabaseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatabaseAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String databaseId = "databaseId1688905718"; + String backup = "backup-1396673086"; + + Database actualResponse = client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreDatabaseRequest actualRequest = ((RestoreDatabaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(databaseId, actualRequest.getDatabaseId()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreDatabaseExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String databaseId = "databaseId1688905718"; + String backup = "backup-1396673086"; + client.restoreDatabaseAsync(parent, databaseId, backup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listDatabaseOperationsTest() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListDatabaseOperationsResponse expectedResponse = + ListDatabaseOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListDatabaseOperationsPagedResponse pagedListResponse = client.listDatabaseOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabaseOperationsRequest actualRequest = + ((ListDatabaseOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabaseOperationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listDatabaseOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseOperationsTest2() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListDatabaseOperationsResponse expectedResponse = + ListDatabaseOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDatabaseOperationsPagedResponse pagedListResponse = client.listDatabaseOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabaseOperationsRequest actualRequest = + ((ListDatabaseOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabaseOperationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDatabaseOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupOperationsTest() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListBackupOperationsResponse expectedResponse = + ListBackupOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + ListBackupOperationsPagedResponse pagedListResponse = client.listBackupOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupOperationsRequest actualRequest = + ((ListBackupOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupOperationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.listBackupOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupOperationsTest2() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListBackupOperationsResponse expectedResponse = + ListBackupOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackupOperationsPagedResponse pagedListResponse = client.listBackupOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupOperationsRequest actualRequest = + ((ListBackupOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupOperationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackupOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseRolesTest() throws Exception { + DatabaseRole responsesElement = DatabaseRole.newBuilder().build(); + ListDatabaseRolesResponse expectedResponse = + ListDatabaseRolesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseRoles(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + DatabaseName parent = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + ListDatabaseRolesPagedResponse pagedListResponse = client.listDatabaseRoles(parent); + + List<DatabaseRole> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseRolesList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabaseRolesRequest actualRequest = ((ListDatabaseRolesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabaseRolesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + DatabaseName parent = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.listDatabaseRoles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatabaseRolesTest2() throws Exception { + DatabaseRole responsesElement = DatabaseRole.newBuilder().build(); + ListDatabaseRolesResponse expectedResponse = + ListDatabaseRolesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseRoles(Arrays.asList(responsesElement)) + .build(); + mockDatabaseAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDatabaseRolesPagedResponse pagedListResponse = client.listDatabaseRoles(parent); + + List<DatabaseRole> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseRolesList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockDatabaseAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatabaseRolesRequest actualRequest = ((ListDatabaseRolesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatabaseRolesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDatabaseRoles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdmin.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdmin.java new file mode 100644 index 00000000000..e3f036bce5e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdmin.java @@ -0,0 +1,59 @@ +/* + * 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.admin.database.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDatabaseAdmin implements MockGrpcService { + private final MockDatabaseAdminImpl serviceImpl; + + public MockDatabaseAdmin() { + serviceImpl = new MockDatabaseAdminImpl(); + } + + @Override + public List<AbstractMessage> getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdminImpl.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdminImpl.java new file mode 100644 index 00000000000..9f21733e467 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/database/v1/MockDatabaseAdminImpl.java @@ -0,0 +1,508 @@ +/* + * 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.admin.database.v1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.spanner.admin.database.v1.Backup; +import com.google.spanner.admin.database.v1.CopyBackupRequest; +import com.google.spanner.admin.database.v1.CreateBackupRequest; +import com.google.spanner.admin.database.v1.CreateDatabaseRequest; +import com.google.spanner.admin.database.v1.Database; +import com.google.spanner.admin.database.v1.DatabaseAdminGrpc.DatabaseAdminImplBase; +import com.google.spanner.admin.database.v1.DeleteBackupRequest; +import com.google.spanner.admin.database.v1.DropDatabaseRequest; +import com.google.spanner.admin.database.v1.GetBackupRequest; +import com.google.spanner.admin.database.v1.GetDatabaseDdlRequest; +import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse; +import com.google.spanner.admin.database.v1.GetDatabaseRequest; +import com.google.spanner.admin.database.v1.ListBackupOperationsRequest; +import com.google.spanner.admin.database.v1.ListBackupOperationsResponse; +import com.google.spanner.admin.database.v1.ListBackupsRequest; +import com.google.spanner.admin.database.v1.ListBackupsResponse; +import com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest; +import com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse; +import com.google.spanner.admin.database.v1.ListDatabaseRolesRequest; +import com.google.spanner.admin.database.v1.ListDatabaseRolesResponse; +import com.google.spanner.admin.database.v1.ListDatabasesRequest; +import com.google.spanner.admin.database.v1.ListDatabasesResponse; +import com.google.spanner.admin.database.v1.RestoreDatabaseRequest; +import com.google.spanner.admin.database.v1.UpdateBackupRequest; +import com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest; +import com.google.spanner.admin.database.v1.UpdateDatabaseRequest; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDatabaseAdminImpl extends DatabaseAdminImplBase { + private List<AbstractMessage> requests; + private Queue<Object> responses; + + public MockDatabaseAdminImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List<AbstractMessage> getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List<AbstractMessage> responses) { + this.responses = new LinkedList<Object>(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listDatabases( + ListDatabasesRequest request, StreamObserver<ListDatabasesResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDatabasesResponse) { + requests.add(request); + responseObserver.onNext(((ListDatabasesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDatabases, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDatabasesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDatabase( + CreateDatabaseRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateDatabase, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDatabase(GetDatabaseRequest request, StreamObserver<Database> responseObserver) { + Object response = responses.poll(); + if (response instanceof Database) { + requests.add(request); + responseObserver.onNext(((Database) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDatabase, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Database.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDatabase( + UpdateDatabaseRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDatabase, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDatabaseDdl( + UpdateDatabaseDdlRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDatabaseDdl, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void dropDatabase(DropDatabaseRequest request, StreamObserver<Empty> responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DropDatabase, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDatabaseDdl( + GetDatabaseDdlRequest request, StreamObserver<GetDatabaseDdlResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof GetDatabaseDdlResponse) { + requests.add(request); + responseObserver.onNext(((GetDatabaseDdlResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDatabaseDdl, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GetDatabaseDdlResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver<TestIamPermissionsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBackup( + CreateBackupRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void copyBackup(CopyBackupRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CopyBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBackup(GetBackupRequest request, StreamObserver<Backup> responseObserver) { + Object response = responses.poll(); + if (response instanceof Backup) { + requests.add(request); + responseObserver.onNext(((Backup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Backup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBackup(UpdateBackupRequest request, StreamObserver<Backup> responseObserver) { + Object response = responses.poll(); + if (response instanceof Backup) { + requests.add(request); + responseObserver.onNext(((Backup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Backup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBackup(DeleteBackupRequest request, StreamObserver<Empty> responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBackups( + ListBackupsRequest request, StreamObserver<ListBackupsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBackupsResponse) { + requests.add(request); + responseObserver.onNext(((ListBackupsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBackups, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBackupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void restoreDatabase( + RestoreDatabaseRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RestoreDatabase, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDatabaseOperations( + ListDatabaseOperationsRequest request, + StreamObserver<ListDatabaseOperationsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDatabaseOperationsResponse) { + requests.add(request); + responseObserver.onNext(((ListDatabaseOperationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDatabaseOperations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDatabaseOperationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBackupOperations( + ListBackupOperationsRequest request, + StreamObserver<ListBackupOperationsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBackupOperationsResponse) { + requests.add(request); + responseObserver.onNext(((ListBackupOperationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBackupOperations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBackupOperationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDatabaseRoles( + ListDatabaseRolesRequest request, + StreamObserver<ListDatabaseRolesResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDatabaseRolesResponse) { + requests.add(request); + responseObserver.onNext(((ListDatabaseRolesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDatabaseRoles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDatabaseRolesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java new file mode 100644 index 00000000000..f074c20b59c --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java @@ -0,0 +1,1469 @@ +/* + * 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.admin.instance.v1; + +import static com.google.cloud.spanner.admin.instance.v1.InstanceAdminClient.ListInstanceConfigOperationsPagedResponse; +import static com.google.cloud.spanner.admin.instance.v1.InstanceAdminClient.ListInstanceConfigsPagedResponse; +import static com.google.cloud.spanner.admin.instance.v1.InstanceAdminClient.ListInstancesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.spanner.admin.instance.v1.stub.HttpJsonInstanceAdminStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.spanner.admin.instance.v1.AutoscalingConfig; +import com.google.spanner.admin.instance.v1.Instance; +import com.google.spanner.admin.instance.v1.InstanceConfig; +import com.google.spanner.admin.instance.v1.InstanceConfigName; +import com.google.spanner.admin.instance.v1.InstanceName; +import com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse; +import com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse; +import com.google.spanner.admin.instance.v1.ListInstancesResponse; +import com.google.spanner.admin.instance.v1.ProjectName; +import com.google.spanner.admin.instance.v1.ReplicaInfo; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class InstanceAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static InstanceAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonInstanceAdminStub.getMethodDescriptors(), + InstanceAdminSettings.getDefaultEndpoint()); + InstanceAdminSettings settings = + InstanceAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + InstanceAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = InstanceAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listInstanceConfigsTest() throws Exception { + InstanceConfig responsesElement = InstanceConfig.newBuilder().build(); + ListInstanceConfigsResponse expectedResponse = + ListInstanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllInstanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListInstanceConfigsPagedResponse pagedListResponse = client.listInstanceConfigs(parent); + + List<InstanceConfig> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstanceConfigsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listInstanceConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listInstanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstanceConfigsTest2() throws Exception { + InstanceConfig responsesElement = InstanceConfig.newBuilder().build(); + ListInstanceConfigsResponse expectedResponse = + ListInstanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllInstanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListInstanceConfigsPagedResponse pagedListResponse = client.listInstanceConfigs(parent); + + List<InstanceConfig> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstanceConfigsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listInstanceConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listInstanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceConfigTest() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + mockService.addResponse(expectedResponse); + + InstanceConfigName name = InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]"); + + InstanceConfig actualResponse = client.getInstanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getInstanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceConfigName name = InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]"); + client.getInstanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceConfigTest2() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3640/instanceConfigs/instanceConfig-3640"; + + InstanceConfig actualResponse = client.getInstanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getInstanceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3640/instanceConfigs/instanceConfig-3640"; + client.getInstanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createInstanceConfigTest() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + String instanceConfigId = "instanceConfigId1750947762"; + + InstanceConfig actualResponse = + client.createInstanceConfigAsync(parent, instanceConfig, instanceConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createInstanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + String instanceConfigId = "instanceConfigId1750947762"; + client.createInstanceConfigAsync(parent, instanceConfig, instanceConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createInstanceConfigTest2() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-2353"; + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + String instanceConfigId = "instanceConfigId1750947762"; + + InstanceConfig actualResponse = + client.createInstanceConfigAsync(parent, instanceConfig, instanceConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createInstanceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + String instanceConfigId = "instanceConfigId1750947762"; + client.createInstanceConfigAsync(parent, instanceConfig, instanceConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateInstanceConfigTest() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInstanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceConfig instanceConfig = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + InstanceConfig actualResponse = + client.updateInstanceConfigAsync(instanceConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateInstanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceConfig instanceConfig = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateInstanceConfigAsync(instanceConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteInstanceConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + InstanceConfigName name = InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]"); + + client.deleteInstanceConfig(name); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteInstanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceConfigName name = InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]"); + client.deleteInstanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteInstanceConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3640/instanceConfigs/instanceConfig-3640"; + + client.deleteInstanceConfig(name); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteInstanceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3640/instanceConfigs/instanceConfig-3640"; + client.deleteInstanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstanceConfigOperationsTest() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListInstanceConfigOperationsResponse expectedResponse = + ListInstanceConfigOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListInstanceConfigOperationsPagedResponse pagedListResponse = + client.listInstanceConfigOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listInstanceConfigOperationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listInstanceConfigOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstanceConfigOperationsTest2() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListInstanceConfigOperationsResponse expectedResponse = + ListInstanceConfigOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListInstanceConfigOperationsPagedResponse pagedListResponse = + client.listInstanceConfigOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listInstanceConfigOperationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listInstanceConfigOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstancesTest() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List<Instance> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstancesTest2() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List<Instance> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listInstancesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + Instance actualResponse = client.getInstance(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3514/instances/instance-3514"; + + Instance actualResponse = client.getInstance(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getInstanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3514/instances/instance-3514"; + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + + Instance actualResponse = client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createInstanceTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-2353"; + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + + Instance actualResponse = client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createInstanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Instance instance = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask fieldMask = FieldMask.newBuilder().build(); + + Instance actualResponse = client.updateInstanceAsync(instance, fieldMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Instance instance = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask fieldMask = FieldMask.newBuilder().build(); + client.updateInstanceAsync(instance, fieldMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteInstanceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + client.deleteInstance(name); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.deleteInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteInstanceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3514/instances/instance-3514"; + + client.deleteInstance(name); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteInstanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3514/instances/instance-3514"; + client.deleteInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-3043/instances/instance-3043"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-3043/instances/instance-3043"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-3043/instances/instance-3043"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-3043/instances/instance-3043"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + List<String> permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + List<String> permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-3043/instances/instance-3043"; + List<String> permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-3043/instances/instance-3043"; + List<String> permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java new file mode 100644 index 00000000000..f4c1a6c3555 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java @@ -0,0 +1,1324 @@ +/* + * 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.admin.instance.v1; + +import static com.google.cloud.spanner.admin.instance.v1.InstanceAdminClient.ListInstanceConfigOperationsPagedResponse; +import static com.google.cloud.spanner.admin.instance.v1.InstanceAdminClient.ListInstanceConfigsPagedResponse; +import static com.google.cloud.spanner.admin.instance.v1.InstanceAdminClient.ListInstancesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.spanner.admin.instance.v1.AutoscalingConfig; +import com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest; +import com.google.spanner.admin.instance.v1.CreateInstanceRequest; +import com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest; +import com.google.spanner.admin.instance.v1.DeleteInstanceRequest; +import com.google.spanner.admin.instance.v1.GetInstanceConfigRequest; +import com.google.spanner.admin.instance.v1.GetInstanceRequest; +import com.google.spanner.admin.instance.v1.Instance; +import com.google.spanner.admin.instance.v1.InstanceConfig; +import com.google.spanner.admin.instance.v1.InstanceConfigName; +import com.google.spanner.admin.instance.v1.InstanceName; +import com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest; +import com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse; +import com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest; +import com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse; +import com.google.spanner.admin.instance.v1.ListInstancesRequest; +import com.google.spanner.admin.instance.v1.ListInstancesResponse; +import com.google.spanner.admin.instance.v1.ProjectName; +import com.google.spanner.admin.instance.v1.ReplicaInfo; +import com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest; +import com.google.spanner.admin.instance.v1.UpdateInstanceRequest; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class InstanceAdminClientTest { + private static MockInstanceAdmin mockInstanceAdmin; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private InstanceAdminClient client; + + @BeforeClass + public static void startStaticServer() { + mockInstanceAdmin = new MockInstanceAdmin(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockInstanceAdmin)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + InstanceAdminSettings settings = + InstanceAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = InstanceAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listInstanceConfigsTest() throws Exception { + InstanceConfig responsesElement = InstanceConfig.newBuilder().build(); + ListInstanceConfigsResponse expectedResponse = + ListInstanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllInstanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListInstanceConfigsPagedResponse pagedListResponse = client.listInstanceConfigs(parent); + + List<InstanceConfig> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstanceConfigsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstanceConfigsRequest actualRequest = ((ListInstanceConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInstanceConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listInstanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstanceConfigsTest2() throws Exception { + InstanceConfig responsesElement = InstanceConfig.newBuilder().build(); + ListInstanceConfigsResponse expectedResponse = + ListInstanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllInstanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListInstanceConfigsPagedResponse pagedListResponse = client.listInstanceConfigs(parent); + + List<InstanceConfig> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstanceConfigsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstanceConfigsRequest actualRequest = ((ListInstanceConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInstanceConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listInstanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceConfigTest() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + InstanceConfigName name = InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]"); + + InstanceConfig actualResponse = client.getInstanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInstanceConfigRequest actualRequest = ((GetInstanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInstanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + InstanceConfigName name = InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]"); + client.getInstanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceConfigTest2() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + InstanceConfig actualResponse = client.getInstanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInstanceConfigRequest actualRequest = ((GetInstanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInstanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + client.getInstanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createInstanceConfigTest() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockInstanceAdmin.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + String instanceConfigId = "instanceConfigId1750947762"; + + InstanceConfig actualResponse = + client.createInstanceConfigAsync(parent, instanceConfig, instanceConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInstanceConfigRequest actualRequest = + ((CreateInstanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(instanceConfig, actualRequest.getInstanceConfig()); + Assert.assertEquals(instanceConfigId, actualRequest.getInstanceConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInstanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + String instanceConfigId = "instanceConfigId1750947762"; + client.createInstanceConfigAsync(parent, instanceConfig, instanceConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createInstanceConfigTest2() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockInstanceAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + String instanceConfigId = "instanceConfigId1750947762"; + + InstanceConfig actualResponse = + client.createInstanceConfigAsync(parent, instanceConfig, instanceConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInstanceConfigRequest actualRequest = + ((CreateInstanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(instanceConfig, actualRequest.getInstanceConfig()); + Assert.assertEquals(instanceConfigId, actualRequest.getInstanceConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInstanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + String instanceConfigId = "instanceConfigId1750947762"; + client.createInstanceConfigAsync(parent, instanceConfig, instanceConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateInstanceConfigTest() throws Exception { + InstanceConfig expectedResponse = + InstanceConfig.newBuilder() + .setName(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .addAllReplicas(new ArrayList<ReplicaInfo>()) + .addAllOptionalReplicas(new ArrayList<ReplicaInfo>()) + .setBaseConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setEtag("etag3123477") + .addAllLeaderOptions(new ArrayList<String>()) + .setReconciling(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInstanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockInstanceAdmin.addResponse(resultOperation); + + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + InstanceConfig actualResponse = + client.updateInstanceConfigAsync(instanceConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateInstanceConfigRequest actualRequest = + ((UpdateInstanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(instanceConfig, actualRequest.getInstanceConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateInstanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + InstanceConfig instanceConfig = InstanceConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateInstanceConfigAsync(instanceConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInstanceConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockInstanceAdmin.addResponse(expectedResponse); + + InstanceConfigName name = InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]"); + + client.deleteInstanceConfig(name); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInstanceConfigRequest actualRequest = + ((DeleteInstanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInstanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + InstanceConfigName name = InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]"); + client.deleteInstanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteInstanceConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteInstanceConfig(name); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInstanceConfigRequest actualRequest = + ((DeleteInstanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInstanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + client.deleteInstanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstanceConfigOperationsTest() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListInstanceConfigOperationsResponse expectedResponse = + ListInstanceConfigOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListInstanceConfigOperationsPagedResponse pagedListResponse = + client.listInstanceConfigOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstanceConfigOperationsRequest actualRequest = + ((ListInstanceConfigOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInstanceConfigOperationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listInstanceConfigOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstanceConfigOperationsTest2() throws Exception { + Operation responsesElement = Operation.newBuilder().build(); + ListInstanceConfigOperationsResponse expectedResponse = + ListInstanceConfigOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllOperations(Arrays.asList(responsesElement)) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListInstanceConfigOperationsPagedResponse pagedListResponse = + client.listInstanceConfigOperations(parent); + + List<Operation> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstanceConfigOperationsRequest actualRequest = + ((ListInstanceConfigOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInstanceConfigOperationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listInstanceConfigOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstancesTest() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List<Instance> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstancesRequest actualRequest = ((ListInstancesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInstancesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstancesTest2() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List<Instance> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstancesRequest actualRequest = ((ListInstancesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInstancesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + client.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + Instance actualResponse = client.getInstance(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInstanceRequest actualRequest = ((GetInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + Instance actualResponse = client.getInstance(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInstanceRequest actualRequest = ((GetInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInstanceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockInstanceAdmin.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + + Instance actualResponse = client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInstanceRequest actualRequest = ((CreateInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(instanceId, actualRequest.getInstanceId()); + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createInstanceTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockInstanceAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + + Instance actualResponse = client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInstanceRequest actualRequest = ((CreateInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(instanceId, actualRequest.getInstanceId()); + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInstanceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String instanceId = "instanceId902024336"; + Instance instance = Instance.newBuilder().build(); + client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setConfig(InstanceConfigName.of("[PROJECT]", "[INSTANCE_CONFIG]").toString()) + .setDisplayName("displayName1714148973") + .setNodeCount(1539922066) + .setProcessingUnits(-329117885) + .setAutoscalingConfig(AutoscalingConfig.newBuilder().build()) + .putAllLabels(new HashMap<String, String>()) + .addAllEndpointUris(new ArrayList<String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockInstanceAdmin.addResponse(resultOperation); + + Instance instance = Instance.newBuilder().build(); + FieldMask fieldMask = FieldMask.newBuilder().build(); + + Instance actualResponse = client.updateInstanceAsync(instance, fieldMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateInstanceRequest actualRequest = ((UpdateInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertEquals(fieldMask, actualRequest.getFieldMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + Instance instance = Instance.newBuilder().build(); + FieldMask fieldMask = FieldMask.newBuilder().build(); + client.updateInstanceAsync(instance, fieldMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInstanceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockInstanceAdmin.addResponse(expectedResponse); + + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + client.deleteInstance(name); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInstanceRequest actualRequest = ((DeleteInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.deleteInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteInstanceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteInstance(name); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInstanceRequest actualRequest = ((DeleteInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInstanceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String name = "name3373707"; + client.deleteInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList<Binding>()) + .addAllAuditConfigs(new ArrayList<AuditConfig>()) + .setEtag(ByteString.EMPTY) + .build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String resource = "resource-341064690"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String resource = "resource-341064690"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build(); + mockInstanceAdmin.addResponse(expectedResponse); + + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + List<String> permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + ResourceName resource = InstanceName.of("[PROJECT]", "[INSTANCE]"); + List<String> permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build(); + mockInstanceAdmin.addResponse(expectedResponse); + + String resource = "resource-341064690"; + List<String> permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockInstanceAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockInstanceAdmin.addException(exception); + + try { + String resource = "resource-341064690"; + List<String> permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdmin.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdmin.java new file mode 100644 index 00000000000..0dd71fe4115 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdmin.java @@ -0,0 +1,59 @@ +/* + * 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.admin.instance.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockInstanceAdmin implements MockGrpcService { + private final MockInstanceAdminImpl serviceImpl; + + public MockInstanceAdmin() { + serviceImpl = new MockInstanceAdminImpl(); + } + + @Override + public List<AbstractMessage> getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdminImpl.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdminImpl.java new file mode 100644 index 00000000000..9fa59c9f70e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/MockInstanceAdminImpl.java @@ -0,0 +1,377 @@ +/* + * 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.admin.instance.v1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest; +import com.google.spanner.admin.instance.v1.CreateInstanceRequest; +import com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest; +import com.google.spanner.admin.instance.v1.DeleteInstanceRequest; +import com.google.spanner.admin.instance.v1.GetInstanceConfigRequest; +import com.google.spanner.admin.instance.v1.GetInstanceRequest; +import com.google.spanner.admin.instance.v1.Instance; +import com.google.spanner.admin.instance.v1.InstanceAdminGrpc.InstanceAdminImplBase; +import com.google.spanner.admin.instance.v1.InstanceConfig; +import com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest; +import com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse; +import com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest; +import com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse; +import com.google.spanner.admin.instance.v1.ListInstancesRequest; +import com.google.spanner.admin.instance.v1.ListInstancesResponse; +import com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest; +import com.google.spanner.admin.instance.v1.UpdateInstanceRequest; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockInstanceAdminImpl extends InstanceAdminImplBase { + private List<AbstractMessage> requests; + private Queue<Object> responses; + + public MockInstanceAdminImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List<AbstractMessage> getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List<AbstractMessage> responses) { + this.responses = new LinkedList<Object>(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listInstanceConfigs( + ListInstanceConfigsRequest request, + StreamObserver<ListInstanceConfigsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListInstanceConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListInstanceConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListInstanceConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListInstanceConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getInstanceConfig( + GetInstanceConfigRequest request, StreamObserver<InstanceConfig> responseObserver) { + Object response = responses.poll(); + if (response instanceof InstanceConfig) { + requests.add(request); + responseObserver.onNext(((InstanceConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetInstanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + InstanceConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createInstanceConfig( + CreateInstanceConfigRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateInstanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateInstanceConfig( + UpdateInstanceConfigRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateInstanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteInstanceConfig( + DeleteInstanceConfigRequest request, StreamObserver<Empty> responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteInstanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listInstanceConfigOperations( + ListInstanceConfigOperationsRequest request, + StreamObserver<ListInstanceConfigOperationsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListInstanceConfigOperationsResponse) { + requests.add(request); + responseObserver.onNext(((ListInstanceConfigOperationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListInstanceConfigOperations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListInstanceConfigOperationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listInstances( + ListInstancesRequest request, StreamObserver<ListInstancesResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListInstancesResponse) { + requests.add(request); + responseObserver.onNext(((ListInstancesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListInstances, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListInstancesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getInstance(GetInstanceRequest request, StreamObserver<Instance> responseObserver) { + Object response = responses.poll(); + if (response instanceof Instance) { + requests.add(request); + responseObserver.onNext(((Instance) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetInstance, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Instance.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createInstance( + CreateInstanceRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateInstance, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateInstance( + UpdateInstanceRequest request, StreamObserver<Operation> responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateInstance, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteInstance( + DeleteInstanceRequest request, StreamObserver<Empty> responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteInstance, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver<TestIamPermissionsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpanner.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpanner.java new file mode 100644 index 00000000000..210b0ee06c3 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpanner.java @@ -0,0 +1,59 @@ +/* + * 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.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSpanner implements MockGrpcService { + private final MockSpannerImpl serviceImpl; + + public MockSpanner() { + serviceImpl = new MockSpannerImpl(); + } + + @Override + public List<AbstractMessage> getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java new file mode 100644 index 00000000000..c806987beeb --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/MockSpannerImpl.java @@ -0,0 +1,416 @@ +/* + * 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.v1; + +import com.google.api.core.BetaApi; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.spanner.v1.BatchCreateSessionsRequest; +import com.google.spanner.v1.BatchCreateSessionsResponse; +import com.google.spanner.v1.BatchWriteRequest; +import com.google.spanner.v1.BatchWriteResponse; +import com.google.spanner.v1.BeginTransactionRequest; +import com.google.spanner.v1.CommitRequest; +import com.google.spanner.v1.CommitResponse; +import com.google.spanner.v1.CreateSessionRequest; +import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; +import com.google.spanner.v1.ExecuteSqlRequest; +import com.google.spanner.v1.GetSessionRequest; +import com.google.spanner.v1.ListSessionsRequest; +import com.google.spanner.v1.ListSessionsResponse; +import com.google.spanner.v1.PartialResultSet; +import com.google.spanner.v1.PartitionQueryRequest; +import com.google.spanner.v1.PartitionReadRequest; +import com.google.spanner.v1.PartitionResponse; +import com.google.spanner.v1.ReadRequest; +import com.google.spanner.v1.ResultSet; +import com.google.spanner.v1.RollbackRequest; +import com.google.spanner.v1.Session; +import com.google.spanner.v1.SpannerGrpc.SpannerImplBase; +import com.google.spanner.v1.Transaction; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSpannerImpl extends SpannerImplBase { + private List<AbstractMessage> requests; + private Queue<Object> responses; + + public MockSpannerImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List<AbstractMessage> getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List<AbstractMessage> responses) { + this.responses = new LinkedList<Object>(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createSession( + CreateSessionRequest request, StreamObserver<Session> responseObserver) { + Object response = responses.poll(); + if (response instanceof Session) { + requests.add(request); + responseObserver.onNext(((Session) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSession, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Session.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchCreateSessions( + BatchCreateSessionsRequest request, + StreamObserver<BatchCreateSessionsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchCreateSessionsResponse) { + requests.add(request); + responseObserver.onNext(((BatchCreateSessionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchCreateSessions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchCreateSessionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSession(GetSessionRequest request, StreamObserver<Session> responseObserver) { + Object response = responses.poll(); + if (response instanceof Session) { + requests.add(request); + responseObserver.onNext(((Session) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSession, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Session.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSessions( + ListSessionsRequest request, StreamObserver<ListSessionsResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSessionsResponse) { + requests.add(request); + responseObserver.onNext(((ListSessionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSessions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSessionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSession(DeleteSessionRequest request, StreamObserver<Empty> responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSession, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void executeSql(ExecuteSqlRequest request, StreamObserver<ResultSet> responseObserver) { + Object response = responses.poll(); + if (response instanceof ResultSet) { + requests.add(request); + responseObserver.onNext(((ResultSet) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExecuteSql, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ResultSet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void executeStreamingSql( + ExecuteSqlRequest request, StreamObserver<PartialResultSet> responseObserver) { + Object response = responses.poll(); + if (response instanceof PartialResultSet) { + requests.add(request); + responseObserver.onNext(((PartialResultSet) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExecuteStreamingSql, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PartialResultSet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void executeBatchDml( + ExecuteBatchDmlRequest request, StreamObserver<ExecuteBatchDmlResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof ExecuteBatchDmlResponse) { + requests.add(request); + responseObserver.onNext(((ExecuteBatchDmlResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExecuteBatchDml, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExecuteBatchDmlResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void read(ReadRequest request, StreamObserver<ResultSet> responseObserver) { + Object response = responses.poll(); + if (response instanceof ResultSet) { + requests.add(request); + responseObserver.onNext(((ResultSet) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Read, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ResultSet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void streamingRead( + ReadRequest request, StreamObserver<PartialResultSet> responseObserver) { + Object response = responses.poll(); + if (response instanceof PartialResultSet) { + requests.add(request); + responseObserver.onNext(((PartialResultSet) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StreamingRead, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PartialResultSet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void beginTransaction( + BeginTransactionRequest request, StreamObserver<Transaction> responseObserver) { + Object response = responses.poll(); + if (response instanceof Transaction) { + requests.add(request); + responseObserver.onNext(((Transaction) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BeginTransaction, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Transaction.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void commit(CommitRequest request, StreamObserver<CommitResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof CommitResponse) { + requests.add(request); + responseObserver.onNext(((CommitResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Commit, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CommitResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void rollback(RollbackRequest request, StreamObserver<Empty> responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Rollback, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void partitionQuery( + PartitionQueryRequest request, StreamObserver<PartitionResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof PartitionResponse) { + requests.add(request); + responseObserver.onNext(((PartitionResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PartitionQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PartitionResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void partitionRead( + PartitionReadRequest request, StreamObserver<PartitionResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof PartitionResponse) { + requests.add(request); + responseObserver.onNext(((PartitionResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PartitionRead, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PartitionResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchWrite( + BatchWriteRequest request, StreamObserver<BatchWriteResponse> responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchWriteResponse) { + requests.add(request); + responseObserver.onNext(((BatchWriteResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchWrite, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchWriteResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientHttpJsonTest.java new file mode 100644 index 00000000000..aa49c3bb8fb --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientHttpJsonTest.java @@ -0,0 +1,1334 @@ +/* + * 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.v1; + +import static com.google.cloud.spanner.v1.SpannerClient.ListSessionsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.spanner.v1.stub.HttpJsonSpannerStub; +import com.google.common.collect.Lists; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.ListValue; +import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import com.google.spanner.v1.BatchCreateSessionsResponse; +import com.google.spanner.v1.CommitResponse; +import com.google.spanner.v1.DatabaseName; +import com.google.spanner.v1.DirectedReadOptions; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; +import com.google.spanner.v1.ExecuteSqlRequest; +import com.google.spanner.v1.KeySet; +import com.google.spanner.v1.ListSessionsResponse; +import com.google.spanner.v1.Mutation; +import com.google.spanner.v1.Partition; +import com.google.spanner.v1.PartitionOptions; +import com.google.spanner.v1.PartitionQueryRequest; +import com.google.spanner.v1.PartitionReadRequest; +import com.google.spanner.v1.PartitionResponse; +import com.google.spanner.v1.ReadRequest; +import com.google.spanner.v1.RequestOptions; +import com.google.spanner.v1.ResultSet; +import com.google.spanner.v1.ResultSetMetadata; +import com.google.spanner.v1.ResultSetStats; +import com.google.spanner.v1.Session; +import com.google.spanner.v1.SessionName; +import com.google.spanner.v1.Transaction; +import com.google.spanner.v1.TransactionOptions; +import com.google.spanner.v1.TransactionSelector; +import com.google.spanner.v1.Type; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SpannerClientHttpJsonTest { + private static MockHttpService mockService; + private static SpannerClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSpannerStub.getMethodDescriptors(), SpannerSettings.getDefaultEndpoint()); + SpannerSettings settings = + SpannerSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SpannerSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SpannerClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createSessionTest() throws Exception { + Session expectedResponse = + Session.newBuilder() + .setName( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApproximateLastUseTime(Timestamp.newBuilder().build()) + .setCreatorRole("creatorRole-190742846") + .build(); + mockService.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + Session actualResponse = client.createSession(database); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.createSession(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSessionTest2() throws Exception { + Session expectedResponse = + Session.newBuilder() + .setName( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApproximateLastUseTime(Timestamp.newBuilder().build()) + .setCreatorRole("creatorRole-190742846") + .build(); + mockService.addResponse(expectedResponse); + + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + + Session actualResponse = client.createSession(database); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + client.createSession(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateSessionsTest() throws Exception { + BatchCreateSessionsResponse expectedResponse = + BatchCreateSessionsResponse.newBuilder().addAllSession(new ArrayList<Session>()).build(); + mockService.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + int sessionCount = 185691686; + + BatchCreateSessionsResponse actualResponse = client.batchCreateSessions(database, sessionCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateSessionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + int sessionCount = 185691686; + client.batchCreateSessions(database, sessionCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateSessionsTest2() throws Exception { + BatchCreateSessionsResponse expectedResponse = + BatchCreateSessionsResponse.newBuilder().addAllSession(new ArrayList<Session>()).build(); + mockService.addResponse(expectedResponse); + + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + int sessionCount = 185691686; + + BatchCreateSessionsResponse actualResponse = client.batchCreateSessions(database, sessionCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateSessionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + int sessionCount = 185691686; + client.batchCreateSessions(database, sessionCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSessionTest() throws Exception { + Session expectedResponse = + Session.newBuilder() + .setName( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApproximateLastUseTime(Timestamp.newBuilder().build()) + .setCreatorRole("creatorRole-190742846") + .build(); + mockService.addResponse(expectedResponse); + + SessionName name = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + + Session actualResponse = client.getSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SessionName name = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + client.getSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSessionTest2() throws Exception { + Session expectedResponse = + Session.newBuilder() + .setName( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApproximateLastUseTime(Timestamp.newBuilder().build()) + .setCreatorRole("creatorRole-190742846") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-199/instances/instance-199/databases/database-199/sessions/session-199"; + + Session actualResponse = client.getSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-199/instances/instance-199/databases/database-199/sessions/session-199"; + client.getSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSessionsTest() throws Exception { + Session responsesElement = Session.newBuilder().build(); + ListSessionsResponse expectedResponse = + ListSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllSessions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + ListSessionsPagedResponse pagedListResponse = client.listSessions(database); + + List<Session> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSessionsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSessionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.listSessions(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSessionsTest2() throws Exception { + Session responsesElement = Session.newBuilder().build(); + ListSessionsResponse expectedResponse = + ListSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllSessions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + + ListSessionsPagedResponse pagedListResponse = client.listSessions(database); + + List<Session> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSessionsList().get(0), resources.get(0)); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSessionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String database = "projects/project-3102/instances/instance-3102/databases/database-3102"; + client.listSessions(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSessionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SessionName name = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + + client.deleteSession(name); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SessionName name = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + client.deleteSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSessionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-199/instances/instance-199/databases/database-199/sessions/session-199"; + + client.deleteSession(name); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-199/instances/instance-199/databases/database-199/sessions/session-199"; + client.deleteSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeSqlTest() throws Exception { + ResultSet expectedResponse = + ResultSet.newBuilder() + .setMetadata(ResultSetMetadata.newBuilder().build()) + .addAllRows(new ArrayList<ListValue>()) + .setStats(ResultSetStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setSeqno(109325920) + .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build()) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + + ResultSet actualResponse = client.executeSql(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void executeSqlExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setSeqno(109325920) + .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build()) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + client.executeSql(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeStreamingSqlTest() throws Exception {} + + @Test + public void executeStreamingSqlExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } + + @Test + public void executeBatchDmlTest() throws Exception { + ExecuteBatchDmlResponse expectedResponse = + ExecuteBatchDmlResponse.newBuilder() + .addAllResultSets(new ArrayList<ResultSet>()) + .setStatus(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ExecuteBatchDmlRequest request = + ExecuteBatchDmlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .addAllStatements(new ArrayList<ExecuteBatchDmlRequest.Statement>()) + .setSeqno(109325920) + .setRequestOptions(RequestOptions.newBuilder().build()) + .build(); + + ExecuteBatchDmlResponse actualResponse = client.executeBatchDml(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void executeBatchDmlExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExecuteBatchDmlRequest request = + ExecuteBatchDmlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .addAllStatements(new ArrayList<ExecuteBatchDmlRequest.Statement>()) + .setSeqno(109325920) + .setRequestOptions(RequestOptions.newBuilder().build()) + .build(); + client.executeBatchDml(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void readTest() throws Exception { + ResultSet expectedResponse = + ResultSet.newBuilder() + .setMetadata(ResultSetMetadata.newBuilder().build()) + .addAllRows(new ArrayList<ListValue>()) + .setStats(ResultSetStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ReadRequest request = + ReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setLimit(102976443) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + + ResultSet actualResponse = client.read(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void readExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReadRequest request = + ReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setLimit(102976443) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + client.read(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void streamingReadTest() throws Exception {} + + @Test + public void streamingReadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } + + @Test + public void beginTransactionTest() throws Exception { + Transaction expectedResponse = + Transaction.newBuilder() + .setId(ByteString.EMPTY) + .setReadTimestamp(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + TransactionOptions options = TransactionOptions.newBuilder().build(); + + Transaction actualResponse = client.beginTransaction(session, options); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void beginTransactionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + TransactionOptions options = TransactionOptions.newBuilder().build(); + client.beginTransaction(session, options); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void beginTransactionTest2() throws Exception { + Transaction expectedResponse = + Transaction.newBuilder() + .setId(ByteString.EMPTY) + .setReadTimestamp(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String session = + "projects/project-2078/instances/instance-2078/databases/database-2078/sessions/session-2078"; + TransactionOptions options = TransactionOptions.newBuilder().build(); + + Transaction actualResponse = client.beginTransaction(session, options); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void beginTransactionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String session = + "projects/project-2078/instances/instance-2078/databases/database-2078/sessions/session-2078"; + TransactionOptions options = TransactionOptions.newBuilder().build(); + client.beginTransaction(session, options); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitTest() throws Exception { + CommitResponse expectedResponse = + CommitResponse.newBuilder() + .setCommitTimestamp(Timestamp.newBuilder().build()) + .setCommitStats(CommitResponse.CommitStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + ByteString transactionId = ByteString.EMPTY; + List<Mutation> mutations = new ArrayList<>(); + + CommitResponse actualResponse = client.commit(session, transactionId, mutations); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void commitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + ByteString transactionId = ByteString.EMPTY; + List<Mutation> mutations = new ArrayList<>(); + client.commit(session, transactionId, mutations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitTest2() throws Exception { + CommitResponse expectedResponse = + CommitResponse.newBuilder() + .setCommitTimestamp(Timestamp.newBuilder().build()) + .setCommitStats(CommitResponse.CommitStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + TransactionOptions singleUseTransaction = TransactionOptions.newBuilder().build(); + List<Mutation> mutations = new ArrayList<>(); + + CommitResponse actualResponse = client.commit(session, singleUseTransaction, mutations); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void commitExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + TransactionOptions singleUseTransaction = TransactionOptions.newBuilder().build(); + List<Mutation> mutations = new ArrayList<>(); + client.commit(session, singleUseTransaction, mutations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitTest3() throws Exception { + CommitResponse expectedResponse = + CommitResponse.newBuilder() + .setCommitTimestamp(Timestamp.newBuilder().build()) + .setCommitStats(CommitResponse.CommitStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String session = + "projects/project-2078/instances/instance-2078/databases/database-2078/sessions/session-2078"; + ByteString transactionId = ByteString.EMPTY; + List<Mutation> mutations = new ArrayList<>(); + + CommitResponse actualResponse = client.commit(session, transactionId, mutations); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void commitExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String session = + "projects/project-2078/instances/instance-2078/databases/database-2078/sessions/session-2078"; + ByteString transactionId = ByteString.EMPTY; + List<Mutation> mutations = new ArrayList<>(); + client.commit(session, transactionId, mutations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitTest4() throws Exception { + CommitResponse expectedResponse = + CommitResponse.newBuilder() + .setCommitTimestamp(Timestamp.newBuilder().build()) + .setCommitStats(CommitResponse.CommitStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String session = + "projects/project-2078/instances/instance-2078/databases/database-2078/sessions/session-2078"; + TransactionOptions singleUseTransaction = TransactionOptions.newBuilder().build(); + List<Mutation> mutations = new ArrayList<>(); + + CommitResponse actualResponse = client.commit(session, singleUseTransaction, mutations); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void commitExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String session = + "projects/project-2078/instances/instance-2078/databases/database-2078/sessions/session-2078"; + TransactionOptions singleUseTransaction = TransactionOptions.newBuilder().build(); + List<Mutation> mutations = new ArrayList<>(); + client.commit(session, singleUseTransaction, mutations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + ByteString transactionId = ByteString.EMPTY; + + client.rollback(session, transactionId); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + ByteString transactionId = ByteString.EMPTY; + client.rollback(session, transactionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String session = + "projects/project-2078/instances/instance-2078/databases/database-2078/sessions/session-2078"; + ByteString transactionId = ByteString.EMPTY; + + client.rollback(session, transactionId); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String session = + "projects/project-2078/instances/instance-2078/databases/database-2078/sessions/session-2078"; + ByteString transactionId = ByteString.EMPTY; + client.rollback(session, transactionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void partitionQueryTest() throws Exception { + PartitionResponse expectedResponse = + PartitionResponse.newBuilder() + .addAllPartitions(new ArrayList<Partition>()) + .setTransaction(Transaction.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PartitionQueryRequest request = + PartitionQueryRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setPartitionOptions(PartitionOptions.newBuilder().build()) + .build(); + + PartitionResponse actualResponse = client.partitionQuery(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void partitionQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PartitionQueryRequest request = + PartitionQueryRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setPartitionOptions(PartitionOptions.newBuilder().build()) + .build(); + client.partitionQuery(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void partitionReadTest() throws Exception { + PartitionResponse expectedResponse = + PartitionResponse.newBuilder() + .addAllPartitions(new ArrayList<Partition>()) + .setTransaction(Transaction.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PartitionReadRequest request = + PartitionReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setPartitionOptions(PartitionOptions.newBuilder().build()) + .build(); + + PartitionResponse actualResponse = client.partitionRead(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<String> actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void partitionReadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PartitionReadRequest request = + PartitionReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setPartitionOptions(PartitionOptions.newBuilder().build()) + .build(); + client.partitionRead(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchWriteTest() throws Exception {} + + @Test + public void batchWriteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } +} diff --git a/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientTest.java b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientTest.java new file mode 100644 index 00000000000..730a0636cce --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-spanner/src/test/java/com/google/cloud/spanner/v1/SpannerClientTest.java @@ -0,0 +1,1431 @@ +/* + * 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.v1; + +import static com.google.cloud.spanner.v1.SpannerClient.ListSessionsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.ListValue; +import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; +import com.google.protobuf.Value; +import com.google.rpc.Status; +import com.google.spanner.v1.BatchCreateSessionsRequest; +import com.google.spanner.v1.BatchCreateSessionsResponse; +import com.google.spanner.v1.BatchWriteRequest; +import com.google.spanner.v1.BatchWriteResponse; +import com.google.spanner.v1.BeginTransactionRequest; +import com.google.spanner.v1.CommitRequest; +import com.google.spanner.v1.CommitResponse; +import com.google.spanner.v1.CreateSessionRequest; +import com.google.spanner.v1.DatabaseName; +import com.google.spanner.v1.DeleteSessionRequest; +import com.google.spanner.v1.DirectedReadOptions; +import com.google.spanner.v1.ExecuteBatchDmlRequest; +import com.google.spanner.v1.ExecuteBatchDmlResponse; +import com.google.spanner.v1.ExecuteSqlRequest; +import com.google.spanner.v1.GetSessionRequest; +import com.google.spanner.v1.KeySet; +import com.google.spanner.v1.ListSessionsRequest; +import com.google.spanner.v1.ListSessionsResponse; +import com.google.spanner.v1.Mutation; +import com.google.spanner.v1.PartialResultSet; +import com.google.spanner.v1.Partition; +import com.google.spanner.v1.PartitionOptions; +import com.google.spanner.v1.PartitionQueryRequest; +import com.google.spanner.v1.PartitionReadRequest; +import com.google.spanner.v1.PartitionResponse; +import com.google.spanner.v1.ReadRequest; +import com.google.spanner.v1.RequestOptions; +import com.google.spanner.v1.ResultSet; +import com.google.spanner.v1.ResultSetMetadata; +import com.google.spanner.v1.ResultSetStats; +import com.google.spanner.v1.RollbackRequest; +import com.google.spanner.v1.Session; +import com.google.spanner.v1.SessionName; +import com.google.spanner.v1.Transaction; +import com.google.spanner.v1.TransactionOptions; +import com.google.spanner.v1.TransactionSelector; +import com.google.spanner.v1.Type; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SpannerClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockSpanner mockSpanner; + private LocalChannelProvider channelProvider; + private SpannerClient client; + + @BeforeClass + public static void startStaticServer() { + mockSpanner = new MockSpanner(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockSpanner)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SpannerSettings settings = + SpannerSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SpannerClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createSessionTest() throws Exception { + Session expectedResponse = + Session.newBuilder() + .setName( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApproximateLastUseTime(Timestamp.newBuilder().build()) + .setCreatorRole("creatorRole-190742846") + .build(); + mockSpanner.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + Session actualResponse = client.createSession(database); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSessionRequest actualRequest = ((CreateSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(database.toString(), actualRequest.getDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.createSession(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSessionTest2() throws Exception { + Session expectedResponse = + Session.newBuilder() + .setName( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApproximateLastUseTime(Timestamp.newBuilder().build()) + .setCreatorRole("creatorRole-190742846") + .build(); + mockSpanner.addResponse(expectedResponse); + + String database = "database1789464955"; + + Session actualResponse = client.createSession(database); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSessionRequest actualRequest = ((CreateSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String database = "database1789464955"; + client.createSession(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateSessionsTest() throws Exception { + BatchCreateSessionsResponse expectedResponse = + BatchCreateSessionsResponse.newBuilder().addAllSession(new ArrayList<Session>()).build(); + mockSpanner.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + int sessionCount = 185691686; + + BatchCreateSessionsResponse actualResponse = client.batchCreateSessions(database, sessionCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateSessionsRequest actualRequest = ((BatchCreateSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(database.toString(), actualRequest.getDatabase()); + Assert.assertEquals(sessionCount, actualRequest.getSessionCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateSessionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + int sessionCount = 185691686; + client.batchCreateSessions(database, sessionCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateSessionsTest2() throws Exception { + BatchCreateSessionsResponse expectedResponse = + BatchCreateSessionsResponse.newBuilder().addAllSession(new ArrayList<Session>()).build(); + mockSpanner.addResponse(expectedResponse); + + String database = "database1789464955"; + int sessionCount = 185691686; + + BatchCreateSessionsResponse actualResponse = client.batchCreateSessions(database, sessionCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateSessionsRequest actualRequest = ((BatchCreateSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(sessionCount, actualRequest.getSessionCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateSessionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String database = "database1789464955"; + int sessionCount = 185691686; + client.batchCreateSessions(database, sessionCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSessionTest() throws Exception { + Session expectedResponse = + Session.newBuilder() + .setName( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApproximateLastUseTime(Timestamp.newBuilder().build()) + .setCreatorRole("creatorRole-190742846") + .build(); + mockSpanner.addResponse(expectedResponse); + + SessionName name = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + + Session actualResponse = client.getSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSessionRequest actualRequest = ((GetSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + SessionName name = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + client.getSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSessionTest2() throws Exception { + Session expectedResponse = + Session.newBuilder() + .setName( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .putAllLabels(new HashMap<String, String>()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApproximateLastUseTime(Timestamp.newBuilder().build()) + .setCreatorRole("creatorRole-190742846") + .build(); + mockSpanner.addResponse(expectedResponse); + + String name = "name3373707"; + + Session actualResponse = client.getSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSessionRequest actualRequest = ((GetSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String name = "name3373707"; + client.getSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSessionsTest() throws Exception { + Session responsesElement = Session.newBuilder().build(); + ListSessionsResponse expectedResponse = + ListSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllSessions(Arrays.asList(responsesElement)) + .build(); + mockSpanner.addResponse(expectedResponse); + + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + + ListSessionsPagedResponse pagedListResponse = client.listSessions(database); + + List<Session> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSessionsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSessionsRequest actualRequest = ((ListSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(database.toString(), actualRequest.getDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSessionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); + client.listSessions(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSessionsTest2() throws Exception { + Session responsesElement = Session.newBuilder().build(); + ListSessionsResponse expectedResponse = + ListSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllSessions(Arrays.asList(responsesElement)) + .build(); + mockSpanner.addResponse(expectedResponse); + + String database = "database1789464955"; + + ListSessionsPagedResponse pagedListResponse = client.listSessions(database); + + List<Session> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSessionsList().get(0), resources.get(0)); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSessionsRequest actualRequest = ((ListSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSessionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String database = "database1789464955"; + client.listSessions(database); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSessionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSpanner.addResponse(expectedResponse); + + SessionName name = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + + client.deleteSession(name); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSessionRequest actualRequest = ((DeleteSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + SessionName name = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + client.deleteSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSessionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSpanner.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSession(name); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSessionRequest actualRequest = ((DeleteSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String name = "name3373707"; + client.deleteSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeSqlTest() throws Exception { + ResultSet expectedResponse = + ResultSet.newBuilder() + .setMetadata(ResultSetMetadata.newBuilder().build()) + .addAllRows(new ArrayList<ListValue>()) + .setStats(ResultSetStats.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setSeqno(109325920) + .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build()) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + + ResultSet actualResponse = client.executeSql(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExecuteSqlRequest actualRequest = ((ExecuteSqlRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSession(), actualRequest.getSession()); + Assert.assertEquals(request.getTransaction(), actualRequest.getTransaction()); + Assert.assertEquals(request.getSql(), actualRequest.getSql()); + Assert.assertEquals(request.getParams(), actualRequest.getParams()); + Assert.assertEquals(request.getParamTypesMap(), actualRequest.getParamTypesMap()); + Assert.assertEquals(request.getResumeToken(), actualRequest.getResumeToken()); + Assert.assertEquals(request.getQueryMode(), actualRequest.getQueryMode()); + Assert.assertEquals(request.getPartitionToken(), actualRequest.getPartitionToken()); + Assert.assertEquals(request.getSeqno(), actualRequest.getSeqno()); + Assert.assertEquals(request.getQueryOptions(), actualRequest.getQueryOptions()); + Assert.assertEquals(request.getRequestOptions(), actualRequest.getRequestOptions()); + Assert.assertEquals(request.getDirectedReadOptions(), actualRequest.getDirectedReadOptions()); + Assert.assertEquals(request.getDataBoostEnabled(), actualRequest.getDataBoostEnabled()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void executeSqlExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setSeqno(109325920) + .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build()) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + client.executeSql(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void executeStreamingSqlTest() throws Exception { + PartialResultSet expectedResponse = + PartialResultSet.newBuilder() + .setMetadata(ResultSetMetadata.newBuilder().build()) + .addAllValues(new ArrayList<Value>()) + .setChunkedValue(true) + .setResumeToken(ByteString.EMPTY) + .setStats(ResultSetStats.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setSeqno(109325920) + .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build()) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + + MockStreamObserver<PartialResultSet> responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable<ExecuteSqlRequest, PartialResultSet> callable = + client.executeStreamingSqlCallable(); + callable.serverStreamingCall(request, responseObserver); + + List<PartialResultSet> actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void executeStreamingSqlExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + ExecuteSqlRequest request = + ExecuteSqlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setSeqno(109325920) + .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build()) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + + MockStreamObserver<PartialResultSet> responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable<ExecuteSqlRequest, PartialResultSet> callable = + client.executeStreamingSqlCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List<PartialResultSet> actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void executeBatchDmlTest() throws Exception { + ExecuteBatchDmlResponse expectedResponse = + ExecuteBatchDmlResponse.newBuilder() + .addAllResultSets(new ArrayList<ResultSet>()) + .setStatus(Status.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + ExecuteBatchDmlRequest request = + ExecuteBatchDmlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .addAllStatements(new ArrayList<ExecuteBatchDmlRequest.Statement>()) + .setSeqno(109325920) + .setRequestOptions(RequestOptions.newBuilder().build()) + .build(); + + ExecuteBatchDmlResponse actualResponse = client.executeBatchDml(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExecuteBatchDmlRequest actualRequest = ((ExecuteBatchDmlRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSession(), actualRequest.getSession()); + Assert.assertEquals(request.getTransaction(), actualRequest.getTransaction()); + Assert.assertEquals(request.getStatementsList(), actualRequest.getStatementsList()); + Assert.assertEquals(request.getSeqno(), actualRequest.getSeqno()); + Assert.assertEquals(request.getRequestOptions(), actualRequest.getRequestOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void executeBatchDmlExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + ExecuteBatchDmlRequest request = + ExecuteBatchDmlRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .addAllStatements(new ArrayList<ExecuteBatchDmlRequest.Statement>()) + .setSeqno(109325920) + .setRequestOptions(RequestOptions.newBuilder().build()) + .build(); + client.executeBatchDml(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void readTest() throws Exception { + ResultSet expectedResponse = + ResultSet.newBuilder() + .setMetadata(ResultSetMetadata.newBuilder().build()) + .addAllRows(new ArrayList<ListValue>()) + .setStats(ResultSetStats.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + ReadRequest request = + ReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setLimit(102976443) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + + ResultSet actualResponse = client.read(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReadRequest actualRequest = ((ReadRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSession(), actualRequest.getSession()); + Assert.assertEquals(request.getTransaction(), actualRequest.getTransaction()); + Assert.assertEquals(request.getTable(), actualRequest.getTable()); + Assert.assertEquals(request.getIndex(), actualRequest.getIndex()); + Assert.assertEquals(request.getColumnsList(), actualRequest.getColumnsList()); + Assert.assertEquals(request.getKeySet(), actualRequest.getKeySet()); + Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); + Assert.assertEquals(request.getResumeToken(), actualRequest.getResumeToken()); + Assert.assertEquals(request.getPartitionToken(), actualRequest.getPartitionToken()); + Assert.assertEquals(request.getRequestOptions(), actualRequest.getRequestOptions()); + Assert.assertEquals(request.getDirectedReadOptions(), actualRequest.getDirectedReadOptions()); + Assert.assertEquals(request.getDataBoostEnabled(), actualRequest.getDataBoostEnabled()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void readExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + ReadRequest request = + ReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setLimit(102976443) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + client.read(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void streamingReadTest() throws Exception { + PartialResultSet expectedResponse = + PartialResultSet.newBuilder() + .setMetadata(ResultSetMetadata.newBuilder().build()) + .addAllValues(new ArrayList<Value>()) + .setChunkedValue(true) + .setResumeToken(ByteString.EMPTY) + .setStats(ResultSetStats.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + ReadRequest request = + ReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setLimit(102976443) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + + MockStreamObserver<PartialResultSet> responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable<ReadRequest, PartialResultSet> callable = + client.streamingReadCallable(); + callable.serverStreamingCall(request, responseObserver); + + List<PartialResultSet> actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamingReadExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + ReadRequest request = + ReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setLimit(102976443) + .setResumeToken(ByteString.EMPTY) + .setPartitionToken(ByteString.EMPTY) + .setRequestOptions(RequestOptions.newBuilder().build()) + .setDirectedReadOptions(DirectedReadOptions.newBuilder().build()) + .setDataBoostEnabled(true) + .build(); + + MockStreamObserver<PartialResultSet> responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable<ReadRequest, PartialResultSet> callable = + client.streamingReadCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List<PartialResultSet> actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void beginTransactionTest() throws Exception { + Transaction expectedResponse = + Transaction.newBuilder() + .setId(ByteString.EMPTY) + .setReadTimestamp(Timestamp.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + TransactionOptions options = TransactionOptions.newBuilder().build(); + + Transaction actualResponse = client.beginTransaction(session, options); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BeginTransactionRequest actualRequest = ((BeginTransactionRequest) actualRequests.get(0)); + + Assert.assertEquals(session.toString(), actualRequest.getSession()); + Assert.assertEquals(options, actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void beginTransactionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + TransactionOptions options = TransactionOptions.newBuilder().build(); + client.beginTransaction(session, options); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void beginTransactionTest2() throws Exception { + Transaction expectedResponse = + Transaction.newBuilder() + .setId(ByteString.EMPTY) + .setReadTimestamp(Timestamp.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + String session = "session1984987798"; + TransactionOptions options = TransactionOptions.newBuilder().build(); + + Transaction actualResponse = client.beginTransaction(session, options); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BeginTransactionRequest actualRequest = ((BeginTransactionRequest) actualRequests.get(0)); + + Assert.assertEquals(session, actualRequest.getSession()); + Assert.assertEquals(options, actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void beginTransactionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String session = "session1984987798"; + TransactionOptions options = TransactionOptions.newBuilder().build(); + client.beginTransaction(session, options); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitTest() throws Exception { + CommitResponse expectedResponse = + CommitResponse.newBuilder() + .setCommitTimestamp(Timestamp.newBuilder().build()) + .setCommitStats(CommitResponse.CommitStats.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + ByteString transactionId = ByteString.EMPTY; + List<Mutation> mutations = new ArrayList<>(); + + CommitResponse actualResponse = client.commit(session, transactionId, mutations); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitRequest actualRequest = ((CommitRequest) actualRequests.get(0)); + + Assert.assertEquals(session.toString(), actualRequest.getSession()); + Assert.assertEquals(transactionId, actualRequest.getTransactionId()); + Assert.assertEquals(mutations, actualRequest.getMutationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + ByteString transactionId = ByteString.EMPTY; + List<Mutation> mutations = new ArrayList<>(); + client.commit(session, transactionId, mutations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitTest2() throws Exception { + CommitResponse expectedResponse = + CommitResponse.newBuilder() + .setCommitTimestamp(Timestamp.newBuilder().build()) + .setCommitStats(CommitResponse.CommitStats.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + TransactionOptions singleUseTransaction = TransactionOptions.newBuilder().build(); + List<Mutation> mutations = new ArrayList<>(); + + CommitResponse actualResponse = client.commit(session, singleUseTransaction, mutations); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitRequest actualRequest = ((CommitRequest) actualRequests.get(0)); + + Assert.assertEquals(session.toString(), actualRequest.getSession()); + Assert.assertEquals(singleUseTransaction, actualRequest.getSingleUseTransaction()); + Assert.assertEquals(mutations, actualRequest.getMutationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + TransactionOptions singleUseTransaction = TransactionOptions.newBuilder().build(); + List<Mutation> mutations = new ArrayList<>(); + client.commit(session, singleUseTransaction, mutations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitTest3() throws Exception { + CommitResponse expectedResponse = + CommitResponse.newBuilder() + .setCommitTimestamp(Timestamp.newBuilder().build()) + .setCommitStats(CommitResponse.CommitStats.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + String session = "session1984987798"; + ByteString transactionId = ByteString.EMPTY; + List<Mutation> mutations = new ArrayList<>(); + + CommitResponse actualResponse = client.commit(session, transactionId, mutations); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitRequest actualRequest = ((CommitRequest) actualRequests.get(0)); + + Assert.assertEquals(session, actualRequest.getSession()); + Assert.assertEquals(transactionId, actualRequest.getTransactionId()); + Assert.assertEquals(mutations, actualRequest.getMutationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String session = "session1984987798"; + ByteString transactionId = ByteString.EMPTY; + List<Mutation> mutations = new ArrayList<>(); + client.commit(session, transactionId, mutations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitTest4() throws Exception { + CommitResponse expectedResponse = + CommitResponse.newBuilder() + .setCommitTimestamp(Timestamp.newBuilder().build()) + .setCommitStats(CommitResponse.CommitStats.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + String session = "session1984987798"; + TransactionOptions singleUseTransaction = TransactionOptions.newBuilder().build(); + List<Mutation> mutations = new ArrayList<>(); + + CommitResponse actualResponse = client.commit(session, singleUseTransaction, mutations); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitRequest actualRequest = ((CommitRequest) actualRequests.get(0)); + + Assert.assertEquals(session, actualRequest.getSession()); + Assert.assertEquals(singleUseTransaction, actualRequest.getSingleUseTransaction()); + Assert.assertEquals(mutations, actualRequest.getMutationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String session = "session1984987798"; + TransactionOptions singleUseTransaction = TransactionOptions.newBuilder().build(); + List<Mutation> mutations = new ArrayList<>(); + client.commit(session, singleUseTransaction, mutations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSpanner.addResponse(expectedResponse); + + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + ByteString transactionId = ByteString.EMPTY; + + client.rollback(session, transactionId); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackRequest actualRequest = ((RollbackRequest) actualRequests.get(0)); + + Assert.assertEquals(session.toString(), actualRequest.getSession()); + Assert.assertEquals(transactionId, actualRequest.getTransactionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + SessionName session = SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]"); + ByteString transactionId = ByteString.EMPTY; + client.rollback(session, transactionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSpanner.addResponse(expectedResponse); + + String session = "session1984987798"; + ByteString transactionId = ByteString.EMPTY; + + client.rollback(session, transactionId); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackRequest actualRequest = ((RollbackRequest) actualRequests.get(0)); + + Assert.assertEquals(session, actualRequest.getSession()); + Assert.assertEquals(transactionId, actualRequest.getTransactionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + String session = "session1984987798"; + ByteString transactionId = ByteString.EMPTY; + client.rollback(session, transactionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void partitionQueryTest() throws Exception { + PartitionResponse expectedResponse = + PartitionResponse.newBuilder() + .addAllPartitions(new ArrayList<Partition>()) + .setTransaction(Transaction.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + PartitionQueryRequest request = + PartitionQueryRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setPartitionOptions(PartitionOptions.newBuilder().build()) + .build(); + + PartitionResponse actualResponse = client.partitionQuery(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PartitionQueryRequest actualRequest = ((PartitionQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSession(), actualRequest.getSession()); + Assert.assertEquals(request.getTransaction(), actualRequest.getTransaction()); + Assert.assertEquals(request.getSql(), actualRequest.getSql()); + Assert.assertEquals(request.getParams(), actualRequest.getParams()); + Assert.assertEquals(request.getParamTypesMap(), actualRequest.getParamTypesMap()); + Assert.assertEquals(request.getPartitionOptions(), actualRequest.getPartitionOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void partitionQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + PartitionQueryRequest request = + PartitionQueryRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setSql("sql114126") + .setParams(Struct.newBuilder().build()) + .putAllParamTypes(new HashMap<String, Type>()) + .setPartitionOptions(PartitionOptions.newBuilder().build()) + .build(); + client.partitionQuery(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void partitionReadTest() throws Exception { + PartitionResponse expectedResponse = + PartitionResponse.newBuilder() + .addAllPartitions(new ArrayList<Partition>()) + .setTransaction(Transaction.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + + PartitionReadRequest request = + PartitionReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setPartitionOptions(PartitionOptions.newBuilder().build()) + .build(); + + PartitionResponse actualResponse = client.partitionRead(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List<AbstractMessage> actualRequests = mockSpanner.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PartitionReadRequest actualRequest = ((PartitionReadRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSession(), actualRequest.getSession()); + Assert.assertEquals(request.getTransaction(), actualRequest.getTransaction()); + Assert.assertEquals(request.getTable(), actualRequest.getTable()); + Assert.assertEquals(request.getIndex(), actualRequest.getIndex()); + Assert.assertEquals(request.getColumnsList(), actualRequest.getColumnsList()); + Assert.assertEquals(request.getKeySet(), actualRequest.getKeySet()); + Assert.assertEquals(request.getPartitionOptions(), actualRequest.getPartitionOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void partitionReadExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + + try { + PartitionReadRequest request = + PartitionReadRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setTransaction(TransactionSelector.newBuilder().build()) + .setTable("table110115790") + .setIndex("index100346066") + .addAllColumns(new ArrayList<String>()) + .setKeySet(KeySet.newBuilder().build()) + .setPartitionOptions(PartitionOptions.newBuilder().build()) + .build(); + client.partitionRead(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchWriteTest() throws Exception { + BatchWriteResponse expectedResponse = + BatchWriteResponse.newBuilder() + .addAllIndexes(new ArrayList<Integer>()) + .setStatus(Status.newBuilder().build()) + .setCommitTimestamp(Timestamp.newBuilder().build()) + .build(); + mockSpanner.addResponse(expectedResponse); + BatchWriteRequest request = + BatchWriteRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setRequestOptions(RequestOptions.newBuilder().build()) + .addAllMutationGroups(new ArrayList<BatchWriteRequest.MutationGroup>()) + .build(); + + MockStreamObserver<BatchWriteResponse> responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable<BatchWriteRequest, BatchWriteResponse> callable = + client.batchWriteCallable(); + callable.serverStreamingCall(request, responseObserver); + + List<BatchWriteResponse> actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void batchWriteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpanner.addException(exception); + BatchWriteRequest request = + BatchWriteRequest.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString()) + .setRequestOptions(RequestOptions.newBuilder().build()) + .addAllMutationGroups(new ArrayList<BatchWriteRequest.MutationGroup>()) + .build(); + + MockStreamObserver<BatchWriteResponse> responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable<BatchWriteRequest, BatchWriteResponse> callable = + client.batchWriteCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List<BatchWriteResponse> actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/grpc-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseAdminGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseAdminGrpc.java similarity index 56% rename from grpc-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseAdminGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseAdminGrpc.java index 8f3341ba7d0..7fe039d9293 100644 --- a/grpc-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseAdminGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseAdminGrpc.java @@ -1,25 +1,8 @@ -/* - * 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.spanner.admin.database.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * * <pre> * Cloud Spanner Database Admin API * The Cloud Spanner Database Admin API can be used to: @@ -37,956 +20,674 @@ public final class DatabaseAdminGrpc { private DatabaseAdminGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.spanner.admin.database.v1.DatabaseAdmin"; + public static final java.lang.String SERVICE_NAME = "google.spanner.admin.database.v1.DatabaseAdmin"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabasesRequest, - com.google.spanner.admin.database.v1.ListDatabasesResponse> - getListDatabasesMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabasesRequest, + com.google.spanner.admin.database.v1.ListDatabasesResponse> getListDatabasesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListDatabases", requestType = com.google.spanner.admin.database.v1.ListDatabasesRequest.class, responseType = com.google.spanner.admin.database.v1.ListDatabasesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabasesRequest, - com.google.spanner.admin.database.v1.ListDatabasesResponse> - getListDatabasesMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabasesRequest, - com.google.spanner.admin.database.v1.ListDatabasesResponse> - getListDatabasesMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabasesRequest, + com.google.spanner.admin.database.v1.ListDatabasesResponse> getListDatabasesMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabasesRequest, com.google.spanner.admin.database.v1.ListDatabasesResponse> getListDatabasesMethod; if ((getListDatabasesMethod = DatabaseAdminGrpc.getListDatabasesMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getListDatabasesMethod = DatabaseAdminGrpc.getListDatabasesMethod) == null) { - DatabaseAdminGrpc.getListDatabasesMethod = - getListDatabasesMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.ListDatabasesRequest, - com.google.spanner.admin.database.v1.ListDatabasesResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatabases")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListDatabasesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListDatabasesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("ListDatabases")) - .build(); + DatabaseAdminGrpc.getListDatabasesMethod = getListDatabasesMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.ListDatabasesRequest, com.google.spanner.admin.database.v1.ListDatabasesResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatabases")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListDatabasesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListDatabasesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("ListDatabases")) + .build(); } } } return getListDatabasesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CreateDatabaseRequest, - com.google.longrunning.Operation> - getCreateDatabaseMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CreateDatabaseRequest, + com.google.longrunning.Operation> getCreateDatabaseMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateDatabase", requestType = com.google.spanner.admin.database.v1.CreateDatabaseRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CreateDatabaseRequest, - com.google.longrunning.Operation> - getCreateDatabaseMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CreateDatabaseRequest, - com.google.longrunning.Operation> - getCreateDatabaseMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CreateDatabaseRequest, + com.google.longrunning.Operation> getCreateDatabaseMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CreateDatabaseRequest, com.google.longrunning.Operation> getCreateDatabaseMethod; if ((getCreateDatabaseMethod = DatabaseAdminGrpc.getCreateDatabaseMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getCreateDatabaseMethod = DatabaseAdminGrpc.getCreateDatabaseMethod) == null) { - DatabaseAdminGrpc.getCreateDatabaseMethod = - getCreateDatabaseMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.CreateDatabaseRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDatabase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.CreateDatabaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("CreateDatabase")) - .build(); + DatabaseAdminGrpc.getCreateDatabaseMethod = getCreateDatabaseMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.CreateDatabaseRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.CreateDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("CreateDatabase")) + .build(); } } } return getCreateDatabaseMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetDatabaseRequest, - com.google.spanner.admin.database.v1.Database> - getGetDatabaseMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetDatabaseRequest, + com.google.spanner.admin.database.v1.Database> getGetDatabaseMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetDatabase", requestType = com.google.spanner.admin.database.v1.GetDatabaseRequest.class, responseType = com.google.spanner.admin.database.v1.Database.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetDatabaseRequest, - com.google.spanner.admin.database.v1.Database> - getGetDatabaseMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetDatabaseRequest, - com.google.spanner.admin.database.v1.Database> - getGetDatabaseMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetDatabaseRequest, + com.google.spanner.admin.database.v1.Database> getGetDatabaseMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetDatabaseRequest, com.google.spanner.admin.database.v1.Database> getGetDatabaseMethod; if ((getGetDatabaseMethod = DatabaseAdminGrpc.getGetDatabaseMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getGetDatabaseMethod = DatabaseAdminGrpc.getGetDatabaseMethod) == null) { - DatabaseAdminGrpc.getGetDatabaseMethod = - getGetDatabaseMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.GetDatabaseRequest, - com.google.spanner.admin.database.v1.Database> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatabase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.GetDatabaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.Database.getDefaultInstance())) - .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("GetDatabase")) - .build(); + DatabaseAdminGrpc.getGetDatabaseMethod = getGetDatabaseMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.GetDatabaseRequest, com.google.spanner.admin.database.v1.Database>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.GetDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.Database.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("GetDatabase")) + .build(); } } } return getGetDatabaseMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateDatabaseRequest, - com.google.longrunning.Operation> - getUpdateDatabaseMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateDatabaseRequest, + com.google.longrunning.Operation> getUpdateDatabaseMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateDatabase", requestType = com.google.spanner.admin.database.v1.UpdateDatabaseRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateDatabaseRequest, - com.google.longrunning.Operation> - getUpdateDatabaseMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateDatabaseRequest, - com.google.longrunning.Operation> - getUpdateDatabaseMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateDatabaseRequest, + com.google.longrunning.Operation> getUpdateDatabaseMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateDatabaseRequest, com.google.longrunning.Operation> getUpdateDatabaseMethod; if ((getUpdateDatabaseMethod = DatabaseAdminGrpc.getUpdateDatabaseMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getUpdateDatabaseMethod = DatabaseAdminGrpc.getUpdateDatabaseMethod) == null) { - DatabaseAdminGrpc.getUpdateDatabaseMethod = - getUpdateDatabaseMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.UpdateDatabaseRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDatabase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.UpdateDatabaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("UpdateDatabase")) - .build(); + DatabaseAdminGrpc.getUpdateDatabaseMethod = getUpdateDatabaseMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.UpdateDatabaseRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("UpdateDatabase")) + .build(); } } } return getUpdateDatabaseMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, - com.google.longrunning.Operation> - getUpdateDatabaseDdlMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, + com.google.longrunning.Operation> getUpdateDatabaseDdlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateDatabaseDdl", requestType = com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, - com.google.longrunning.Operation> - getUpdateDatabaseDdlMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, - com.google.longrunning.Operation> - getUpdateDatabaseDdlMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, + com.google.longrunning.Operation> getUpdateDatabaseDdlMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, com.google.longrunning.Operation> getUpdateDatabaseDdlMethod; if ((getUpdateDatabaseDdlMethod = DatabaseAdminGrpc.getUpdateDatabaseDdlMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getUpdateDatabaseDdlMethod = DatabaseAdminGrpc.getUpdateDatabaseDdlMethod) == null) { - DatabaseAdminGrpc.getUpdateDatabaseDdlMethod = - getUpdateDatabaseDdlMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDatabaseDdl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("UpdateDatabaseDdl")) - .build(); + DatabaseAdminGrpc.getUpdateDatabaseDdlMethod = getUpdateDatabaseDdlMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDatabaseDdl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("UpdateDatabaseDdl")) + .build(); } } } return getUpdateDatabaseDdlMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.DropDatabaseRequest, com.google.protobuf.Empty> - getDropDatabaseMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.DropDatabaseRequest, + com.google.protobuf.Empty> getDropDatabaseMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DropDatabase", requestType = com.google.spanner.admin.database.v1.DropDatabaseRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.DropDatabaseRequest, com.google.protobuf.Empty> - getDropDatabaseMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.DropDatabaseRequest, com.google.protobuf.Empty> - getDropDatabaseMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.DropDatabaseRequest, + com.google.protobuf.Empty> getDropDatabaseMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.DropDatabaseRequest, com.google.protobuf.Empty> getDropDatabaseMethod; if ((getDropDatabaseMethod = DatabaseAdminGrpc.getDropDatabaseMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getDropDatabaseMethod = DatabaseAdminGrpc.getDropDatabaseMethod) == null) { - DatabaseAdminGrpc.getDropDatabaseMethod = - getDropDatabaseMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.DropDatabaseRequest, - com.google.protobuf.Empty> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DropDatabase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.DropDatabaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("DropDatabase")) - .build(); + DatabaseAdminGrpc.getDropDatabaseMethod = getDropDatabaseMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.DropDatabaseRequest, com.google.protobuf.Empty>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DropDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.DropDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("DropDatabase")) + .build(); } } } return getDropDatabaseMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> - getGetDatabaseDdlMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, + com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> getGetDatabaseDdlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetDatabaseDdl", requestType = com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.class, responseType = com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> - getGetDatabaseDdlMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> - getGetDatabaseDdlMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, + com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> getGetDatabaseDdlMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> getGetDatabaseDdlMethod; if ((getGetDatabaseDdlMethod = DatabaseAdminGrpc.getGetDatabaseDdlMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getGetDatabaseDdlMethod = DatabaseAdminGrpc.getGetDatabaseDdlMethod) == null) { - DatabaseAdminGrpc.getGetDatabaseDdlMethod = - getGetDatabaseDdlMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatabaseDdl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("GetDatabaseDdl")) - .build(); + DatabaseAdminGrpc.getGetDatabaseDdlMethod = getGetDatabaseDdlMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, com.google.spanner.admin.database.v1.GetDatabaseDdlResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatabaseDdl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("GetDatabaseDdl")) + .build(); } } } return getGetDatabaseDdlMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy> getSetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", requestType = com.google.iam.v1.SetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; + public static io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy> getSetIamPolicyMethod() { + io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> getSetIamPolicyMethod; if ((getSetIamPolicyMethod = DatabaseAdminGrpc.getSetIamPolicyMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getSetIamPolicyMethod = DatabaseAdminGrpc.getSetIamPolicyMethod) == null) { - DatabaseAdminGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("SetIamPolicy")) - .build(); + DatabaseAdminGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("SetIamPolicy")) + .build(); } } } return getSetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy> getGetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", requestType = com.google.iam.v1.GetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; + public static io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy> getGetIamPolicyMethod() { + io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> getGetIamPolicyMethod; if ((getGetIamPolicyMethod = DatabaseAdminGrpc.getGetIamPolicyMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getGetIamPolicyMethod = DatabaseAdminGrpc.getGetIamPolicyMethod) == null) { - DatabaseAdminGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("GetIamPolicy")) - .build(); + DatabaseAdminGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("GetIamPolicy")) + .build(); } } } return getGetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", requestType = com.google.iam.v1.TestIamPermissionsRequest.class, responseType = com.google.iam.v1.TestIamPermissionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; + public static io.grpc.MethodDescriptor<com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor<com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod; if ((getTestIamPermissionsMethod = DatabaseAdminGrpc.getTestIamPermissionsMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getTestIamPermissionsMethod = DatabaseAdminGrpc.getTestIamPermissionsMethod) == null) { - DatabaseAdminGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - .<com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("TestIamPermissions")) - .build(); + DatabaseAdminGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.<com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("TestIamPermissions")) + .build(); } } } return getTestIamPermissionsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CreateBackupRequest, - com.google.longrunning.Operation> - getCreateBackupMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CreateBackupRequest, + com.google.longrunning.Operation> getCreateBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateBackup", requestType = com.google.spanner.admin.database.v1.CreateBackupRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CreateBackupRequest, - com.google.longrunning.Operation> - getCreateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CreateBackupRequest, - com.google.longrunning.Operation> - getCreateBackupMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CreateBackupRequest, + com.google.longrunning.Operation> getCreateBackupMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CreateBackupRequest, com.google.longrunning.Operation> getCreateBackupMethod; if ((getCreateBackupMethod = DatabaseAdminGrpc.getCreateBackupMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getCreateBackupMethod = DatabaseAdminGrpc.getCreateBackupMethod) == null) { - DatabaseAdminGrpc.getCreateBackupMethod = - getCreateBackupMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.CreateBackupRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.CreateBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("CreateBackup")) - .build(); + DatabaseAdminGrpc.getCreateBackupMethod = getCreateBackupMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.CreateBackupRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.CreateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("CreateBackup")) + .build(); } } } return getCreateBackupMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CopyBackupRequest, com.google.longrunning.Operation> - getCopyBackupMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CopyBackupRequest, + com.google.longrunning.Operation> getCopyBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CopyBackup", requestType = com.google.spanner.admin.database.v1.CopyBackupRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CopyBackupRequest, com.google.longrunning.Operation> - getCopyBackupMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.CopyBackupRequest, - com.google.longrunning.Operation> - getCopyBackupMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CopyBackupRequest, + com.google.longrunning.Operation> getCopyBackupMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.CopyBackupRequest, com.google.longrunning.Operation> getCopyBackupMethod; if ((getCopyBackupMethod = DatabaseAdminGrpc.getCopyBackupMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getCopyBackupMethod = DatabaseAdminGrpc.getCopyBackupMethod) == null) { - DatabaseAdminGrpc.getCopyBackupMethod = - getCopyBackupMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.CopyBackupRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.CopyBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("CopyBackup")) - .build(); + DatabaseAdminGrpc.getCopyBackupMethod = getCopyBackupMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.CopyBackupRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.CopyBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("CopyBackup")) + .build(); } } } return getCopyBackupMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetBackupRequest, - com.google.spanner.admin.database.v1.Backup> - getGetBackupMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetBackupRequest, + com.google.spanner.admin.database.v1.Backup> getGetBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBackup", requestType = com.google.spanner.admin.database.v1.GetBackupRequest.class, responseType = com.google.spanner.admin.database.v1.Backup.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetBackupRequest, - com.google.spanner.admin.database.v1.Backup> - getGetBackupMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.GetBackupRequest, - com.google.spanner.admin.database.v1.Backup> - getGetBackupMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetBackupRequest, + com.google.spanner.admin.database.v1.Backup> getGetBackupMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.GetBackupRequest, com.google.spanner.admin.database.v1.Backup> getGetBackupMethod; if ((getGetBackupMethod = DatabaseAdminGrpc.getGetBackupMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getGetBackupMethod = DatabaseAdminGrpc.getGetBackupMethod) == null) { - DatabaseAdminGrpc.getGetBackupMethod = - getGetBackupMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.GetBackupRequest, - com.google.spanner.admin.database.v1.Backup> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.GetBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.Backup.getDefaultInstance())) - .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("GetBackup")) - .build(); + DatabaseAdminGrpc.getGetBackupMethod = getGetBackupMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.GetBackupRequest, com.google.spanner.admin.database.v1.Backup>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("GetBackup")) + .build(); } } } return getGetBackupMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateBackupRequest, - com.google.spanner.admin.database.v1.Backup> - getUpdateBackupMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateBackupRequest, + com.google.spanner.admin.database.v1.Backup> getUpdateBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", requestType = com.google.spanner.admin.database.v1.UpdateBackupRequest.class, responseType = com.google.spanner.admin.database.v1.Backup.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateBackupRequest, - com.google.spanner.admin.database.v1.Backup> - getUpdateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.UpdateBackupRequest, - com.google.spanner.admin.database.v1.Backup> - getUpdateBackupMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateBackupRequest, + com.google.spanner.admin.database.v1.Backup> getUpdateBackupMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.UpdateBackupRequest, com.google.spanner.admin.database.v1.Backup> getUpdateBackupMethod; if ((getUpdateBackupMethod = DatabaseAdminGrpc.getUpdateBackupMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getUpdateBackupMethod = DatabaseAdminGrpc.getUpdateBackupMethod) == null) { - DatabaseAdminGrpc.getUpdateBackupMethod = - getUpdateBackupMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.UpdateBackupRequest, - com.google.spanner.admin.database.v1.Backup> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.UpdateBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.Backup.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("UpdateBackup")) - .build(); + DatabaseAdminGrpc.getUpdateBackupMethod = getUpdateBackupMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.UpdateBackupRequest, com.google.spanner.admin.database.v1.Backup>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.UpdateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("UpdateBackup")) + .build(); } } } return getUpdateBackupMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.DeleteBackupRequest, com.google.protobuf.Empty> - getDeleteBackupMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.DeleteBackupRequest, + com.google.protobuf.Empty> getDeleteBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", requestType = com.google.spanner.admin.database.v1.DeleteBackupRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.DeleteBackupRequest, com.google.protobuf.Empty> - getDeleteBackupMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.DeleteBackupRequest, com.google.protobuf.Empty> - getDeleteBackupMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.DeleteBackupRequest, + com.google.protobuf.Empty> getDeleteBackupMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.DeleteBackupRequest, com.google.protobuf.Empty> getDeleteBackupMethod; if ((getDeleteBackupMethod = DatabaseAdminGrpc.getDeleteBackupMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getDeleteBackupMethod = DatabaseAdminGrpc.getDeleteBackupMethod) == null) { - DatabaseAdminGrpc.getDeleteBackupMethod = - getDeleteBackupMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.DeleteBackupRequest, - com.google.protobuf.Empty> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.DeleteBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("DeleteBackup")) - .build(); + DatabaseAdminGrpc.getDeleteBackupMethod = getDeleteBackupMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.DeleteBackupRequest, com.google.protobuf.Empty>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.DeleteBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("DeleteBackup")) + .build(); } } } return getDeleteBackupMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListBackupsRequest, - com.google.spanner.admin.database.v1.ListBackupsResponse> - getListBackupsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListBackupsRequest, + com.google.spanner.admin.database.v1.ListBackupsResponse> getListBackupsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBackups", requestType = com.google.spanner.admin.database.v1.ListBackupsRequest.class, responseType = com.google.spanner.admin.database.v1.ListBackupsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListBackupsRequest, - com.google.spanner.admin.database.v1.ListBackupsResponse> - getListBackupsMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListBackupsRequest, - com.google.spanner.admin.database.v1.ListBackupsResponse> - getListBackupsMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListBackupsRequest, + com.google.spanner.admin.database.v1.ListBackupsResponse> getListBackupsMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListBackupsRequest, com.google.spanner.admin.database.v1.ListBackupsResponse> getListBackupsMethod; if ((getListBackupsMethod = DatabaseAdminGrpc.getListBackupsMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getListBackupsMethod = DatabaseAdminGrpc.getListBackupsMethod) == null) { - DatabaseAdminGrpc.getListBackupsMethod = - getListBackupsMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.ListBackupsRequest, - com.google.spanner.admin.database.v1.ListBackupsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListBackupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListBackupsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("ListBackups")) - .build(); + DatabaseAdminGrpc.getListBackupsMethod = getListBackupsMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.ListBackupsRequest, com.google.spanner.admin.database.v1.ListBackupsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListBackupsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListBackupsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("ListBackups")) + .build(); } } } return getListBackupsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.RestoreDatabaseRequest, - com.google.longrunning.Operation> - getRestoreDatabaseMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.RestoreDatabaseRequest, + com.google.longrunning.Operation> getRestoreDatabaseMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RestoreDatabase", requestType = com.google.spanner.admin.database.v1.RestoreDatabaseRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.RestoreDatabaseRequest, - com.google.longrunning.Operation> - getRestoreDatabaseMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.RestoreDatabaseRequest, - com.google.longrunning.Operation> - getRestoreDatabaseMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.RestoreDatabaseRequest, + com.google.longrunning.Operation> getRestoreDatabaseMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.RestoreDatabaseRequest, com.google.longrunning.Operation> getRestoreDatabaseMethod; if ((getRestoreDatabaseMethod = DatabaseAdminGrpc.getRestoreDatabaseMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getRestoreDatabaseMethod = DatabaseAdminGrpc.getRestoreDatabaseMethod) == null) { - DatabaseAdminGrpc.getRestoreDatabaseMethod = - getRestoreDatabaseMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.RestoreDatabaseRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreDatabase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.RestoreDatabaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("RestoreDatabase")) - .build(); + DatabaseAdminGrpc.getRestoreDatabaseMethod = getRestoreDatabaseMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.RestoreDatabaseRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreDatabase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.RestoreDatabaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("RestoreDatabase")) + .build(); } } } return getRestoreDatabaseMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> - getListDatabaseOperationsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, + com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> getListDatabaseOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListDatabaseOperations", requestType = com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.class, responseType = com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> - getListDatabaseOperationsMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> - getListDatabaseOperationsMethod; - if ((getListDatabaseOperationsMethod = DatabaseAdminGrpc.getListDatabaseOperationsMethod) - == null) { + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, + com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> getListDatabaseOperationsMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> getListDatabaseOperationsMethod; + if ((getListDatabaseOperationsMethod = DatabaseAdminGrpc.getListDatabaseOperationsMethod) == null) { synchronized (DatabaseAdminGrpc.class) { - if ((getListDatabaseOperationsMethod = DatabaseAdminGrpc.getListDatabaseOperationsMethod) - == null) { - DatabaseAdminGrpc.getListDatabaseOperationsMethod = - getListDatabaseOperationsMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListDatabaseOperations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("ListDatabaseOperations")) - .build(); + if ((getListDatabaseOperationsMethod = DatabaseAdminGrpc.getListDatabaseOperationsMethod) == null) { + DatabaseAdminGrpc.getListDatabaseOperationsMethod = getListDatabaseOperationsMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatabaseOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("ListDatabaseOperations")) + .build(); } } } return getListDatabaseOperationsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListBackupOperationsRequest, - com.google.spanner.admin.database.v1.ListBackupOperationsResponse> - getListBackupOperationsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListBackupOperationsRequest, + com.google.spanner.admin.database.v1.ListBackupOperationsResponse> getListBackupOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBackupOperations", requestType = com.google.spanner.admin.database.v1.ListBackupOperationsRequest.class, responseType = com.google.spanner.admin.database.v1.ListBackupOperationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListBackupOperationsRequest, - com.google.spanner.admin.database.v1.ListBackupOperationsResponse> - getListBackupOperationsMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListBackupOperationsRequest, - com.google.spanner.admin.database.v1.ListBackupOperationsResponse> - getListBackupOperationsMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListBackupOperationsRequest, + com.google.spanner.admin.database.v1.ListBackupOperationsResponse> getListBackupOperationsMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListBackupOperationsRequest, com.google.spanner.admin.database.v1.ListBackupOperationsResponse> getListBackupOperationsMethod; if ((getListBackupOperationsMethod = DatabaseAdminGrpc.getListBackupOperationsMethod) == null) { synchronized (DatabaseAdminGrpc.class) { - if ((getListBackupOperationsMethod = DatabaseAdminGrpc.getListBackupOperationsMethod) - == null) { - DatabaseAdminGrpc.getListBackupOperationsMethod = - getListBackupOperationsMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.ListBackupOperationsRequest, - com.google.spanner.admin.database.v1.ListBackupOperationsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListBackupOperations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListBackupOperationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("ListBackupOperations")) - .build(); + if ((getListBackupOperationsMethod = DatabaseAdminGrpc.getListBackupOperationsMethod) == null) { + DatabaseAdminGrpc.getListBackupOperationsMethod = getListBackupOperationsMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.ListBackupOperationsRequest, com.google.spanner.admin.database.v1.ListBackupOperationsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackupOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListBackupOperationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListBackupOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("ListBackupOperations")) + .build(); } } } return getListBackupOperationsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> - getListDatabaseRolesMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, + com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> getListDatabaseRolesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListDatabaseRoles", requestType = com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.class, responseType = com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> - getListDatabaseRolesMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> - getListDatabaseRolesMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, + com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> getListDatabaseRolesMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> getListDatabaseRolesMethod; if ((getListDatabaseRolesMethod = DatabaseAdminGrpc.getListDatabaseRolesMethod) == null) { synchronized (DatabaseAdminGrpc.class) { if ((getListDatabaseRolesMethod = DatabaseAdminGrpc.getListDatabaseRolesMethod) == null) { - DatabaseAdminGrpc.getListDatabaseRolesMethod = - getListDatabaseRolesMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatabaseRoles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatabaseAdminMethodDescriptorSupplier("ListDatabaseRoles")) - .build(); + DatabaseAdminGrpc.getListDatabaseRolesMethod = getListDatabaseRolesMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, com.google.spanner.admin.database.v1.ListDatabaseRolesResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDatabaseRoles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatabaseAdminMethodDescriptorSupplier("ListDatabaseRoles")) + .build(); } } } return getListDatabaseRolesMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static DatabaseAdminStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminStub>() { - @java.lang.Override - public DatabaseAdminStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatabaseAdminStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminStub>() { + @java.lang.Override + public DatabaseAdminStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatabaseAdminStub(channel, callOptions); + } + }; return DatabaseAdminStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static DatabaseAdminBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static DatabaseAdminBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminBlockingStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminBlockingStub>() { - @java.lang.Override - public DatabaseAdminBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatabaseAdminBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminBlockingStub>() { + @java.lang.Override + public DatabaseAdminBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatabaseAdminBlockingStub(channel, callOptions); + } + }; return DatabaseAdminBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DatabaseAdminFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DatabaseAdminFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminFutureStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminFutureStub>() { - @java.lang.Override - public DatabaseAdminFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatabaseAdminFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<DatabaseAdminFutureStub>() { + @java.lang.Override + public DatabaseAdminFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatabaseAdminFutureStub(channel, callOptions); + } + }; return DatabaseAdminFutureStub.newStub(factory, channel); } /** - * - * * <pre> * Cloud Spanner Database Admin API * The Cloud Spanner Database Admin API can be used to: @@ -999,23 +700,16 @@ public DatabaseAdminFutureStub newStub( public interface AsyncService { /** - * - * * <pre> * Lists Cloud Spanner databases. * </pre> */ - default void listDatabases( - com.google.spanner.admin.database.v1.ListDatabasesRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabasesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDatabasesMethod(), responseObserver); + default void listDatabases(com.google.spanner.admin.database.v1.ListDatabasesRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabasesResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatabasesMethod(), responseObserver); } /** - * - * * <pre> * Creates a new Cloud Spanner database and starts to prepare it for serving. * The returned [long-running operation][google.longrunning.Operation] will @@ -1027,31 +721,22 @@ default void listDatabases( * [Database][google.spanner.admin.database.v1.Database], if successful. * </pre> */ - default void createDatabase( - com.google.spanner.admin.database.v1.CreateDatabaseRequest request, + default void createDatabase(com.google.spanner.admin.database.v1.CreateDatabaseRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDatabaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDatabaseMethod(), responseObserver); } /** - * - * * <pre> * Gets the state of a Cloud Spanner database. * </pre> */ - default void getDatabase( - com.google.spanner.admin.database.v1.GetDatabaseRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Database> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDatabaseMethod(), responseObserver); + default void getDatabase(com.google.spanner.admin.database.v1.GetDatabaseRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Database> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatabaseMethod(), responseObserver); } /** - * - * * <pre> * Updates a Cloud Spanner database. The returned * [long-running operation][google.longrunning.Operation] can be used to track @@ -1086,16 +771,12 @@ default void getDatabase( * [Database][google.spanner.admin.database.v1.Database], if successful. * </pre> */ - default void updateDatabase( - com.google.spanner.admin.database.v1.UpdateDatabaseRequest request, + default void updateDatabase(com.google.spanner.admin.database.v1.UpdateDatabaseRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDatabaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDatabaseMethod(), responseObserver); } /** - * - * * <pre> * Updates the schema of a Cloud Spanner database by * creating/altering/dropping tables, columns, indexes, etc. The returned @@ -1106,16 +787,12 @@ default void updateDatabase( * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response. * </pre> */ - default void updateDatabaseDdl( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest request, + default void updateDatabaseDdl(com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDatabaseDdlMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDatabaseDdlMethod(), responseObserver); } /** - * - * * <pre> * Drops (aka deletes) a Cloud Spanner database. * Completed backups for the database will be retained according to their @@ -1124,33 +801,24 @@ default void updateDatabaseDdl( * after the database has been deleted. * </pre> */ - default void dropDatabase( - com.google.spanner.admin.database.v1.DropDatabaseRequest request, + default void dropDatabase(com.google.spanner.admin.database.v1.DropDatabaseRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDropDatabaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDropDatabaseMethod(), responseObserver); } /** - * - * * <pre> * Returns the schema of a Cloud Spanner database as a list of formatted * DDL statements. This method does not show pending schema updates, those may * be queried using the [Operations][google.longrunning.Operations] API. * </pre> */ - default void getDatabaseDdl( - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDatabaseDdlMethod(), responseObserver); + default void getDatabaseDdl(com.google.spanner.admin.database.v1.GetDatabaseDdlRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatabaseDdlMethod(), responseObserver); } /** - * - * * <pre> * Sets the access control policy on a database or backup resource. * Replaces any existing policy. @@ -1160,16 +828,12 @@ default void getDatabaseDdl( * permission on [resource][google.iam.v1.SetIamPolicyRequest.resource]. * </pre> */ - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** - * - * * <pre> * Gets the access control policy for a database or backup resource. * Returns an empty policy if a database or backup exists but does not have a @@ -1180,16 +844,12 @@ default void setIamPolicy( * permission on [resource][google.iam.v1.GetIamPolicyRequest.resource]. * </pre> */ - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * * <pre> * Returns permissions that the caller has on the specified database or backup * resource. @@ -1202,17 +862,12 @@ default void getIamPolicy( * `spanner.backups.list` permission on the containing instance. * </pre> */ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } /** - * - * * <pre> * Starts creating a new Cloud Spanner Backup. * The returned backup [long-running operation][google.longrunning.Operation] @@ -1228,16 +883,12 @@ default void testIamPermissions( * of different databases can run concurrently. * </pre> */ - default void createBackup( - com.google.spanner.admin.database.v1.CreateBackupRequest request, + default void createBackup(com.google.spanner.admin.database.v1.CreateBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBackupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); } /** - * - * * <pre> * Starts copying a Cloud Spanner Backup. * The returned backup [long-running operation][google.longrunning.Operation] @@ -1253,73 +904,54 @@ default void createBackup( * Concurrent CopyBackup requests can run on the same source backup. * </pre> */ - default void copyBackup( - com.google.spanner.admin.database.v1.CopyBackupRequest request, + default void copyBackup(com.google.spanner.admin.database.v1.CopyBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCopyBackupMethod(), responseObserver); } /** - * - * * <pre> * Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - default void getBackup( - com.google.spanner.admin.database.v1.GetBackupRequest request, + default void getBackup(com.google.spanner.admin.database.v1.GetBackupRequest request, io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Backup> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); } /** - * - * * <pre> * Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - default void updateBackup( - com.google.spanner.admin.database.v1.UpdateBackupRequest request, + default void updateBackup(com.google.spanner.admin.database.v1.UpdateBackupRequest request, io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Backup> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBackupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); } /** - * - * * <pre> * Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - default void deleteBackup( - com.google.spanner.admin.database.v1.DeleteBackupRequest request, + default void deleteBackup(com.google.spanner.admin.database.v1.DeleteBackupRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBackupMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupMethod(), responseObserver); } /** - * - * * <pre> * Lists completed and pending backups. * Backups returned are ordered by `create_time` in descending order, * starting from the most recent `create_time`. * </pre> */ - default void listBackups( - com.google.spanner.admin.database.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListBackupsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupsMethod(), responseObserver); + default void listBackups(com.google.spanner.admin.database.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListBackupsResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), responseObserver); } /** - * - * * <pre> * Create a new database by restoring from a completed backup. The new * database must be in the same project and in an instance with the same @@ -1340,16 +972,12 @@ default void listBackups( * first restore to complete. * </pre> */ - default void restoreDatabase( - com.google.spanner.admin.database.v1.RestoreDatabaseRequest request, + default void restoreDatabase(com.google.spanner.admin.database.v1.RestoreDatabaseRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreDatabaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreDatabaseMethod(), responseObserver); } /** - * - * * <pre> * Lists database [longrunning-operations][google.longrunning.Operation]. * A database operation has a name of the form @@ -1361,18 +989,12 @@ default void restoreDatabase( * and pending operations. * </pre> */ - default void listDatabaseOperations( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest request, - io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDatabaseOperationsMethod(), responseObserver); + default void listDatabaseOperations(com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatabaseOperationsMethod(), responseObserver); } /** - * - * * <pre> * Lists the backup [long-running operations][google.longrunning.Operation] in * the given instance. A backup operation has a name of the form @@ -1386,34 +1008,24 @@ default void listDatabaseOperations( * from the most recently started operation. * </pre> */ - default void listBackupOperations( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest request, - io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListBackupOperationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupOperationsMethod(), responseObserver); + default void listBackupOperations(com.google.spanner.admin.database.v1.ListBackupOperationsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListBackupOperationsResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupOperationsMethod(), responseObserver); } /** - * - * * <pre> * Lists Cloud Spanner database roles. * </pre> */ - default void listDatabaseRoles( - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDatabaseRolesMethod(), responseObserver); + default void listDatabaseRoles(com.google.spanner.admin.database.v1.ListDatabaseRolesRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatabaseRolesMethod(), responseObserver); } } /** * Base class for the server implementation of the service DatabaseAdmin. - * * <pre> * Cloud Spanner Database Admin API * The Cloud Spanner Database Admin API can be used to: @@ -1423,18 +1035,16 @@ default void listDatabaseRoles( * * restore a database from an existing backup * </pre> */ - public abstract static class DatabaseAdminImplBase + public static abstract class DatabaseAdminImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return DatabaseAdminGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service DatabaseAdmin. - * * <pre> * Cloud Spanner Database Admin API * The Cloud Spanner Database Admin API can be used to: @@ -1446,35 +1056,29 @@ public final io.grpc.ServerServiceDefinition bindService() { */ public static final class DatabaseAdminStub extends io.grpc.stub.AbstractAsyncStub<DatabaseAdminStub> { - private DatabaseAdminStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private DatabaseAdminStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected DatabaseAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected DatabaseAdminStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DatabaseAdminStub(channel, callOptions); } /** - * - * * <pre> * Lists Cloud Spanner databases. * </pre> */ - public void listDatabases( - com.google.spanner.admin.database.v1.ListDatabasesRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabasesResponse> - responseObserver) { + public void listDatabases(com.google.spanner.admin.database.v1.ListDatabasesRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabasesResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatabasesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListDatabasesMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Creates a new Cloud Spanner database and starts to prepare it for serving. * The returned [long-running operation][google.longrunning.Operation] will @@ -1486,35 +1090,24 @@ public void listDatabases( * [Database][google.spanner.admin.database.v1.Database], if successful. * </pre> */ - public void createDatabase( - com.google.spanner.admin.database.v1.CreateDatabaseRequest request, + public void createDatabase(com.google.spanner.admin.database.v1.CreateDatabaseRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDatabaseMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateDatabaseMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Gets the state of a Cloud Spanner database. * </pre> */ - public void getDatabase( - com.google.spanner.admin.database.v1.GetDatabaseRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Database> - responseObserver) { + public void getDatabase(com.google.spanner.admin.database.v1.GetDatabaseRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Database> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDatabaseMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetDatabaseMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Updates a Cloud Spanner database. The returned * [long-running operation][google.longrunning.Operation] can be used to track @@ -1549,18 +1142,13 @@ public void getDatabase( * [Database][google.spanner.admin.database.v1.Database], if successful. * </pre> */ - public void updateDatabase( - com.google.spanner.admin.database.v1.UpdateDatabaseRequest request, + public void updateDatabase(com.google.spanner.admin.database.v1.UpdateDatabaseRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDatabaseMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateDatabaseMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Updates the schema of a Cloud Spanner database by * creating/altering/dropping tables, columns, indexes, etc. The returned @@ -1571,18 +1159,13 @@ public void updateDatabase( * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response. * </pre> */ - public void updateDatabaseDdl( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest request, + public void updateDatabaseDdl(com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDatabaseDdlMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateDatabaseDdlMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Drops (aka deletes) a Cloud Spanner database. * Completed backups for the database will be retained according to their @@ -1591,37 +1174,26 @@ public void updateDatabaseDdl( * after the database has been deleted. * </pre> */ - public void dropDatabase( - com.google.spanner.admin.database.v1.DropDatabaseRequest request, + public void dropDatabase(com.google.spanner.admin.database.v1.DropDatabaseRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDropDatabaseMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDropDatabaseMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Returns the schema of a Cloud Spanner database as a list of formatted * DDL statements. This method does not show pending schema updates, those may * be queried using the [Operations][google.longrunning.Operations] API. * </pre> */ - public void getDatabaseDdl( - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> - responseObserver) { + public void getDatabaseDdl(com.google.spanner.admin.database.v1.GetDatabaseDdlRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDatabaseDdlMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetDatabaseDdlMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Sets the access control policy on a database or backup resource. * Replaces any existing policy. @@ -1631,18 +1203,13 @@ public void getDatabaseDdl( * permission on [resource][google.iam.v1.SetIamPolicyRequest.resource]. * </pre> */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Gets the access control policy for a database or backup resource. * Returns an empty policy if a database or backup exists but does not have a @@ -1653,18 +1220,13 @@ public void setIamPolicy( * permission on [resource][google.iam.v1.GetIamPolicyRequest.resource]. * </pre> */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Returns permissions that the caller has on the specified database or backup * resource. @@ -1677,19 +1239,13 @@ public void getIamPolicy( * `spanner.backups.list` permission on the containing instance. * </pre> */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> - responseObserver) { + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Starts creating a new Cloud Spanner Backup. * The returned backup [long-running operation][google.longrunning.Operation] @@ -1705,18 +1261,13 @@ public void testIamPermissions( * of different databases can run concurrently. * </pre> */ - public void createBackup( - com.google.spanner.admin.database.v1.CreateBackupRequest request, + public void createBackup(com.google.spanner.admin.database.v1.CreateBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Starts copying a Cloud Spanner Backup. * The returned backup [long-running operation][google.longrunning.Operation] @@ -1732,81 +1283,59 @@ public void createBackup( * Concurrent CopyBackup requests can run on the same source backup. * </pre> */ - public void copyBackup( - com.google.spanner.admin.database.v1.CopyBackupRequest request, + public void copyBackup(com.google.spanner.admin.database.v1.CopyBackupRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCopyBackupMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public void getBackup( - com.google.spanner.admin.database.v1.GetBackupRequest request, + public void getBackup(com.google.spanner.admin.database.v1.GetBackupRequest request, io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Backup> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public void updateBackup( - com.google.spanner.admin.database.v1.UpdateBackupRequest request, + public void updateBackup(com.google.spanner.admin.database.v1.UpdateBackupRequest request, io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Backup> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public void deleteBackup( - com.google.spanner.admin.database.v1.DeleteBackupRequest request, + public void deleteBackup(com.google.spanner.admin.database.v1.DeleteBackupRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Lists completed and pending backups. * Backups returned are ordered by `create_time` in descending order, * starting from the most recent `create_time`. * </pre> */ - public void listBackups( - com.google.spanner.admin.database.v1.ListBackupsRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListBackupsResponse> - responseObserver) { + public void listBackups(com.google.spanner.admin.database.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListBackupsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Create a new database by restoring from a completed backup. The new * database must be in the same project and in an instance with the same @@ -1827,18 +1356,13 @@ public void listBackups( * first restore to complete. * </pre> */ - public void restoreDatabase( - com.google.spanner.admin.database.v1.RestoreDatabaseRequest request, + public void restoreDatabase(com.google.spanner.admin.database.v1.RestoreDatabaseRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreDatabaseMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRestoreDatabaseMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Lists database [longrunning-operations][google.longrunning.Operation]. * A database operation has a name of the form @@ -1850,20 +1374,13 @@ public void restoreDatabase( * and pending operations. * </pre> */ - public void listDatabaseOperations( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest request, - io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> - responseObserver) { + public void listDatabaseOperations(com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatabaseOperationsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListDatabaseOperationsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Lists the backup [long-running operations][google.longrunning.Operation] in * the given instance. A backup operation has a name of the form @@ -1877,38 +1394,26 @@ public void listDatabaseOperations( * from the most recently started operation. * </pre> */ - public void listBackupOperations( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest request, - io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListBackupOperationsResponse> - responseObserver) { + public void listBackupOperations(com.google.spanner.admin.database.v1.ListBackupOperationsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListBackupOperationsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupOperationsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBackupOperationsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Lists Cloud Spanner database roles. * </pre> */ - public void listDatabaseRoles( - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> - responseObserver) { + public void listDatabaseRoles(com.google.spanner.admin.database.v1.ListDatabaseRolesRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatabaseRolesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListDatabaseRolesMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service DatabaseAdmin. - * * <pre> * Cloud Spanner Database Admin API * The Cloud Spanner Database Admin API can be used to: @@ -1920,7 +1425,8 @@ public void listDatabaseRoles( */ public static final class DatabaseAdminBlockingStub extends io.grpc.stub.AbstractBlockingStub<DatabaseAdminBlockingStub> { - private DatabaseAdminBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private DatabaseAdminBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1931,21 +1437,16 @@ protected DatabaseAdminBlockingStub build( } /** - * - * * <pre> * Lists Cloud Spanner databases. * </pre> */ - public com.google.spanner.admin.database.v1.ListDatabasesResponse listDatabases( - com.google.spanner.admin.database.v1.ListDatabasesRequest request) { + public com.google.spanner.admin.database.v1.ListDatabasesResponse listDatabases(com.google.spanner.admin.database.v1.ListDatabasesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDatabasesMethod(), getCallOptions(), request); } /** - * - * * <pre> * Creates a new Cloud Spanner database and starts to prepare it for serving. * The returned [long-running operation][google.longrunning.Operation] will @@ -1957,28 +1458,22 @@ public com.google.spanner.admin.database.v1.ListDatabasesResponse listDatabases( * [Database][google.spanner.admin.database.v1.Database], if successful. * </pre> */ - public com.google.longrunning.Operation createDatabase( - com.google.spanner.admin.database.v1.CreateDatabaseRequest request) { + public com.google.longrunning.Operation createDatabase(com.google.spanner.admin.database.v1.CreateDatabaseRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDatabaseMethod(), getCallOptions(), request); } /** - * - * * <pre> * Gets the state of a Cloud Spanner database. * </pre> */ - public com.google.spanner.admin.database.v1.Database getDatabase( - com.google.spanner.admin.database.v1.GetDatabaseRequest request) { + public com.google.spanner.admin.database.v1.Database getDatabase(com.google.spanner.admin.database.v1.GetDatabaseRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDatabaseMethod(), getCallOptions(), request); } /** - * - * * <pre> * Updates a Cloud Spanner database. The returned * [long-running operation][google.longrunning.Operation] can be used to track @@ -2013,15 +1508,12 @@ public com.google.spanner.admin.database.v1.Database getDatabase( * [Database][google.spanner.admin.database.v1.Database], if successful. * </pre> */ - public com.google.longrunning.Operation updateDatabase( - com.google.spanner.admin.database.v1.UpdateDatabaseRequest request) { + public com.google.longrunning.Operation updateDatabase(com.google.spanner.admin.database.v1.UpdateDatabaseRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDatabaseMethod(), getCallOptions(), request); } /** - * - * * <pre> * Updates the schema of a Cloud Spanner database by * creating/altering/dropping tables, columns, indexes, etc. The returned @@ -2032,15 +1524,12 @@ public com.google.longrunning.Operation updateDatabase( * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response. * </pre> */ - public com.google.longrunning.Operation updateDatabaseDdl( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest request) { + public com.google.longrunning.Operation updateDatabaseDdl(com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDatabaseDdlMethod(), getCallOptions(), request); } /** - * - * * <pre> * Drops (aka deletes) a Cloud Spanner database. * Completed backups for the database will be retained according to their @@ -2049,30 +1538,24 @@ public com.google.longrunning.Operation updateDatabaseDdl( * after the database has been deleted. * </pre> */ - public com.google.protobuf.Empty dropDatabase( - com.google.spanner.admin.database.v1.DropDatabaseRequest request) { + public com.google.protobuf.Empty dropDatabase(com.google.spanner.admin.database.v1.DropDatabaseRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDropDatabaseMethod(), getCallOptions(), request); } /** - * - * * <pre> * Returns the schema of a Cloud Spanner database as a list of formatted * DDL statements. This method does not show pending schema updates, those may * be queried using the [Operations][google.longrunning.Operations] API. * </pre> */ - public com.google.spanner.admin.database.v1.GetDatabaseDdlResponse getDatabaseDdl( - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest request) { + public com.google.spanner.admin.database.v1.GetDatabaseDdlResponse getDatabaseDdl(com.google.spanner.admin.database.v1.GetDatabaseDdlRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDatabaseDdlMethod(), getCallOptions(), request); } /** - * - * * <pre> * Sets the access control policy on a database or backup resource. * Replaces any existing policy. @@ -2088,8 +1571,6 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque } /** - * - * * <pre> * Gets the access control policy for a database or backup resource. * Returns an empty policy if a database or backup exists but does not have a @@ -2106,8 +1587,6 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque } /** - * - * * <pre> * Returns permissions that the caller has on the specified database or backup * resource. @@ -2120,15 +1599,12 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * `spanner.backups.list` permission on the containing instance. * </pre> */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } /** - * - * * <pre> * Starts creating a new Cloud Spanner Backup. * The returned backup [long-running operation][google.longrunning.Operation] @@ -2144,15 +1620,12 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * of different databases can run concurrently. * </pre> */ - public com.google.longrunning.Operation createBackup( - com.google.spanner.admin.database.v1.CreateBackupRequest request) { + public com.google.longrunning.Operation createBackup(com.google.spanner.admin.database.v1.CreateBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } /** - * - * * <pre> * Starts copying a Cloud Spanner Backup. * The returned backup [long-running operation][google.longrunning.Operation] @@ -2168,69 +1641,54 @@ public com.google.longrunning.Operation createBackup( * Concurrent CopyBackup requests can run on the same source backup. * </pre> */ - public com.google.longrunning.Operation copyBackup( - com.google.spanner.admin.database.v1.CopyBackupRequest request) { + public com.google.longrunning.Operation copyBackup(com.google.spanner.admin.database.v1.CopyBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCopyBackupMethod(), getCallOptions(), request); } /** - * - * * <pre> * Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public com.google.spanner.admin.database.v1.Backup getBackup( - com.google.spanner.admin.database.v1.GetBackupRequest request) { + public com.google.spanner.admin.database.v1.Backup getBackup(com.google.spanner.admin.database.v1.GetBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } /** - * - * * <pre> * Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public com.google.spanner.admin.database.v1.Backup updateBackup( - com.google.spanner.admin.database.v1.UpdateBackupRequest request) { + public com.google.spanner.admin.database.v1.Backup updateBackup(com.google.spanner.admin.database.v1.UpdateBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } /** - * - * * <pre> * Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public com.google.protobuf.Empty deleteBackup( - com.google.spanner.admin.database.v1.DeleteBackupRequest request) { + public com.google.protobuf.Empty deleteBackup(com.google.spanner.admin.database.v1.DeleteBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } /** - * - * * <pre> * Lists completed and pending backups. * Backups returned are ordered by `create_time` in descending order, * starting from the most recent `create_time`. * </pre> */ - public com.google.spanner.admin.database.v1.ListBackupsResponse listBackups( - com.google.spanner.admin.database.v1.ListBackupsRequest request) { + public com.google.spanner.admin.database.v1.ListBackupsResponse listBackups(com.google.spanner.admin.database.v1.ListBackupsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } /** - * - * * <pre> * Create a new database by restoring from a completed backup. The new * database must be in the same project and in an instance with the same @@ -2251,15 +1709,12 @@ public com.google.spanner.admin.database.v1.ListBackupsResponse listBackups( * first restore to complete. * </pre> */ - public com.google.longrunning.Operation restoreDatabase( - com.google.spanner.admin.database.v1.RestoreDatabaseRequest request) { + public com.google.longrunning.Operation restoreDatabase(com.google.spanner.admin.database.v1.RestoreDatabaseRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRestoreDatabaseMethod(), getCallOptions(), request); } /** - * - * * <pre> * Lists database [longrunning-operations][google.longrunning.Operation]. * A database operation has a name of the form @@ -2271,16 +1726,12 @@ public com.google.longrunning.Operation restoreDatabase( * and pending operations. * </pre> */ - public com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - listDatabaseOperations( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest request) { + public com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse listDatabaseOperations(com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDatabaseOperationsMethod(), getCallOptions(), request); } /** - * - * * <pre> * Lists the backup [long-running operations][google.longrunning.Operation] in * the given instance. A backup operation has a name of the form @@ -2294,21 +1745,17 @@ public com.google.longrunning.Operation restoreDatabase( * from the most recently started operation. * </pre> */ - public com.google.spanner.admin.database.v1.ListBackupOperationsResponse listBackupOperations( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest request) { + public com.google.spanner.admin.database.v1.ListBackupOperationsResponse listBackupOperations(com.google.spanner.admin.database.v1.ListBackupOperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBackupOperationsMethod(), getCallOptions(), request); } /** - * - * * <pre> * Lists Cloud Spanner database roles. * </pre> */ - public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse listDatabaseRoles( - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest request) { + public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse listDatabaseRoles(com.google.spanner.admin.database.v1.ListDatabaseRolesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDatabaseRolesMethod(), getCallOptions(), request); } @@ -2316,7 +1763,6 @@ public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse listDataba /** * A stub to allow clients to do ListenableFuture-style rpc calls to service DatabaseAdmin. - * * <pre> * Cloud Spanner Database Admin API * The Cloud Spanner Database Admin API can be used to: @@ -2328,7 +1774,8 @@ public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse listDataba */ public static final class DatabaseAdminFutureStub extends io.grpc.stub.AbstractFutureStub<DatabaseAdminFutureStub> { - private DatabaseAdminFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private DatabaseAdminFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2339,22 +1786,17 @@ protected DatabaseAdminFutureStub build( } /** - * - * * <pre> * Lists Cloud Spanner databases. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.ListDatabasesResponse> - listDatabases(com.google.spanner.admin.database.v1.ListDatabasesRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.ListDatabasesResponse> listDatabases( + com.google.spanner.admin.database.v1.ListDatabasesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDatabasesMethod(), getCallOptions()), request); } /** - * - * * <pre> * Creates a new Cloud Spanner database and starts to prepare it for serving. * The returned [long-running operation][google.longrunning.Operation] will @@ -2366,29 +1808,24 @@ protected DatabaseAdminFutureStub build( * [Database][google.spanner.admin.database.v1.Database], if successful. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - createDatabase(com.google.spanner.admin.database.v1.CreateDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createDatabase( + com.google.spanner.admin.database.v1.CreateDatabaseRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDatabaseMethod(), getCallOptions()), request); } /** - * - * * <pre> * Gets the state of a Cloud Spanner database. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.Database> - getDatabase(com.google.spanner.admin.database.v1.GetDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.Database> getDatabase( + com.google.spanner.admin.database.v1.GetDatabaseRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDatabaseMethod(), getCallOptions()), request); } /** - * - * * <pre> * Updates a Cloud Spanner database. The returned * [long-running operation][google.longrunning.Operation] can be used to track @@ -2423,15 +1860,13 @@ protected DatabaseAdminFutureStub build( * [Database][google.spanner.admin.database.v1.Database], if successful. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - updateDatabase(com.google.spanner.admin.database.v1.UpdateDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> updateDatabase( + com.google.spanner.admin.database.v1.UpdateDatabaseRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDatabaseMethod(), getCallOptions()), request); } /** - * - * * <pre> * Updates the schema of a Cloud Spanner database by * creating/altering/dropping tables, columns, indexes, etc. The returned @@ -2442,15 +1877,13 @@ protected DatabaseAdminFutureStub build( * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - updateDatabaseDdl(com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> updateDatabaseDdl( + com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDatabaseDdlMethod(), getCallOptions()), request); } /** - * - * * <pre> * Drops (aka deletes) a Cloud Spanner database. * Completed backups for the database will be retained according to their @@ -2459,31 +1892,26 @@ protected DatabaseAdminFutureStub build( * after the database has been deleted. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> - dropDatabase(com.google.spanner.admin.database.v1.DropDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> dropDatabase( + com.google.spanner.admin.database.v1.DropDatabaseRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDropDatabaseMethod(), getCallOptions()), request); } /** - * - * * <pre> * Returns the schema of a Cloud Spanner database as a list of formatted * DDL statements. This method does not show pending schema updates, those may * be queried using the [Operations][google.longrunning.Operations] API. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> - getDatabaseDdl(com.google.spanner.admin.database.v1.GetDatabaseDdlRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> getDatabaseDdl( + com.google.spanner.admin.database.v1.GetDatabaseDdlRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDatabaseDdlMethod(), getCallOptions()), request); } /** - * - * * <pre> * Sets the access control policy on a database or backup resource. * Replaces any existing policy. @@ -2493,15 +1921,13 @@ protected DatabaseAdminFutureStub build( * permission on [resource][google.iam.v1.SetIamPolicyRequest.resource]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** - * - * * <pre> * Gets the access control policy for a database or backup resource. * Returns an empty policy if a database or backup exists but does not have a @@ -2512,15 +1938,13 @@ protected DatabaseAdminFutureStub build( * permission on [resource][google.iam.v1.GetIamPolicyRequest.resource]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** - * - * * <pre> * Returns permissions that the caller has on the specified database or backup * resource. @@ -2533,16 +1957,13 @@ protected DatabaseAdminFutureStub build( * `spanner.backups.list` permission on the containing instance. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } /** - * - * * <pre> * Starts creating a new Cloud Spanner Backup. * The returned backup [long-running operation][google.longrunning.Operation] @@ -2558,15 +1979,13 @@ protected DatabaseAdminFutureStub build( * of different databases can run concurrently. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - createBackup(com.google.spanner.admin.database.v1.CreateBackupRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createBackup( + com.google.spanner.admin.database.v1.CreateBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); } /** - * - * * <pre> * Starts copying a Cloud Spanner Backup. * The returned backup [long-running operation][google.longrunning.Operation] @@ -2582,72 +2001,59 @@ protected DatabaseAdminFutureStub build( * Concurrent CopyBackup requests can run on the same source backup. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - copyBackup(com.google.spanner.admin.database.v1.CopyBackupRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> copyBackup( + com.google.spanner.admin.database.v1.CopyBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCopyBackupMethod(), getCallOptions()), request); } /** - * - * * <pre> * Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.Backup> - getBackup(com.google.spanner.admin.database.v1.GetBackupRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.Backup> getBackup( + com.google.spanner.admin.database.v1.GetBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); } /** - * - * * <pre> * Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.Backup> - updateBackup(com.google.spanner.admin.database.v1.UpdateBackupRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.Backup> updateBackup( + com.google.spanner.admin.database.v1.UpdateBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); } /** - * - * * <pre> * Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> - deleteBackup(com.google.spanner.admin.database.v1.DeleteBackupRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteBackup( + com.google.spanner.admin.database.v1.DeleteBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); } /** - * - * * <pre> * Lists completed and pending backups. * Backups returned are ordered by `create_time` in descending order, * starting from the most recent `create_time`. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.ListBackupsResponse> - listBackups(com.google.spanner.admin.database.v1.ListBackupsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.ListBackupsResponse> listBackups( + com.google.spanner.admin.database.v1.ListBackupsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); } /** - * - * * <pre> * Create a new database by restoring from a completed backup. The new * database must be in the same project and in an instance with the same @@ -2668,15 +2074,13 @@ protected DatabaseAdminFutureStub build( * first restore to complete. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - restoreDatabase(com.google.spanner.admin.database.v1.RestoreDatabaseRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> restoreDatabase( + com.google.spanner.admin.database.v1.RestoreDatabaseRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreDatabaseMethod(), getCallOptions()), request); } /** - * - * * <pre> * Lists database [longrunning-operations][google.longrunning.Operation]. * A database operation has a name of the form @@ -2688,17 +2092,13 @@ protected DatabaseAdminFutureStub build( * and pending operations. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> - listDatabaseOperations( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse> listDatabaseOperations( + com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDatabaseOperationsMethod(), getCallOptions()), request); } /** - * - * * <pre> * Lists the backup [long-running operations][google.longrunning.Operation] in * the given instance. A backup operation has a name of the form @@ -2712,24 +2112,19 @@ protected DatabaseAdminFutureStub build( * from the most recently started operation. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.ListBackupOperationsResponse> - listBackupOperations( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.ListBackupOperationsResponse> listBackupOperations( + com.google.spanner.admin.database.v1.ListBackupOperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBackupOperationsMethod(), getCallOptions()), request); } /** - * - * * <pre> * Lists Cloud Spanner database roles. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> - listDatabaseRoles(com.google.spanner.admin.database.v1.ListDatabaseRolesRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.database.v1.ListDatabaseRolesResponse> listDatabaseRoles( + com.google.spanner.admin.database.v1.ListDatabaseRolesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDatabaseRolesMethod(), getCallOptions()), request); } @@ -2756,11 +2151,11 @@ protected DatabaseAdminFutureStub build( private static final int METHODID_LIST_BACKUP_OPERATIONS = 18; private static final int METHODID_LIST_DATABASE_ROLES = 19; - private static final class MethodHandlers<Req, Resp> - implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { + private static final class MethodHandlers<Req, Resp> implements + io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final AsyncService serviceImpl; private final int methodId; @@ -2774,120 +2169,84 @@ private static final class MethodHandlers<Req, Resp> public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_LIST_DATABASES: - serviceImpl.listDatabases( - (com.google.spanner.admin.database.v1.ListDatabasesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListDatabasesResponse>) - responseObserver); + serviceImpl.listDatabases((com.google.spanner.admin.database.v1.ListDatabasesRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabasesResponse>) responseObserver); break; case METHODID_CREATE_DATABASE: - serviceImpl.createDatabase( - (com.google.spanner.admin.database.v1.CreateDatabaseRequest) request, + serviceImpl.createDatabase((com.google.spanner.admin.database.v1.CreateDatabaseRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_GET_DATABASE: - serviceImpl.getDatabase( - (com.google.spanner.admin.database.v1.GetDatabaseRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Database>) - responseObserver); + serviceImpl.getDatabase((com.google.spanner.admin.database.v1.GetDatabaseRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Database>) responseObserver); break; case METHODID_UPDATE_DATABASE: - serviceImpl.updateDatabase( - (com.google.spanner.admin.database.v1.UpdateDatabaseRequest) request, + serviceImpl.updateDatabase((com.google.spanner.admin.database.v1.UpdateDatabaseRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_UPDATE_DATABASE_DDL: - serviceImpl.updateDatabaseDdl( - (com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) request, + serviceImpl.updateDatabaseDdl((com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_DROP_DATABASE: - serviceImpl.dropDatabase( - (com.google.spanner.admin.database.v1.DropDatabaseRequest) request, + serviceImpl.dropDatabase((com.google.spanner.admin.database.v1.DropDatabaseRequest) request, (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver); break; case METHODID_GET_DATABASE_DDL: - serviceImpl.getDatabaseDdl( - (com.google.spanner.admin.database.v1.GetDatabaseDdlRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse>) - responseObserver); + serviceImpl.getDatabaseDdl((com.google.spanner.admin.database.v1.GetDatabaseDdlRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.GetDatabaseDdlResponse>) responseObserver); break; case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, (io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>) responseObserver); break; case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, (io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>) responseObserver); break; case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>) - responseObserver); + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>) responseObserver); break; case METHODID_CREATE_BACKUP: - serviceImpl.createBackup( - (com.google.spanner.admin.database.v1.CreateBackupRequest) request, + serviceImpl.createBackup((com.google.spanner.admin.database.v1.CreateBackupRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_COPY_BACKUP: - serviceImpl.copyBackup( - (com.google.spanner.admin.database.v1.CopyBackupRequest) request, + serviceImpl.copyBackup((com.google.spanner.admin.database.v1.CopyBackupRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_GET_BACKUP: - serviceImpl.getBackup( - (com.google.spanner.admin.database.v1.GetBackupRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Backup>) - responseObserver); + serviceImpl.getBackup((com.google.spanner.admin.database.v1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Backup>) responseObserver); break; case METHODID_UPDATE_BACKUP: - serviceImpl.updateBackup( - (com.google.spanner.admin.database.v1.UpdateBackupRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Backup>) - responseObserver); + serviceImpl.updateBackup((com.google.spanner.admin.database.v1.UpdateBackupRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.Backup>) responseObserver); break; case METHODID_DELETE_BACKUP: - serviceImpl.deleteBackup( - (com.google.spanner.admin.database.v1.DeleteBackupRequest) request, + serviceImpl.deleteBackup((com.google.spanner.admin.database.v1.DeleteBackupRequest) request, (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver); break; case METHODID_LIST_BACKUPS: - serviceImpl.listBackups( - (com.google.spanner.admin.database.v1.ListBackupsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListBackupsResponse>) - responseObserver); + serviceImpl.listBackups((com.google.spanner.admin.database.v1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListBackupsResponse>) responseObserver); break; case METHODID_RESTORE_DATABASE: - serviceImpl.restoreDatabase( - (com.google.spanner.admin.database.v1.RestoreDatabaseRequest) request, + serviceImpl.restoreDatabase((com.google.spanner.admin.database.v1.RestoreDatabaseRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_LIST_DATABASE_OPERATIONS: - serviceImpl.listDatabaseOperations( - (com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse>) - responseObserver); + serviceImpl.listDatabaseOperations((com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse>) responseObserver); break; case METHODID_LIST_BACKUP_OPERATIONS: - serviceImpl.listBackupOperations( - (com.google.spanner.admin.database.v1.ListBackupOperationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListBackupOperationsResponse>) - responseObserver); + serviceImpl.listBackupOperations((com.google.spanner.admin.database.v1.ListBackupOperationsRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListBackupOperationsResponse>) responseObserver); break; case METHODID_LIST_DATABASE_ROLES: - serviceImpl.listDatabaseRoles( - (com.google.spanner.admin.database.v1.ListDatabaseRolesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse>) - responseObserver); + serviceImpl.listDatabaseRoles((com.google.spanner.admin.database.v1.ListDatabaseRolesRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.database.v1.ListDatabaseRolesResponse>) responseObserver); break; default: throw new AssertionError(); @@ -2908,136 +2267,150 @@ public io.grpc.stub.StreamObserver<Req> invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListDatabasesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.ListDatabasesRequest, - com.google.spanner.admin.database.v1.ListDatabasesResponse>( - service, METHODID_LIST_DATABASES))) + getListDatabasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.ListDatabasesRequest, + com.google.spanner.admin.database.v1.ListDatabasesResponse>( + service, METHODID_LIST_DATABASES))) .addMethod( - getCreateDatabaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.CreateDatabaseRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_DATABASE))) + getCreateDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.CreateDatabaseRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_DATABASE))) .addMethod( - getGetDatabaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.GetDatabaseRequest, - com.google.spanner.admin.database.v1.Database>(service, METHODID_GET_DATABASE))) + getGetDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.GetDatabaseRequest, + com.google.spanner.admin.database.v1.Database>( + service, METHODID_GET_DATABASE))) .addMethod( - getUpdateDatabaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.UpdateDatabaseRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_DATABASE))) + getUpdateDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.UpdateDatabaseRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_DATABASE))) .addMethod( - getUpdateDatabaseDdlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_DATABASE_DDL))) + getUpdateDatabaseDdlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_DATABASE_DDL))) .addMethod( - getDropDatabaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.DropDatabaseRequest, - com.google.protobuf.Empty>(service, METHODID_DROP_DATABASE))) + getDropDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.DropDatabaseRequest, + com.google.protobuf.Empty>( + service, METHODID_DROP_DATABASE))) .addMethod( - getGetDatabaseDdlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse>( - service, METHODID_GET_DATABASE_DDL))) + getGetDatabaseDdlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.GetDatabaseDdlRequest, + com.google.spanner.admin.database.v1.GetDatabaseDdlResponse>( + service, METHODID_GET_DATABASE_DDL))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - service, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_SET_IAM_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - service, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_GET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.CreateBackupRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_BACKUP))) + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.CreateBackupRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_BACKUP))) .addMethod( - getCopyBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.CopyBackupRequest, - com.google.longrunning.Operation>(service, METHODID_COPY_BACKUP))) + getCopyBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.CopyBackupRequest, + com.google.longrunning.Operation>( + service, METHODID_COPY_BACKUP))) .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.GetBackupRequest, - com.google.spanner.admin.database.v1.Backup>(service, METHODID_GET_BACKUP))) + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.GetBackupRequest, + com.google.spanner.admin.database.v1.Backup>( + service, METHODID_GET_BACKUP))) .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.UpdateBackupRequest, - com.google.spanner.admin.database.v1.Backup>(service, METHODID_UPDATE_BACKUP))) + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.UpdateBackupRequest, + com.google.spanner.admin.database.v1.Backup>( + service, METHODID_UPDATE_BACKUP))) .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.DeleteBackupRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_BACKUP))) + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.DeleteBackupRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_BACKUP))) .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.ListBackupsRequest, - com.google.spanner.admin.database.v1.ListBackupsResponse>( - service, METHODID_LIST_BACKUPS))) + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.ListBackupsRequest, + com.google.spanner.admin.database.v1.ListBackupsResponse>( + service, METHODID_LIST_BACKUPS))) .addMethod( - getRestoreDatabaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.RestoreDatabaseRequest, - com.google.longrunning.Operation>(service, METHODID_RESTORE_DATABASE))) + getRestoreDatabaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.RestoreDatabaseRequest, + com.google.longrunning.Operation>( + service, METHODID_RESTORE_DATABASE))) .addMethod( - getListDatabaseOperationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse>( - service, METHODID_LIST_DATABASE_OPERATIONS))) + getListDatabaseOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest, + com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse>( + service, METHODID_LIST_DATABASE_OPERATIONS))) .addMethod( - getListBackupOperationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.ListBackupOperationsRequest, - com.google.spanner.admin.database.v1.ListBackupOperationsResponse>( - service, METHODID_LIST_BACKUP_OPERATIONS))) + getListBackupOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.ListBackupOperationsRequest, + com.google.spanner.admin.database.v1.ListBackupOperationsResponse>( + service, METHODID_LIST_BACKUP_OPERATIONS))) .addMethod( - getListDatabaseRolesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse>( - service, METHODID_LIST_DATABASE_ROLES))) + getListDatabaseRolesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.database.v1.ListDatabaseRolesRequest, + com.google.spanner.admin.database.v1.ListDatabaseRolesResponse>( + service, METHODID_LIST_DATABASE_ROLES))) .build(); } - private abstract static class DatabaseAdminBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class DatabaseAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { DatabaseAdminBaseDescriptorSupplier() {} @java.lang.Override @@ -3079,31 +2452,29 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (DatabaseAdminGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DatabaseAdminFileDescriptorSupplier()) - .addMethod(getListDatabasesMethod()) - .addMethod(getCreateDatabaseMethod()) - .addMethod(getGetDatabaseMethod()) - .addMethod(getUpdateDatabaseMethod()) - .addMethod(getUpdateDatabaseDdlMethod()) - .addMethod(getDropDatabaseMethod()) - .addMethod(getGetDatabaseDdlMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getCopyBackupMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getRestoreDatabaseMethod()) - .addMethod(getListDatabaseOperationsMethod()) - .addMethod(getListBackupOperationsMethod()) - .addMethod(getListDatabaseRolesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DatabaseAdminFileDescriptorSupplier()) + .addMethod(getListDatabasesMethod()) + .addMethod(getCreateDatabaseMethod()) + .addMethod(getGetDatabaseMethod()) + .addMethod(getUpdateDatabaseMethod()) + .addMethod(getUpdateDatabaseDdlMethod()) + .addMethod(getDropDatabaseMethod()) + .addMethod(getGetDatabaseDdlMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getCopyBackupMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getRestoreDatabaseMethod()) + .addMethod(getListDatabaseOperationsMethod()) + .addMethod(getListBackupOperationsMethod()) + .addMethod(getListDatabaseRolesMethod()) + .build(); } } } diff --git a/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java similarity index 62% rename from grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java index 5126b2b45cb..b03a5f946db 100644 --- a/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java @@ -1,25 +1,8 @@ -/* - * 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.spanner.admin.instance.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * * <pre> * Cloud Spanner Instance Admin API * The Cloud Spanner Instance Admin API can be used to create, delete, @@ -49,695 +32,488 @@ public final class InstanceAdminGrpc { private InstanceAdminGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.spanner.admin.instance.v1.InstanceAdmin"; + public static final java.lang.String SERVICE_NAME = "google.spanner.admin.instance.v1.InstanceAdmin"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> - getListInstanceConfigsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, + com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> getListInstanceConfigsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListInstanceConfigs", requestType = com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.class, responseType = com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> - getListInstanceConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> - getListInstanceConfigsMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, + com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> getListInstanceConfigsMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> getListInstanceConfigsMethod; if ((getListInstanceConfigsMethod = InstanceAdminGrpc.getListInstanceConfigsMethod) == null) { synchronized (InstanceAdminGrpc.class) { - if ((getListInstanceConfigsMethod = InstanceAdminGrpc.getListInstanceConfigsMethod) - == null) { - InstanceAdminGrpc.getListInstanceConfigsMethod = - getListInstanceConfigsMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListInstanceConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("ListInstanceConfigs")) - .build(); + if ((getListInstanceConfigsMethod = InstanceAdminGrpc.getListInstanceConfigsMethod) == null) { + InstanceAdminGrpc.getListInstanceConfigsMethod = getListInstanceConfigsMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstanceConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("ListInstanceConfigs")) + .build(); } } } return getListInstanceConfigsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, - com.google.spanner.admin.instance.v1.InstanceConfig> - getGetInstanceConfigMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, + com.google.spanner.admin.instance.v1.InstanceConfig> getGetInstanceConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetInstanceConfig", requestType = com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.class, responseType = com.google.spanner.admin.instance.v1.InstanceConfig.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, - com.google.spanner.admin.instance.v1.InstanceConfig> - getGetInstanceConfigMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, - com.google.spanner.admin.instance.v1.InstanceConfig> - getGetInstanceConfigMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, + com.google.spanner.admin.instance.v1.InstanceConfig> getGetInstanceConfigMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, com.google.spanner.admin.instance.v1.InstanceConfig> getGetInstanceConfigMethod; if ((getGetInstanceConfigMethod = InstanceAdminGrpc.getGetInstanceConfigMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getGetInstanceConfigMethod = InstanceAdminGrpc.getGetInstanceConfigMethod) == null) { - InstanceAdminGrpc.getGetInstanceConfigMethod = - getGetInstanceConfigMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, - com.google.spanner.admin.instance.v1.InstanceConfig> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstanceConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.InstanceConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("GetInstanceConfig")) - .build(); + InstanceAdminGrpc.getGetInstanceConfigMethod = getGetInstanceConfigMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, com.google.spanner.admin.instance.v1.InstanceConfig>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("GetInstanceConfig")) + .build(); } } } return getGetInstanceConfigMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, - com.google.longrunning.Operation> - getCreateInstanceConfigMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, + com.google.longrunning.Operation> getCreateInstanceConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateInstanceConfig", requestType = com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, - com.google.longrunning.Operation> - getCreateInstanceConfigMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, - com.google.longrunning.Operation> - getCreateInstanceConfigMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, + com.google.longrunning.Operation> getCreateInstanceConfigMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, com.google.longrunning.Operation> getCreateInstanceConfigMethod; if ((getCreateInstanceConfigMethod = InstanceAdminGrpc.getCreateInstanceConfigMethod) == null) { synchronized (InstanceAdminGrpc.class) { - if ((getCreateInstanceConfigMethod = InstanceAdminGrpc.getCreateInstanceConfigMethod) - == null) { - InstanceAdminGrpc.getCreateInstanceConfigMethod = - getCreateInstanceConfigMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateInstanceConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("CreateInstanceConfig")) - .build(); + if ((getCreateInstanceConfigMethod = InstanceAdminGrpc.getCreateInstanceConfigMethod) == null) { + InstanceAdminGrpc.getCreateInstanceConfigMethod = getCreateInstanceConfigMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("CreateInstanceConfig")) + .build(); } } } return getCreateInstanceConfigMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, - com.google.longrunning.Operation> - getUpdateInstanceConfigMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, + com.google.longrunning.Operation> getUpdateInstanceConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateInstanceConfig", requestType = com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, - com.google.longrunning.Operation> - getUpdateInstanceConfigMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, - com.google.longrunning.Operation> - getUpdateInstanceConfigMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, + com.google.longrunning.Operation> getUpdateInstanceConfigMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, com.google.longrunning.Operation> getUpdateInstanceConfigMethod; if ((getUpdateInstanceConfigMethod = InstanceAdminGrpc.getUpdateInstanceConfigMethod) == null) { synchronized (InstanceAdminGrpc.class) { - if ((getUpdateInstanceConfigMethod = InstanceAdminGrpc.getUpdateInstanceConfigMethod) - == null) { - InstanceAdminGrpc.getUpdateInstanceConfigMethod = - getUpdateInstanceConfigMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateInstanceConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("UpdateInstanceConfig")) - .build(); + if ((getUpdateInstanceConfigMethod = InstanceAdminGrpc.getUpdateInstanceConfigMethod) == null) { + InstanceAdminGrpc.getUpdateInstanceConfigMethod = getUpdateInstanceConfigMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("UpdateInstanceConfig")) + .build(); } } } return getUpdateInstanceConfigMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, - com.google.protobuf.Empty> - getDeleteInstanceConfigMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, + com.google.protobuf.Empty> getDeleteInstanceConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteInstanceConfig", requestType = com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, - com.google.protobuf.Empty> - getDeleteInstanceConfigMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, - com.google.protobuf.Empty> - getDeleteInstanceConfigMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, + com.google.protobuf.Empty> getDeleteInstanceConfigMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, com.google.protobuf.Empty> getDeleteInstanceConfigMethod; if ((getDeleteInstanceConfigMethod = InstanceAdminGrpc.getDeleteInstanceConfigMethod) == null) { synchronized (InstanceAdminGrpc.class) { - if ((getDeleteInstanceConfigMethod = InstanceAdminGrpc.getDeleteInstanceConfigMethod) - == null) { - InstanceAdminGrpc.getDeleteInstanceConfigMethod = - getDeleteInstanceConfigMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, - com.google.protobuf.Empty> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteInstanceConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("DeleteInstanceConfig")) - .build(); + if ((getDeleteInstanceConfigMethod = InstanceAdminGrpc.getDeleteInstanceConfigMethod) == null) { + InstanceAdminGrpc.getDeleteInstanceConfigMethod = getDeleteInstanceConfigMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, com.google.protobuf.Empty>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("DeleteInstanceConfig")) + .build(); } } } return getDeleteInstanceConfigMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> - getListInstanceConfigOperationsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> getListInstanceConfigOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListInstanceConfigOperations", requestType = com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.class, - responseType = - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.class, + responseType = com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> - getListInstanceConfigOperationsMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> - getListInstanceConfigOperationsMethod; - if ((getListInstanceConfigOperationsMethod = - InstanceAdminGrpc.getListInstanceConfigOperationsMethod) - == null) { + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> getListInstanceConfigOperationsMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> getListInstanceConfigOperationsMethod; + if ((getListInstanceConfigOperationsMethod = InstanceAdminGrpc.getListInstanceConfigOperationsMethod) == null) { synchronized (InstanceAdminGrpc.class) { - if ((getListInstanceConfigOperationsMethod = - InstanceAdminGrpc.getListInstanceConfigOperationsMethod) - == null) { - InstanceAdminGrpc.getListInstanceConfigOperationsMethod = - getListInstanceConfigOperationsMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListInstanceConfigOperations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1 - .ListInstanceConfigOperationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1 - .ListInstanceConfigOperationsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("ListInstanceConfigOperations")) - .build(); + if ((getListInstanceConfigOperationsMethod = InstanceAdminGrpc.getListInstanceConfigOperationsMethod) == null) { + InstanceAdminGrpc.getListInstanceConfigOperationsMethod = getListInstanceConfigOperationsMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstanceConfigOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("ListInstanceConfigOperations")) + .build(); } } } return getListInstanceConfigOperationsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstancesRequest, - com.google.spanner.admin.instance.v1.ListInstancesResponse> - getListInstancesMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstancesRequest, + com.google.spanner.admin.instance.v1.ListInstancesResponse> getListInstancesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListInstances", requestType = com.google.spanner.admin.instance.v1.ListInstancesRequest.class, responseType = com.google.spanner.admin.instance.v1.ListInstancesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstancesRequest, - com.google.spanner.admin.instance.v1.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.ListInstancesRequest, - com.google.spanner.admin.instance.v1.ListInstancesResponse> - getListInstancesMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstancesRequest, + com.google.spanner.admin.instance.v1.ListInstancesResponse> getListInstancesMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.ListInstancesRequest, com.google.spanner.admin.instance.v1.ListInstancesResponse> getListInstancesMethod; if ((getListInstancesMethod = InstanceAdminGrpc.getListInstancesMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getListInstancesMethod = InstanceAdminGrpc.getListInstancesMethod) == null) { - InstanceAdminGrpc.getListInstancesMethod = - getListInstancesMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.ListInstancesRequest, - com.google.spanner.admin.instance.v1.ListInstancesResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("ListInstances")) - .build(); + InstanceAdminGrpc.getListInstancesMethod = getListInstancesMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.ListInstancesRequest, com.google.spanner.admin.instance.v1.ListInstancesResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("ListInstances")) + .build(); } } } return getListInstancesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.GetInstanceRequest, - com.google.spanner.admin.instance.v1.Instance> - getGetInstanceMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.GetInstanceRequest, + com.google.spanner.admin.instance.v1.Instance> getGetInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetInstance", requestType = com.google.spanner.admin.instance.v1.GetInstanceRequest.class, responseType = com.google.spanner.admin.instance.v1.Instance.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.GetInstanceRequest, - com.google.spanner.admin.instance.v1.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.GetInstanceRequest, - com.google.spanner.admin.instance.v1.Instance> - getGetInstanceMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.GetInstanceRequest, + com.google.spanner.admin.instance.v1.Instance> getGetInstanceMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.GetInstanceRequest, com.google.spanner.admin.instance.v1.Instance> getGetInstanceMethod; if ((getGetInstanceMethod = InstanceAdminGrpc.getGetInstanceMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getGetInstanceMethod = InstanceAdminGrpc.getGetInstanceMethod) == null) { - InstanceAdminGrpc.getGetInstanceMethod = - getGetInstanceMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.GetInstanceRequest, - com.google.spanner.admin.instance.v1.Instance> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.GetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.Instance.getDefaultInstance())) - .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("GetInstance")) - .build(); + InstanceAdminGrpc.getGetInstanceMethod = getGetInstanceMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.GetInstanceRequest, com.google.spanner.admin.instance.v1.Instance>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.Instance.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("GetInstance")) + .build(); } } } return getGetInstanceMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.CreateInstanceRequest, + com.google.longrunning.Operation> getCreateInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateInstance", requestType = com.google.spanner.admin.instance.v1.CreateInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.CreateInstanceRequest, + com.google.longrunning.Operation> getCreateInstanceMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.CreateInstanceRequest, com.google.longrunning.Operation> getCreateInstanceMethod; if ((getCreateInstanceMethod = InstanceAdminGrpc.getCreateInstanceMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getCreateInstanceMethod = InstanceAdminGrpc.getCreateInstanceMethod) == null) { - InstanceAdminGrpc.getCreateInstanceMethod = - getCreateInstanceMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.CreateInstanceRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.CreateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("CreateInstance")) - .build(); + InstanceAdminGrpc.getCreateInstanceMethod = getCreateInstanceMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.CreateInstanceRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.CreateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("CreateInstance")) + .build(); } } } return getCreateInstanceMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.UpdateInstanceRequest, + com.google.longrunning.Operation> getUpdateInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", requestType = com.google.spanner.admin.instance.v1.UpdateInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.UpdateInstanceRequest, + com.google.longrunning.Operation> getUpdateInstanceMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.UpdateInstanceRequest, com.google.longrunning.Operation> getUpdateInstanceMethod; if ((getUpdateInstanceMethod = InstanceAdminGrpc.getUpdateInstanceMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getUpdateInstanceMethod = InstanceAdminGrpc.getUpdateInstanceMethod) == null) { - InstanceAdminGrpc.getUpdateInstanceMethod = - getUpdateInstanceMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.UpdateInstanceRequest, - com.google.longrunning.Operation> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.UpdateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("UpdateInstance")) - .build(); + InstanceAdminGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.UpdateInstanceRequest, com.google.longrunning.Operation>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("UpdateInstance")) + .build(); } } } return getUpdateInstanceMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.DeleteInstanceRequest, com.google.protobuf.Empty> - getDeleteInstanceMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.DeleteInstanceRequest, + com.google.protobuf.Empty> getDeleteInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", requestType = com.google.spanner.admin.instance.v1.DeleteInstanceRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.DeleteInstanceRequest, com.google.protobuf.Empty> - getDeleteInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.admin.instance.v1.DeleteInstanceRequest, com.google.protobuf.Empty> - getDeleteInstanceMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.DeleteInstanceRequest, + com.google.protobuf.Empty> getDeleteInstanceMethod() { + io.grpc.MethodDescriptor<com.google.spanner.admin.instance.v1.DeleteInstanceRequest, com.google.protobuf.Empty> getDeleteInstanceMethod; if ((getDeleteInstanceMethod = InstanceAdminGrpc.getDeleteInstanceMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getDeleteInstanceMethod = InstanceAdminGrpc.getDeleteInstanceMethod) == null) { - InstanceAdminGrpc.getDeleteInstanceMethod = - getDeleteInstanceMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.admin.instance.v1.DeleteInstanceRequest, - com.google.protobuf.Empty> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.admin.instance.v1.DeleteInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("DeleteInstance")) - .build(); + InstanceAdminGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = + io.grpc.MethodDescriptor.<com.google.spanner.admin.instance.v1.DeleteInstanceRequest, com.google.protobuf.Empty>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.admin.instance.v1.DeleteInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("DeleteInstance")) + .build(); } } } return getDeleteInstanceMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy> getSetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", requestType = com.google.iam.v1.SetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; + public static io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy> getSetIamPolicyMethod() { + io.grpc.MethodDescriptor<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> getSetIamPolicyMethod; if ((getSetIamPolicyMethod = InstanceAdminGrpc.getSetIamPolicyMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getSetIamPolicyMethod = InstanceAdminGrpc.getSetIamPolicyMethod) == null) { - InstanceAdminGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("SetIamPolicy")) - .build(); + InstanceAdminGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("SetIamPolicy")) + .build(); } } } return getSetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy> getGetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", requestType = com.google.iam.v1.GetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; + public static io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy> getGetIamPolicyMethod() { + io.grpc.MethodDescriptor<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> getGetIamPolicyMethod; if ((getGetIamPolicyMethod = InstanceAdminGrpc.getGetIamPolicyMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getGetIamPolicyMethod = InstanceAdminGrpc.getGetIamPolicyMethod) == null) { - InstanceAdminGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("GetIamPolicy")) - .build(); + InstanceAdminGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("GetIamPolicy")) + .build(); } } } return getGetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", requestType = com.google.iam.v1.TestIamPermissionsRequest.class, responseType = com.google.iam.v1.TestIamPermissionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; + public static io.grpc.MethodDescriptor<com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor<com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> getTestIamPermissionsMethod; if ((getTestIamPermissionsMethod = InstanceAdminGrpc.getTestIamPermissionsMethod) == null) { synchronized (InstanceAdminGrpc.class) { if ((getTestIamPermissionsMethod = InstanceAdminGrpc.getTestIamPermissionsMethod) == null) { - InstanceAdminGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - .<com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new InstanceAdminMethodDescriptorSupplier("TestIamPermissions")) - .build(); + InstanceAdminGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.<com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new InstanceAdminMethodDescriptorSupplier("TestIamPermissions")) + .build(); } } } return getTestIamPermissionsMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static InstanceAdminStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<InstanceAdminStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<InstanceAdminStub>() { - @java.lang.Override - public InstanceAdminStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InstanceAdminStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<InstanceAdminStub>() { + @java.lang.Override + public InstanceAdminStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InstanceAdminStub(channel, callOptions); + } + }; return InstanceAdminStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static InstanceAdminBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static InstanceAdminBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<InstanceAdminBlockingStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<InstanceAdminBlockingStub>() { - @java.lang.Override - public InstanceAdminBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InstanceAdminBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<InstanceAdminBlockingStub>() { + @java.lang.Override + public InstanceAdminBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InstanceAdminBlockingStub(channel, callOptions); + } + }; return InstanceAdminBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static InstanceAdminFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static InstanceAdminFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<InstanceAdminFutureStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<InstanceAdminFutureStub>() { - @java.lang.Override - public InstanceAdminFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InstanceAdminFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<InstanceAdminFutureStub>() { + @java.lang.Override + public InstanceAdminFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InstanceAdminFutureStub(channel, callOptions); + } + }; return InstanceAdminFutureStub.newStub(factory, channel); } /** - * - * * <pre> * Cloud Spanner Instance Admin API * The Cloud Spanner Instance Admin API can be used to create, delete, @@ -762,39 +538,26 @@ public InstanceAdminFutureStub newStub( public interface AsyncService { /** - * - * * <pre> * Lists the supported instance configurations for a given project. * </pre> */ - default void listInstanceConfigs( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstanceConfigsMethod(), responseObserver); + default void listInstanceConfigs(com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstanceConfigsMethod(), responseObserver); } /** - * - * * <pre> * Gets information about a particular instance configuration. * </pre> */ - default void getInstanceConfig( - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.InstanceConfig> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceConfigMethod(), responseObserver); + default void getInstanceConfig(com.google.spanner.admin.instance.v1.GetInstanceConfigRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.InstanceConfig> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceConfigMethod(), responseObserver); } /** - * - * * <pre> * Creates an instance config and begins preparing it to be used. The * returned [long-running operation][google.longrunning.Operation] @@ -831,16 +594,12 @@ default void getInstanceConfig( * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. * </pre> */ - default void createInstanceConfig( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest request, + default void createInstanceConfig(com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceConfigMethod(), responseObserver); } /** - * - * * <pre> * Updates an instance config. The returned * [long-running operation][google.longrunning.Operation] can be used to track @@ -879,16 +638,12 @@ default void createInstanceConfig( * the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name]. * </pre> */ - default void updateInstanceConfig( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest request, + default void updateInstanceConfig(com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceConfigMethod(), responseObserver); } /** - * - * * <pre> * Deletes the instance config. Deletion is only allowed when no * instances are using the configuration. If any instances are using @@ -898,16 +653,12 @@ default void updateInstanceConfig( * the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name]. * </pre> */ - default void deleteInstanceConfig( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest request, + default void deleteInstanceConfig(com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceConfigMethod(), responseObserver); } /** - * - * * <pre> * Lists the user-managed instance config [long-running * operations][google.longrunning.Operation] in the given project. An instance @@ -922,48 +673,32 @@ default void deleteInstanceConfig( * from the most recently started operation. * </pre> */ - default void listInstanceConfigOperations( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest request, - io.grpc.stub.StreamObserver< - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstanceConfigOperationsMethod(), responseObserver); + default void listInstanceConfigOperations(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstanceConfigOperationsMethod(), responseObserver); } /** - * - * * <pre> * Lists all instances in the given project. * </pre> */ - default void listInstances( - com.google.spanner.admin.instance.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstancesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); + default void listInstances(com.google.spanner.admin.instance.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstancesResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); } /** - * - * * <pre> * Gets information about a particular instance. * </pre> */ - default void getInstance( - com.google.spanner.admin.instance.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.Instance> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); + default void getInstance(com.google.spanner.admin.instance.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.Instance> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); } /** - * - * * <pre> * Creates an instance and begins preparing it to begin serving. The * returned [long-running operation][google.longrunning.Operation] @@ -994,16 +729,12 @@ default void getInstance( * [Instance][google.spanner.admin.instance.v1.Instance], if successful. * </pre> */ - default void createInstance( - com.google.spanner.admin.instance.v1.CreateInstanceRequest request, + default void createInstance(com.google.spanner.admin.instance.v1.CreateInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); } /** - * - * * <pre> * Updates an instance, and begins allocating or releasing resources * as requested. The returned [long-running @@ -1039,16 +770,12 @@ default void createInstance( * the resource [name][google.spanner.admin.instance.v1.Instance.name]. * </pre> */ - default void updateInstance( - com.google.spanner.admin.instance.v1.UpdateInstanceRequest request, + default void updateInstance(com.google.spanner.admin.instance.v1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); } /** - * - * * <pre> * Deletes an instance. * Immediately upon completion of the request: @@ -1059,16 +786,12 @@ default void updateInstance( * is permanently deleted. * </pre> */ - default void deleteInstance( - com.google.spanner.admin.instance.v1.DeleteInstanceRequest request, + default void deleteInstance(com.google.spanner.admin.instance.v1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); } /** - * - * * <pre> * Sets the access control policy on an instance resource. Replaces any * existing policy. @@ -1076,16 +799,12 @@ default void deleteInstance( * [resource][google.iam.v1.SetIamPolicyRequest.resource]. * </pre> */ - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** - * - * * <pre> * Gets the access control policy for an instance resource. Returns an empty * policy if an instance exists but does not have a policy set. @@ -1093,16 +812,12 @@ default void setIamPolicy( * [resource][google.iam.v1.GetIamPolicyRequest.resource]. * </pre> */ - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * * <pre> * Returns permissions that the caller has on the specified instance resource. * Attempting this RPC on a non-existent Cloud Spanner instance resource will @@ -1111,18 +826,14 @@ default void getIamPolicy( * empty set of permissions. * </pre> */ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service InstanceAdmin. - * * <pre> * Cloud Spanner Instance Admin API * The Cloud Spanner Instance Admin API can be used to create, delete, @@ -1144,18 +855,16 @@ default void testIamPermissions( * databases in that instance, and their performance may suffer. * </pre> */ - public abstract static class InstanceAdminImplBase + public static abstract class InstanceAdminImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return InstanceAdminGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service InstanceAdmin. - * * <pre> * Cloud Spanner Instance Admin API * The Cloud Spanner Instance Admin API can be used to create, delete, @@ -1179,53 +888,40 @@ public final io.grpc.ServerServiceDefinition bindService() { */ public static final class InstanceAdminStub extends io.grpc.stub.AbstractAsyncStub<InstanceAdminStub> { - private InstanceAdminStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private InstanceAdminStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected InstanceAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected InstanceAdminStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new InstanceAdminStub(channel, callOptions); } /** - * - * * <pre> * Lists the supported instance configurations for a given project. * </pre> */ - public void listInstanceConfigs( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> - responseObserver) { + public void listInstanceConfigs(com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstanceConfigsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListInstanceConfigsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Gets information about a particular instance configuration. * </pre> */ - public void getInstanceConfig( - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.InstanceConfig> - responseObserver) { + public void getInstanceConfig(com.google.spanner.admin.instance.v1.GetInstanceConfigRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.InstanceConfig> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetInstanceConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Creates an instance config and begins preparing it to be used. The * returned [long-running operation][google.longrunning.Operation] @@ -1262,18 +958,13 @@ public void getInstanceConfig( * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. * </pre> */ - public void createInstanceConfig( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest request, + public void createInstanceConfig(com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateInstanceConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Updates an instance config. The returned * [long-running operation][google.longrunning.Operation] can be used to track @@ -1312,18 +1003,13 @@ public void createInstanceConfig( * the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name]. * </pre> */ - public void updateInstanceConfig( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest request, + public void updateInstanceConfig(com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateInstanceConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Deletes the instance config. Deletion is only allowed when no * instances are using the configuration. If any instances are using @@ -1333,18 +1019,13 @@ public void updateInstanceConfig( * the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name]. * </pre> */ - public void deleteInstanceConfig( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest request, + public void deleteInstanceConfig(com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteInstanceConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Lists the user-managed instance config [long-running * operations][google.longrunning.Operation] in the given project. An instance @@ -1359,54 +1040,35 @@ public void deleteInstanceConfig( * from the most recently started operation. * </pre> */ - public void listInstanceConfigOperations( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest request, - io.grpc.stub.StreamObserver< - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> - responseObserver) { + public void listInstanceConfigOperations(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstanceConfigOperationsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListInstanceConfigOperationsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Lists all instances in the given project. * </pre> */ - public void listInstances( - com.google.spanner.admin.instance.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstancesResponse> - responseObserver) { + public void listInstances(com.google.spanner.admin.instance.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstancesResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Gets information about a particular instance. * </pre> */ - public void getInstance( - com.google.spanner.admin.instance.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.Instance> - responseObserver) { + public void getInstance(com.google.spanner.admin.instance.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.Instance> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Creates an instance and begins preparing it to begin serving. The * returned [long-running operation][google.longrunning.Operation] @@ -1437,18 +1099,13 @@ public void getInstance( * [Instance][google.spanner.admin.instance.v1.Instance], if successful. * </pre> */ - public void createInstance( - com.google.spanner.admin.instance.v1.CreateInstanceRequest request, + public void createInstance(com.google.spanner.admin.instance.v1.CreateInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Updates an instance, and begins allocating or releasing resources * as requested. The returned [long-running @@ -1484,18 +1141,13 @@ public void createInstance( * the resource [name][google.spanner.admin.instance.v1.Instance.name]. * </pre> */ - public void updateInstance( - com.google.spanner.admin.instance.v1.UpdateInstanceRequest request, + public void updateInstance(com.google.spanner.admin.instance.v1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Deletes an instance. * Immediately upon completion of the request: @@ -1506,18 +1158,13 @@ public void updateInstance( * is permanently deleted. * </pre> */ - public void deleteInstance( - com.google.spanner.admin.instance.v1.DeleteInstanceRequest request, + public void deleteInstance(com.google.spanner.admin.instance.v1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Sets the access control policy on an instance resource. Replaces any * existing policy. @@ -1525,18 +1172,13 @@ public void deleteInstance( * [resource][google.iam.v1.SetIamPolicyRequest.resource]. * </pre> */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Gets the access control policy for an instance resource. Returns an empty * policy if an instance exists but does not have a policy set. @@ -1544,18 +1186,13 @@ public void setIamPolicy( * [resource][google.iam.v1.GetIamPolicyRequest.resource]. * </pre> */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Returns permissions that the caller has on the specified instance resource. * Attempting this RPC on a non-existent Cloud Spanner instance resource will @@ -1564,20 +1201,15 @@ public void getIamPolicy( * empty set of permissions. * </pre> */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> - responseObserver) { + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service InstanceAdmin. - * * <pre> * Cloud Spanner Instance Admin API * The Cloud Spanner Instance Admin API can be used to create, delete, @@ -1601,7 +1233,8 @@ public void testIamPermissions( */ public static final class InstanceAdminBlockingStub extends io.grpc.stub.AbstractBlockingStub<InstanceAdminBlockingStub> { - private InstanceAdminBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private InstanceAdminBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1612,34 +1245,26 @@ protected InstanceAdminBlockingStub build( } /** - * - * * <pre> * Lists the supported instance configurations for a given project. * </pre> */ - public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse listInstanceConfigs( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest request) { + public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse listInstanceConfigs(com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstanceConfigsMethod(), getCallOptions(), request); } /** - * - * * <pre> * Gets information about a particular instance configuration. * </pre> */ - public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig( - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest request) { + public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig(com.google.spanner.admin.instance.v1.GetInstanceConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceConfigMethod(), getCallOptions(), request); } /** - * - * * <pre> * Creates an instance config and begins preparing it to be used. The * returned [long-running operation][google.longrunning.Operation] @@ -1676,15 +1301,12 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig( * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. * </pre> */ - public com.google.longrunning.Operation createInstanceConfig( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest request) { + public com.google.longrunning.Operation createInstanceConfig(com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateInstanceConfigMethod(), getCallOptions(), request); } /** - * - * * <pre> * Updates an instance config. The returned * [long-running operation][google.longrunning.Operation] can be used to track @@ -1723,15 +1345,12 @@ public com.google.longrunning.Operation createInstanceConfig( * the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name]. * </pre> */ - public com.google.longrunning.Operation updateInstanceConfig( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest request) { + public com.google.longrunning.Operation updateInstanceConfig(com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateInstanceConfigMethod(), getCallOptions(), request); } /** - * - * * <pre> * Deletes the instance config. Deletion is only allowed when no * instances are using the configuration. If any instances are using @@ -1741,15 +1360,12 @@ public com.google.longrunning.Operation updateInstanceConfig( * the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name]. * </pre> */ - public com.google.protobuf.Empty deleteInstanceConfig( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest request) { + public com.google.protobuf.Empty deleteInstanceConfig(com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceConfigMethod(), getCallOptions(), request); } /** - * - * * <pre> * Lists the user-managed instance config [long-running * operations][google.longrunning.Operation] in the given project. An instance @@ -1764,42 +1380,32 @@ public com.google.protobuf.Empty deleteInstanceConfig( * from the most recently started operation. * </pre> */ - public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - listInstanceConfigOperations( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest request) { + public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse listInstanceConfigOperations(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstanceConfigOperationsMethod(), getCallOptions(), request); } /** - * - * * <pre> * Lists all instances in the given project. * </pre> */ - public com.google.spanner.admin.instance.v1.ListInstancesResponse listInstances( - com.google.spanner.admin.instance.v1.ListInstancesRequest request) { + public com.google.spanner.admin.instance.v1.ListInstancesResponse listInstances(com.google.spanner.admin.instance.v1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } /** - * - * * <pre> * Gets information about a particular instance. * </pre> */ - public com.google.spanner.admin.instance.v1.Instance getInstance( - com.google.spanner.admin.instance.v1.GetInstanceRequest request) { + public com.google.spanner.admin.instance.v1.Instance getInstance(com.google.spanner.admin.instance.v1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } /** - * - * * <pre> * Creates an instance and begins preparing it to begin serving. The * returned [long-running operation][google.longrunning.Operation] @@ -1830,15 +1436,12 @@ public com.google.spanner.admin.instance.v1.Instance getInstance( * [Instance][google.spanner.admin.instance.v1.Instance], if successful. * </pre> */ - public com.google.longrunning.Operation createInstance( - com.google.spanner.admin.instance.v1.CreateInstanceRequest request) { + public com.google.longrunning.Operation createInstance(com.google.spanner.admin.instance.v1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } /** - * - * * <pre> * Updates an instance, and begins allocating or releasing resources * as requested. The returned [long-running @@ -1874,15 +1477,12 @@ public com.google.longrunning.Operation createInstance( * the resource [name][google.spanner.admin.instance.v1.Instance.name]. * </pre> */ - public com.google.longrunning.Operation updateInstance( - com.google.spanner.admin.instance.v1.UpdateInstanceRequest request) { + public com.google.longrunning.Operation updateInstance(com.google.spanner.admin.instance.v1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } /** - * - * * <pre> * Deletes an instance. * Immediately upon completion of the request: @@ -1893,15 +1493,12 @@ public com.google.longrunning.Operation updateInstance( * is permanently deleted. * </pre> */ - public com.google.protobuf.Empty deleteInstance( - com.google.spanner.admin.instance.v1.DeleteInstanceRequest request) { + public com.google.protobuf.Empty deleteInstance(com.google.spanner.admin.instance.v1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } /** - * - * * <pre> * Sets the access control policy on an instance resource. Replaces any * existing policy. @@ -1915,8 +1512,6 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque } /** - * - * * <pre> * Gets the access control policy for an instance resource. Returns an empty * policy if an instance exists but does not have a policy set. @@ -1930,8 +1525,6 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque } /** - * - * * <pre> * Returns permissions that the caller has on the specified instance resource. * Attempting this RPC on a non-existent Cloud Spanner instance resource will @@ -1940,8 +1533,7 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * empty set of permissions. * </pre> */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1949,7 +1541,6 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service InstanceAdmin. - * * <pre> * Cloud Spanner Instance Admin API * The Cloud Spanner Instance Admin API can be used to create, delete, @@ -1973,7 +1564,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( */ public static final class InstanceAdminFutureStub extends io.grpc.stub.AbstractFutureStub<InstanceAdminFutureStub> { - private InstanceAdminFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private InstanceAdminFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1984,37 +1576,28 @@ protected InstanceAdminFutureStub build( } /** - * - * * <pre> * Lists the supported instance configurations for a given project. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> - listInstanceConfigs( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse> listInstanceConfigs( + com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstanceConfigsMethod(), getCallOptions()), request); } /** - * - * * <pre> * Gets information about a particular instance configuration. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.instance.v1.InstanceConfig> - getInstanceConfig(com.google.spanner.admin.instance.v1.GetInstanceConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.instance.v1.InstanceConfig> getInstanceConfig( + com.google.spanner.admin.instance.v1.GetInstanceConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceConfigMethod(), getCallOptions()), request); } /** - * - * * <pre> * Creates an instance config and begins preparing it to be used. The * returned [long-running operation][google.longrunning.Operation] @@ -2051,16 +1634,13 @@ protected InstanceAdminFutureStub build( * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - createInstanceConfig( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createInstanceConfig( + com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateInstanceConfigMethod(), getCallOptions()), request); } /** - * - * * <pre> * Updates an instance config. The returned * [long-running operation][google.longrunning.Operation] can be used to track @@ -2099,16 +1679,13 @@ protected InstanceAdminFutureStub build( * the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - updateInstanceConfig( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> updateInstanceConfig( + com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateInstanceConfigMethod(), getCallOptions()), request); } /** - * - * * <pre> * Deletes the instance config. Deletion is only allowed when no * instances are using the configuration. If any instances are using @@ -2118,16 +1695,13 @@ protected InstanceAdminFutureStub build( * the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> - deleteInstanceConfig( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteInstanceConfig( + com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceConfigMethod(), getCallOptions()), request); } /** - * - * * <pre> * Lists the user-managed instance config [long-running * operations][google.longrunning.Operation] in the given project. An instance @@ -2142,45 +1716,35 @@ protected InstanceAdminFutureStub build( * from the most recently started operation. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> - listInstanceConfigOperations( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse> listInstanceConfigOperations( + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstanceConfigOperationsMethod(), getCallOptions()), request); } /** - * - * * <pre> * Lists all instances in the given project. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.instance.v1.ListInstancesResponse> - listInstances(com.google.spanner.admin.instance.v1.ListInstancesRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.instance.v1.ListInstancesResponse> listInstances( + com.google.spanner.admin.instance.v1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } /** - * - * * <pre> * Gets information about a particular instance. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.admin.instance.v1.Instance> - getInstance(com.google.spanner.admin.instance.v1.GetInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.admin.instance.v1.Instance> getInstance( + com.google.spanner.admin.instance.v1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } /** - * - * * <pre> * Creates an instance and begins preparing it to begin serving. The * returned [long-running operation][google.longrunning.Operation] @@ -2211,15 +1775,13 @@ protected InstanceAdminFutureStub build( * [Instance][google.spanner.admin.instance.v1.Instance], if successful. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - createInstance(com.google.spanner.admin.instance.v1.CreateInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createInstance( + com.google.spanner.admin.instance.v1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); } /** - * - * * <pre> * Updates an instance, and begins allocating or releasing resources * as requested. The returned [long-running @@ -2255,15 +1817,13 @@ protected InstanceAdminFutureStub build( * the resource [name][google.spanner.admin.instance.v1.Instance.name]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> - updateInstance(com.google.spanner.admin.instance.v1.UpdateInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> updateInstance( + com.google.spanner.admin.instance.v1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); } /** - * - * * <pre> * Deletes an instance. * Immediately upon completion of the request: @@ -2274,15 +1834,13 @@ protected InstanceAdminFutureStub build( * is permanently deleted. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> - deleteInstance(com.google.spanner.admin.instance.v1.DeleteInstanceRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteInstance( + com.google.spanner.admin.instance.v1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); } /** - * - * * <pre> * Sets the access control policy on an instance resource. Replaces any * existing policy. @@ -2290,15 +1848,13 @@ protected InstanceAdminFutureStub build( * [resource][google.iam.v1.SetIamPolicyRequest.resource]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** - * - * * <pre> * Gets the access control policy for an instance resource. Returns an empty * policy if an instance exists but does not have a policy set. @@ -2306,15 +1862,13 @@ protected InstanceAdminFutureStub build( * [resource][google.iam.v1.GetIamPolicyRequest.resource]. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** - * - * * <pre> * Returns permissions that the caller has on the specified instance resource. * Attempting this RPC on a non-existent Cloud Spanner instance resource will @@ -2323,9 +1877,8 @@ protected InstanceAdminFutureStub build( * empty set of permissions. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } @@ -2346,11 +1899,11 @@ protected InstanceAdminFutureStub build( private static final int METHODID_GET_IAM_POLICY = 12; private static final int METHODID_TEST_IAM_PERMISSIONS = 13; - private static final class MethodHandlers<Req, Resp> - implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { + private static final class MethodHandlers<Req, Resp> implements + io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final AsyncService serviceImpl; private final int methodId; @@ -2364,83 +1917,60 @@ private static final class MethodHandlers<Req, Resp> public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_LIST_INSTANCE_CONFIGS: - serviceImpl.listInstanceConfigs( - (com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse>) - responseObserver); + serviceImpl.listInstanceConfigs((com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse>) responseObserver); break; case METHODID_GET_INSTANCE_CONFIG: - serviceImpl.getInstanceConfig( - (com.google.spanner.admin.instance.v1.GetInstanceConfigRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.InstanceConfig>) - responseObserver); + serviceImpl.getInstanceConfig((com.google.spanner.admin.instance.v1.GetInstanceConfigRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.InstanceConfig>) responseObserver); break; case METHODID_CREATE_INSTANCE_CONFIG: - serviceImpl.createInstanceConfig( - (com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest) request, + serviceImpl.createInstanceConfig((com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_UPDATE_INSTANCE_CONFIG: - serviceImpl.updateInstanceConfig( - (com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) request, + serviceImpl.updateInstanceConfig((com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_DELETE_INSTANCE_CONFIG: - serviceImpl.deleteInstanceConfig( - (com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) request, + serviceImpl.deleteInstanceConfig((com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) request, (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver); break; case METHODID_LIST_INSTANCE_CONFIG_OPERATIONS: - serviceImpl.listInstanceConfigOperations( - (com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse>) - responseObserver); + serviceImpl.listInstanceConfigOperations((com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse>) responseObserver); break; case METHODID_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.spanner.admin.instance.v1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.spanner.admin.instance.v1.ListInstancesResponse>) - responseObserver); + serviceImpl.listInstances((com.google.spanner.admin.instance.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.ListInstancesResponse>) responseObserver); break; case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.spanner.admin.instance.v1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.Instance>) - responseObserver); + serviceImpl.getInstance((com.google.spanner.admin.instance.v1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.admin.instance.v1.Instance>) responseObserver); break; case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance( - (com.google.spanner.admin.instance.v1.CreateInstanceRequest) request, + serviceImpl.createInstance((com.google.spanner.admin.instance.v1.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.spanner.admin.instance.v1.UpdateInstanceRequest) request, + serviceImpl.updateInstance((com.google.spanner.admin.instance.v1.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver); break; case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.spanner.admin.instance.v1.DeleteInstanceRequest) request, + serviceImpl.deleteInstance((com.google.spanner.admin.instance.v1.DeleteInstanceRequest) request, (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver); break; case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, (io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>) responseObserver); break; case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, (io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>) responseObserver); break; case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>) - responseObserver); + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>) responseObserver); break; default: throw new AssertionError(); @@ -2461,98 +1991,108 @@ public io.grpc.stub.StreamObserver<Req> invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListInstanceConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse>( - service, METHODID_LIST_INSTANCE_CONFIGS))) + getListInstanceConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest, + com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse>( + service, METHODID_LIST_INSTANCE_CONFIGS))) .addMethod( - getGetInstanceConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, - com.google.spanner.admin.instance.v1.InstanceConfig>( - service, METHODID_GET_INSTANCE_CONFIG))) + getGetInstanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.GetInstanceConfigRequest, + com.google.spanner.admin.instance.v1.InstanceConfig>( + service, METHODID_GET_INSTANCE_CONFIG))) .addMethod( - getCreateInstanceConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_INSTANCE_CONFIG))) + getCreateInstanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_INSTANCE_CONFIG))) .addMethod( - getUpdateInstanceConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_INSTANCE_CONFIG))) + getUpdateInstanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_INSTANCE_CONFIG))) .addMethod( - getDeleteInstanceConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_INSTANCE_CONFIG))) + getDeleteInstanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_INSTANCE_CONFIG))) .addMethod( - getListInstanceConfigOperationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse>( - service, METHODID_LIST_INSTANCE_CONFIG_OPERATIONS))) + getListInstanceConfigOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest, + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse>( + service, METHODID_LIST_INSTANCE_CONFIG_OPERATIONS))) .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.ListInstancesRequest, - com.google.spanner.admin.instance.v1.ListInstancesResponse>( - service, METHODID_LIST_INSTANCES))) + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.ListInstancesRequest, + com.google.spanner.admin.instance.v1.ListInstancesResponse>( + service, METHODID_LIST_INSTANCES))) .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.GetInstanceRequest, - com.google.spanner.admin.instance.v1.Instance>(service, METHODID_GET_INSTANCE))) + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.GetInstanceRequest, + com.google.spanner.admin.instance.v1.Instance>( + service, METHODID_GET_INSTANCE))) .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.CreateInstanceRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_INSTANCE))) + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.CreateInstanceRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_INSTANCE))) .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.UpdateInstanceRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_INSTANCE))) + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_INSTANCE))) .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.admin.instance.v1.DeleteInstanceRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_INSTANCE))) + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.admin.instance.v1.DeleteInstanceRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_INSTANCE))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers<com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - service, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_SET_IAM_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers<com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - service, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_GET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .build(); } - private abstract static class InstanceAdminBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class InstanceAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { InstanceAdminBaseDescriptorSupplier() {} @java.lang.Override @@ -2594,25 +2134,23 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (InstanceAdminGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new InstanceAdminFileDescriptorSupplier()) - .addMethod(getListInstanceConfigsMethod()) - .addMethod(getGetInstanceConfigMethod()) - .addMethod(getCreateInstanceConfigMethod()) - .addMethod(getUpdateInstanceConfigMethod()) - .addMethod(getDeleteInstanceConfigMethod()) - .addMethod(getListInstanceConfigOperationsMethod()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new InstanceAdminFileDescriptorSupplier()) + .addMethod(getListInstanceConfigsMethod()) + .addMethod(getGetInstanceConfigMethod()) + .addMethod(getCreateInstanceConfigMethod()) + .addMethod(getUpdateInstanceConfigMethod()) + .addMethod(getDeleteInstanceConfigMethod()) + .addMethod(getListInstanceConfigOperationsMethod()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); } } } diff --git a/grpc-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerExecutorProxyGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerExecutorProxyGrpc.java similarity index 57% rename from grpc-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerExecutorProxyGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerExecutorProxyGrpc.java index 141c4afeb41..eb2bb50cf64 100644 --- a/grpc-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerExecutorProxyGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerExecutorProxyGrpc.java @@ -1,25 +1,8 @@ -/* - * 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.spanner.executor.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * * <pre> * Service that executes SpannerActions asynchronously. * </pre> @@ -32,103 +15,85 @@ public final class SpannerExecutorProxyGrpc { private SpannerExecutorProxyGrpc() {} - public static final java.lang.String SERVICE_NAME = - "google.spanner.executor.v1.SpannerExecutorProxy"; + 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; + 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) { + 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 - .<com.google.spanner.executor.v1.SpannerAsyncActionRequest, - com.google.spanner.executor.v1.SpannerAsyncActionResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteActionAsync")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.executor.v1.SpannerAsyncActionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.executor.v1.SpannerAsyncActionResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SpannerExecutorProxyMethodDescriptorSupplier("ExecuteActionAsync")) - .build(); + if ((getExecuteActionAsyncMethod = SpannerExecutorProxyGrpc.getExecuteActionAsyncMethod) == null) { + SpannerExecutorProxyGrpc.getExecuteActionAsyncMethod = getExecuteActionAsyncMethod = + io.grpc.MethodDescriptor.<com.google.spanner.executor.v1.SpannerAsyncActionRequest, com.google.spanner.executor.v1.SpannerAsyncActionResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteActionAsync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.executor.v1.SpannerAsyncActionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.executor.v1.SpannerAsyncActionResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerExecutorProxyMethodDescriptorSupplier("ExecuteActionAsync")) + .build(); } } } return getExecuteActionAsyncMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static SpannerExecutorProxyStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyStub>() { - @java.lang.Override - public SpannerExecutorProxyStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpannerExecutorProxyStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyStub>() { + @java.lang.Override + public SpannerExecutorProxyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpannerExecutorProxyStub(channel, callOptions); + } + }; return SpannerExecutorProxyStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static SpannerExecutorProxyBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static SpannerExecutorProxyBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyBlockingStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyBlockingStub>() { - @java.lang.Override - public SpannerExecutorProxyBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpannerExecutorProxyBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyBlockingStub>() { + @java.lang.Override + public SpannerExecutorProxyBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpannerExecutorProxyBlockingStub(channel, callOptions); + } + }; return SpannerExecutorProxyBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SpannerExecutorProxyFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SpannerExecutorProxyFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyFutureStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyFutureStub>() { - @java.lang.Override - public SpannerExecutorProxyFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpannerExecutorProxyFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<SpannerExecutorProxyFutureStub>() { + @java.lang.Override + public SpannerExecutorProxyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpannerExecutorProxyFutureStub(channel, callOptions); + } + }; return SpannerExecutorProxyFutureStub.newStub(factory, channel); } /** - * - * * <pre> * Service that executes SpannerActions asynchronously. * </pre> @@ -136,8 +101,6 @@ public SpannerExecutorProxyFutureStub newStub( public interface AsyncService { /** - * - * * <pre> * ExecuteActionAsync is a streaming call that starts executing a new Spanner * action. @@ -148,41 +111,36 @@ public interface AsyncService { * parallel. * </pre> */ - default io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionRequest> - executeActionAsync( - io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionResponse> - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getExecuteActionAsyncMethod(), responseObserver); + default io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionRequest> executeActionAsync( + io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionResponse> responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getExecuteActionAsyncMethod(), responseObserver); } } /** * Base class for the server implementation of the service SpannerExecutorProxy. - * * <pre> * Service that executes SpannerActions asynchronously. * </pre> */ - public abstract static class SpannerExecutorProxyImplBase + public static abstract class SpannerExecutorProxyImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @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. - * * <pre> * Service that executes SpannerActions asynchronously. * </pre> */ public static final class SpannerExecutorProxyStub extends io.grpc.stub.AbstractAsyncStub<SpannerExecutorProxyStub> { - private SpannerExecutorProxyStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SpannerExecutorProxyStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -193,8 +151,6 @@ protected SpannerExecutorProxyStub build( } /** - * - * * <pre> * ExecuteActionAsync is a streaming call that starts executing a new Spanner * action. @@ -205,10 +161,8 @@ protected SpannerExecutorProxyStub build( * parallel. * </pre> */ - public io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionRequest> - executeActionAsync( - io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionResponse> - responseObserver) { + public io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionRequest> executeActionAsync( + io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionResponse> responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getExecuteActionAsyncMethod(), getCallOptions()), responseObserver); } @@ -216,7 +170,6 @@ protected SpannerExecutorProxyStub build( /** * A stub to allow clients to do synchronous rpc calls to service SpannerExecutorProxy. - * * <pre> * Service that executes SpannerActions asynchronously. * </pre> @@ -237,7 +190,6 @@ protected SpannerExecutorProxyBlockingStub build( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service SpannerExecutorProxy. - * * <pre> * Service that executes SpannerActions asynchronously. * </pre> @@ -258,11 +210,11 @@ protected SpannerExecutorProxyFutureStub build( private static final int METHODID_EXECUTE_ACTION_ASYNC = 0; - private static final class MethodHandlers<Req, Resp> - implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { + private static final class MethodHandlers<Req, Resp> implements + io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final AsyncService serviceImpl; private final int methodId; @@ -286,11 +238,8 @@ public io.grpc.stub.StreamObserver<Req> invoke( io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_EXECUTE_ACTION_ASYNC: - return (io.grpc.stub.StreamObserver<Req>) - serviceImpl.executeActionAsync( - (io.grpc.stub.StreamObserver< - com.google.spanner.executor.v1.SpannerAsyncActionResponse>) - responseObserver); + return (io.grpc.stub.StreamObserver<Req>) serviceImpl.executeActionAsync( + (io.grpc.stub.StreamObserver<com.google.spanner.executor.v1.SpannerAsyncActionResponse>) responseObserver); default: throw new AssertionError(); } @@ -300,18 +249,17 @@ public io.grpc.stub.StreamObserver<Req> invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getExecuteActionAsyncMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.spanner.executor.v1.SpannerAsyncActionRequest, - com.google.spanner.executor.v1.SpannerAsyncActionResponse>( - service, METHODID_EXECUTE_ACTION_ASYNC))) + getExecuteActionAsyncMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.spanner.executor.v1.SpannerAsyncActionRequest, + com.google.spanner.executor.v1.SpannerAsyncActionResponse>( + service, METHODID_EXECUTE_ACTION_ASYNC))) .build(); } - private abstract static class SpannerExecutorProxyBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SpannerExecutorProxyBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SpannerExecutorProxyBaseDescriptorSupplier() {} @java.lang.Override @@ -353,12 +301,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SpannerExecutorProxyGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpannerExecutorProxyFileDescriptorSupplier()) - .addMethod(getExecuteActionAsyncMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpannerExecutorProxyFileDescriptorSupplier()) + .addMethod(getExecuteActionAsyncMethod()) + .build(); } } } diff --git a/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java similarity index 60% rename from grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java index d8e401457af..846f1c54be5 100644 --- a/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerGrpc.java @@ -1,25 +1,8 @@ -/* - * 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.spanner.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * * <pre> * Cloud Spanner API * The Cloud Spanner API can be used to manage sessions and execute @@ -37,705 +20,547 @@ private SpannerGrpc() {} public static final java.lang.String SERVICE_NAME = "google.spanner.v1.Spanner"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.CreateSessionRequest, com.google.spanner.v1.Session> - getCreateSessionMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.CreateSessionRequest, + com.google.spanner.v1.Session> getCreateSessionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateSession", requestType = com.google.spanner.v1.CreateSessionRequest.class, responseType = com.google.spanner.v1.Session.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.CreateSessionRequest, com.google.spanner.v1.Session> - getCreateSessionMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.CreateSessionRequest, com.google.spanner.v1.Session> - getCreateSessionMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.CreateSessionRequest, + com.google.spanner.v1.Session> getCreateSessionMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.CreateSessionRequest, com.google.spanner.v1.Session> getCreateSessionMethod; if ((getCreateSessionMethod = SpannerGrpc.getCreateSessionMethod) == null) { synchronized (SpannerGrpc.class) { if ((getCreateSessionMethod = SpannerGrpc.getCreateSessionMethod) == null) { - SpannerGrpc.getCreateSessionMethod = - getCreateSessionMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.CreateSessionRequest, com.google.spanner.v1.Session> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSession")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.CreateSessionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.Session.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("CreateSession")) - .build(); + SpannerGrpc.getCreateSessionMethod = getCreateSessionMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.CreateSessionRequest, com.google.spanner.v1.Session>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.CreateSessionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.Session.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("CreateSession")) + .build(); } } } return getCreateSessionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.BatchCreateSessionsRequest, - com.google.spanner.v1.BatchCreateSessionsResponse> - getBatchCreateSessionsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.BatchCreateSessionsRequest, + com.google.spanner.v1.BatchCreateSessionsResponse> getBatchCreateSessionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchCreateSessions", requestType = com.google.spanner.v1.BatchCreateSessionsRequest.class, responseType = com.google.spanner.v1.BatchCreateSessionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.BatchCreateSessionsRequest, - com.google.spanner.v1.BatchCreateSessionsResponse> - getBatchCreateSessionsMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.BatchCreateSessionsRequest, - com.google.spanner.v1.BatchCreateSessionsResponse> - getBatchCreateSessionsMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.BatchCreateSessionsRequest, + com.google.spanner.v1.BatchCreateSessionsResponse> getBatchCreateSessionsMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.BatchCreateSessionsRequest, com.google.spanner.v1.BatchCreateSessionsResponse> getBatchCreateSessionsMethod; if ((getBatchCreateSessionsMethod = SpannerGrpc.getBatchCreateSessionsMethod) == null) { synchronized (SpannerGrpc.class) { if ((getBatchCreateSessionsMethod = SpannerGrpc.getBatchCreateSessionsMethod) == null) { - SpannerGrpc.getBatchCreateSessionsMethod = - getBatchCreateSessionsMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.BatchCreateSessionsRequest, - com.google.spanner.v1.BatchCreateSessionsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchCreateSessions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.BatchCreateSessionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.BatchCreateSessionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SpannerMethodDescriptorSupplier("BatchCreateSessions")) - .build(); + SpannerGrpc.getBatchCreateSessionsMethod = getBatchCreateSessionsMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.BatchCreateSessionsRequest, com.google.spanner.v1.BatchCreateSessionsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateSessions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.BatchCreateSessionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.BatchCreateSessionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("BatchCreateSessions")) + .build(); } } } return getBatchCreateSessionsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.GetSessionRequest, com.google.spanner.v1.Session> - getGetSessionMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.GetSessionRequest, + com.google.spanner.v1.Session> getGetSessionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSession", requestType = com.google.spanner.v1.GetSessionRequest.class, responseType = com.google.spanner.v1.Session.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.GetSessionRequest, com.google.spanner.v1.Session> - getGetSessionMethod() { - io.grpc.MethodDescriptor<com.google.spanner.v1.GetSessionRequest, com.google.spanner.v1.Session> - getGetSessionMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.GetSessionRequest, + com.google.spanner.v1.Session> getGetSessionMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.GetSessionRequest, com.google.spanner.v1.Session> getGetSessionMethod; if ((getGetSessionMethod = SpannerGrpc.getGetSessionMethod) == null) { synchronized (SpannerGrpc.class) { if ((getGetSessionMethod = SpannerGrpc.getGetSessionMethod) == null) { - SpannerGrpc.getGetSessionMethod = - getGetSessionMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.GetSessionRequest, com.google.spanner.v1.Session> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSession")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.GetSessionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.Session.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("GetSession")) - .build(); + SpannerGrpc.getGetSessionMethod = getGetSessionMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.GetSessionRequest, com.google.spanner.v1.Session>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.GetSessionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.Session.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("GetSession")) + .build(); } } } return getGetSessionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.ListSessionsRequest, com.google.spanner.v1.ListSessionsResponse> - getListSessionsMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.ListSessionsRequest, + com.google.spanner.v1.ListSessionsResponse> getListSessionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSessions", requestType = com.google.spanner.v1.ListSessionsRequest.class, responseType = com.google.spanner.v1.ListSessionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.ListSessionsRequest, com.google.spanner.v1.ListSessionsResponse> - getListSessionsMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.ListSessionsRequest, com.google.spanner.v1.ListSessionsResponse> - getListSessionsMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.ListSessionsRequest, + com.google.spanner.v1.ListSessionsResponse> getListSessionsMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.ListSessionsRequest, com.google.spanner.v1.ListSessionsResponse> getListSessionsMethod; if ((getListSessionsMethod = SpannerGrpc.getListSessionsMethod) == null) { synchronized (SpannerGrpc.class) { if ((getListSessionsMethod = SpannerGrpc.getListSessionsMethod) == null) { - SpannerGrpc.getListSessionsMethod = - getListSessionsMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.ListSessionsRequest, - com.google.spanner.v1.ListSessionsResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSessions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ListSessionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ListSessionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ListSessions")) - .build(); + SpannerGrpc.getListSessionsMethod = getListSessionsMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.ListSessionsRequest, com.google.spanner.v1.ListSessionsResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSessions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ListSessionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ListSessionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ListSessions")) + .build(); } } } return getListSessionsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.DeleteSessionRequest, com.google.protobuf.Empty> - getDeleteSessionMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.DeleteSessionRequest, + com.google.protobuf.Empty> getDeleteSessionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteSession", requestType = com.google.spanner.v1.DeleteSessionRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.DeleteSessionRequest, com.google.protobuf.Empty> - getDeleteSessionMethod() { - io.grpc.MethodDescriptor<com.google.spanner.v1.DeleteSessionRequest, com.google.protobuf.Empty> - getDeleteSessionMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.DeleteSessionRequest, + com.google.protobuf.Empty> getDeleteSessionMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.DeleteSessionRequest, com.google.protobuf.Empty> getDeleteSessionMethod; if ((getDeleteSessionMethod = SpannerGrpc.getDeleteSessionMethod) == null) { synchronized (SpannerGrpc.class) { if ((getDeleteSessionMethod = SpannerGrpc.getDeleteSessionMethod) == null) { - SpannerGrpc.getDeleteSessionMethod = - getDeleteSessionMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.DeleteSessionRequest, com.google.protobuf.Empty> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSession")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.DeleteSessionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("DeleteSession")) - .build(); + SpannerGrpc.getDeleteSessionMethod = getDeleteSessionMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.DeleteSessionRequest, com.google.protobuf.Empty>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.DeleteSessionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("DeleteSession")) + .build(); } } } return getDeleteSessionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.ResultSet> - getExecuteSqlMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest, + com.google.spanner.v1.ResultSet> getExecuteSqlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExecuteSql", requestType = com.google.spanner.v1.ExecuteSqlRequest.class, responseType = com.google.spanner.v1.ResultSet.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.ResultSet> - getExecuteSqlMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.ResultSet> - getExecuteSqlMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest, + com.google.spanner.v1.ResultSet> getExecuteSqlMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.ResultSet> getExecuteSqlMethod; if ((getExecuteSqlMethod = SpannerGrpc.getExecuteSqlMethod) == null) { synchronized (SpannerGrpc.class) { if ((getExecuteSqlMethod = SpannerGrpc.getExecuteSqlMethod) == null) { - SpannerGrpc.getExecuteSqlMethod = - getExecuteSqlMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.ResultSet> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteSql")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ExecuteSqlRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ResultSet.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ExecuteSql")) - .build(); + SpannerGrpc.getExecuteSqlMethod = getExecuteSqlMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.ResultSet>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteSql")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ExecuteSqlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ResultSet.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ExecuteSql")) + .build(); } } } return getExecuteSqlMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.PartialResultSet> - getExecuteStreamingSqlMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest, + com.google.spanner.v1.PartialResultSet> getExecuteStreamingSqlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExecuteStreamingSql", requestType = com.google.spanner.v1.ExecuteSqlRequest.class, responseType = com.google.spanner.v1.PartialResultSet.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.PartialResultSet> - getExecuteStreamingSqlMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.PartialResultSet> - getExecuteStreamingSqlMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest, + com.google.spanner.v1.PartialResultSet> getExecuteStreamingSqlMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.PartialResultSet> getExecuteStreamingSqlMethod; if ((getExecuteStreamingSqlMethod = SpannerGrpc.getExecuteStreamingSqlMethod) == null) { synchronized (SpannerGrpc.class) { if ((getExecuteStreamingSqlMethod = SpannerGrpc.getExecuteStreamingSqlMethod) == null) { - SpannerGrpc.getExecuteStreamingSqlMethod = - getExecuteStreamingSqlMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.ExecuteSqlRequest, - com.google.spanner.v1.PartialResultSet> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ExecuteStreamingSql")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ExecuteSqlRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.PartialResultSet.getDefaultInstance())) - .setSchemaDescriptor( - new SpannerMethodDescriptorSupplier("ExecuteStreamingSql")) - .build(); + SpannerGrpc.getExecuteStreamingSqlMethod = getExecuteStreamingSqlMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.PartialResultSet>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteStreamingSql")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ExecuteSqlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.PartialResultSet.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ExecuteStreamingSql")) + .build(); } } } return getExecuteStreamingSqlMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteBatchDmlRequest, - com.google.spanner.v1.ExecuteBatchDmlResponse> - getExecuteBatchDmlMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse> getExecuteBatchDmlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExecuteBatchDml", requestType = com.google.spanner.v1.ExecuteBatchDmlRequest.class, responseType = com.google.spanner.v1.ExecuteBatchDmlResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteBatchDmlRequest, - com.google.spanner.v1.ExecuteBatchDmlResponse> - getExecuteBatchDmlMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.ExecuteBatchDmlRequest, - com.google.spanner.v1.ExecuteBatchDmlResponse> - getExecuteBatchDmlMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse> getExecuteBatchDmlMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.ExecuteBatchDmlRequest, com.google.spanner.v1.ExecuteBatchDmlResponse> getExecuteBatchDmlMethod; if ((getExecuteBatchDmlMethod = SpannerGrpc.getExecuteBatchDmlMethod) == null) { synchronized (SpannerGrpc.class) { if ((getExecuteBatchDmlMethod = SpannerGrpc.getExecuteBatchDmlMethod) == null) { - SpannerGrpc.getExecuteBatchDmlMethod = - getExecuteBatchDmlMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.ExecuteBatchDmlRequest, - com.google.spanner.v1.ExecuteBatchDmlResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteBatchDml")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ExecuteBatchDmlRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ExecuteBatchDmlResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ExecuteBatchDml")) - .build(); + SpannerGrpc.getExecuteBatchDmlMethod = getExecuteBatchDmlMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.ExecuteBatchDmlRequest, com.google.spanner.v1.ExecuteBatchDmlResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteBatchDml")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ExecuteBatchDmlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ExecuteBatchDmlResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("ExecuteBatchDml")) + .build(); } } } return getExecuteBatchDmlMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.ReadRequest, com.google.spanner.v1.ResultSet> - getReadMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest, + com.google.spanner.v1.ResultSet> getReadMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Read", requestType = com.google.spanner.v1.ReadRequest.class, responseType = com.google.spanner.v1.ResultSet.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.ReadRequest, com.google.spanner.v1.ResultSet> - getReadMethod() { - io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest, com.google.spanner.v1.ResultSet> - getReadMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest, + com.google.spanner.v1.ResultSet> getReadMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest, com.google.spanner.v1.ResultSet> getReadMethod; if ((getReadMethod = SpannerGrpc.getReadMethod) == null) { synchronized (SpannerGrpc.class) { if ((getReadMethod = SpannerGrpc.getReadMethod) == null) { - SpannerGrpc.getReadMethod = - getReadMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.ReadRequest, com.google.spanner.v1.ResultSet> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Read")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ReadRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ResultSet.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("Read")) - .build(); + SpannerGrpc.getReadMethod = getReadMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.ReadRequest, com.google.spanner.v1.ResultSet>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Read")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ReadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ResultSet.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("Read")) + .build(); } } } return getReadMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.ReadRequest, com.google.spanner.v1.PartialResultSet> - getStreamingReadMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest, + com.google.spanner.v1.PartialResultSet> getStreamingReadMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "StreamingRead", requestType = com.google.spanner.v1.ReadRequest.class, responseType = com.google.spanner.v1.PartialResultSet.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.ReadRequest, com.google.spanner.v1.PartialResultSet> - getStreamingReadMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.ReadRequest, com.google.spanner.v1.PartialResultSet> - getStreamingReadMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest, + com.google.spanner.v1.PartialResultSet> getStreamingReadMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.ReadRequest, com.google.spanner.v1.PartialResultSet> getStreamingReadMethod; if ((getStreamingReadMethod = SpannerGrpc.getStreamingReadMethod) == null) { synchronized (SpannerGrpc.class) { if ((getStreamingReadMethod = SpannerGrpc.getStreamingReadMethod) == null) { - SpannerGrpc.getStreamingReadMethod = - getStreamingReadMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.ReadRequest, com.google.spanner.v1.PartialResultSet> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRead")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.ReadRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.PartialResultSet.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("StreamingRead")) - .build(); + SpannerGrpc.getStreamingReadMethod = getStreamingReadMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.ReadRequest, com.google.spanner.v1.PartialResultSet>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRead")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.ReadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.PartialResultSet.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("StreamingRead")) + .build(); } } } return getStreamingReadMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.BeginTransactionRequest, com.google.spanner.v1.Transaction> - getBeginTransactionMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.BeginTransactionRequest, + com.google.spanner.v1.Transaction> getBeginTransactionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BeginTransaction", requestType = com.google.spanner.v1.BeginTransactionRequest.class, responseType = com.google.spanner.v1.Transaction.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.BeginTransactionRequest, com.google.spanner.v1.Transaction> - getBeginTransactionMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.BeginTransactionRequest, com.google.spanner.v1.Transaction> - getBeginTransactionMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.BeginTransactionRequest, + com.google.spanner.v1.Transaction> getBeginTransactionMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.BeginTransactionRequest, com.google.spanner.v1.Transaction> getBeginTransactionMethod; if ((getBeginTransactionMethod = SpannerGrpc.getBeginTransactionMethod) == null) { synchronized (SpannerGrpc.class) { if ((getBeginTransactionMethod = SpannerGrpc.getBeginTransactionMethod) == null) { - SpannerGrpc.getBeginTransactionMethod = - getBeginTransactionMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.BeginTransactionRequest, - com.google.spanner.v1.Transaction> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BeginTransaction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.BeginTransactionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.Transaction.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("BeginTransaction")) - .build(); + SpannerGrpc.getBeginTransactionMethod = getBeginTransactionMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.BeginTransactionRequest, com.google.spanner.v1.Transaction>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BeginTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.BeginTransactionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.Transaction.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("BeginTransaction")) + .build(); } } } return getBeginTransactionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.CommitRequest, com.google.spanner.v1.CommitResponse> - getCommitMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.CommitRequest, + com.google.spanner.v1.CommitResponse> getCommitMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Commit", requestType = com.google.spanner.v1.CommitRequest.class, responseType = com.google.spanner.v1.CommitResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.CommitRequest, com.google.spanner.v1.CommitResponse> - getCommitMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.CommitRequest, com.google.spanner.v1.CommitResponse> - getCommitMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.CommitRequest, + com.google.spanner.v1.CommitResponse> getCommitMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.CommitRequest, com.google.spanner.v1.CommitResponse> getCommitMethod; if ((getCommitMethod = SpannerGrpc.getCommitMethod) == null) { synchronized (SpannerGrpc.class) { if ((getCommitMethod = SpannerGrpc.getCommitMethod) == null) { - SpannerGrpc.getCommitMethod = - getCommitMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.CommitRequest, com.google.spanner.v1.CommitResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Commit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.CommitRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.CommitResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("Commit")) - .build(); + SpannerGrpc.getCommitMethod = getCommitMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.CommitRequest, com.google.spanner.v1.CommitResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Commit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.CommitRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.CommitResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("Commit")) + .build(); } } } return getCommitMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.RollbackRequest, com.google.protobuf.Empty> - getRollbackMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.RollbackRequest, + com.google.protobuf.Empty> getRollbackMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Rollback", requestType = com.google.spanner.v1.RollbackRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.RollbackRequest, com.google.protobuf.Empty> - getRollbackMethod() { - io.grpc.MethodDescriptor<com.google.spanner.v1.RollbackRequest, com.google.protobuf.Empty> - getRollbackMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.RollbackRequest, + com.google.protobuf.Empty> getRollbackMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.RollbackRequest, com.google.protobuf.Empty> getRollbackMethod; if ((getRollbackMethod = SpannerGrpc.getRollbackMethod) == null) { synchronized (SpannerGrpc.class) { if ((getRollbackMethod = SpannerGrpc.getRollbackMethod) == null) { - SpannerGrpc.getRollbackMethod = - getRollbackMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.RollbackRequest, com.google.protobuf.Empty> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Rollback")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.RollbackRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("Rollback")) - .build(); + SpannerGrpc.getRollbackMethod = getRollbackMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.RollbackRequest, com.google.protobuf.Empty>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Rollback")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.RollbackRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("Rollback")) + .build(); } } } return getRollbackMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.PartitionQueryRequest, com.google.spanner.v1.PartitionResponse> - getPartitionQueryMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.PartitionQueryRequest, + com.google.spanner.v1.PartitionResponse> getPartitionQueryMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "PartitionQuery", requestType = com.google.spanner.v1.PartitionQueryRequest.class, responseType = com.google.spanner.v1.PartitionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.PartitionQueryRequest, com.google.spanner.v1.PartitionResponse> - getPartitionQueryMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.PartitionQueryRequest, com.google.spanner.v1.PartitionResponse> - getPartitionQueryMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.PartitionQueryRequest, + com.google.spanner.v1.PartitionResponse> getPartitionQueryMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.PartitionQueryRequest, com.google.spanner.v1.PartitionResponse> getPartitionQueryMethod; if ((getPartitionQueryMethod = SpannerGrpc.getPartitionQueryMethod) == null) { synchronized (SpannerGrpc.class) { if ((getPartitionQueryMethod = SpannerGrpc.getPartitionQueryMethod) == null) { - SpannerGrpc.getPartitionQueryMethod = - getPartitionQueryMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.PartitionQueryRequest, - com.google.spanner.v1.PartitionResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PartitionQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.PartitionQueryRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.PartitionResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("PartitionQuery")) - .build(); + SpannerGrpc.getPartitionQueryMethod = getPartitionQueryMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.PartitionQueryRequest, com.google.spanner.v1.PartitionResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PartitionQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.PartitionQueryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.PartitionResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("PartitionQuery")) + .build(); } } } return getPartitionQueryMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.PartitionReadRequest, com.google.spanner.v1.PartitionResponse> - getPartitionReadMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.PartitionReadRequest, + com.google.spanner.v1.PartitionResponse> getPartitionReadMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "PartitionRead", requestType = com.google.spanner.v1.PartitionReadRequest.class, responseType = com.google.spanner.v1.PartitionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.PartitionReadRequest, com.google.spanner.v1.PartitionResponse> - getPartitionReadMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.PartitionReadRequest, com.google.spanner.v1.PartitionResponse> - getPartitionReadMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.PartitionReadRequest, + com.google.spanner.v1.PartitionResponse> getPartitionReadMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.PartitionReadRequest, com.google.spanner.v1.PartitionResponse> getPartitionReadMethod; if ((getPartitionReadMethod = SpannerGrpc.getPartitionReadMethod) == null) { synchronized (SpannerGrpc.class) { if ((getPartitionReadMethod = SpannerGrpc.getPartitionReadMethod) == null) { - SpannerGrpc.getPartitionReadMethod = - getPartitionReadMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.PartitionReadRequest, - com.google.spanner.v1.PartitionResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PartitionRead")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.PartitionReadRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.PartitionResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("PartitionRead")) - .build(); + SpannerGrpc.getPartitionReadMethod = getPartitionReadMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.PartitionReadRequest, com.google.spanner.v1.PartitionResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PartitionRead")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.PartitionReadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.PartitionResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("PartitionRead")) + .build(); } } } return getPartitionReadMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.spanner.v1.BatchWriteRequest, com.google.spanner.v1.BatchWriteResponse> - getBatchWriteMethod; + private static volatile io.grpc.MethodDescriptor<com.google.spanner.v1.BatchWriteRequest, + com.google.spanner.v1.BatchWriteResponse> getBatchWriteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchWrite", requestType = com.google.spanner.v1.BatchWriteRequest.class, responseType = com.google.spanner.v1.BatchWriteResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.spanner.v1.BatchWriteRequest, com.google.spanner.v1.BatchWriteResponse> - getBatchWriteMethod() { - io.grpc.MethodDescriptor< - com.google.spanner.v1.BatchWriteRequest, com.google.spanner.v1.BatchWriteResponse> - getBatchWriteMethod; + public static io.grpc.MethodDescriptor<com.google.spanner.v1.BatchWriteRequest, + com.google.spanner.v1.BatchWriteResponse> getBatchWriteMethod() { + io.grpc.MethodDescriptor<com.google.spanner.v1.BatchWriteRequest, com.google.spanner.v1.BatchWriteResponse> getBatchWriteMethod; if ((getBatchWriteMethod = SpannerGrpc.getBatchWriteMethod) == null) { synchronized (SpannerGrpc.class) { if ((getBatchWriteMethod = SpannerGrpc.getBatchWriteMethod) == null) { - SpannerGrpc.getBatchWriteMethod = - getBatchWriteMethod = - io.grpc.MethodDescriptor - .<com.google.spanner.v1.BatchWriteRequest, - com.google.spanner.v1.BatchWriteResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchWrite")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.BatchWriteRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.spanner.v1.BatchWriteResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("BatchWrite")) - .build(); + SpannerGrpc.getBatchWriteMethod = getBatchWriteMethod = + io.grpc.MethodDescriptor.<com.google.spanner.v1.BatchWriteRequest, com.google.spanner.v1.BatchWriteResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchWrite")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.BatchWriteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.spanner.v1.BatchWriteResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpannerMethodDescriptorSupplier("BatchWrite")) + .build(); } } } return getBatchWriteMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static SpannerStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<SpannerStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<SpannerStub>() { - @java.lang.Override - public SpannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpannerStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<SpannerStub>() { + @java.lang.Override + public SpannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpannerStub(channel, callOptions); + } + }; return SpannerStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static SpannerBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static SpannerBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<SpannerBlockingStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<SpannerBlockingStub>() { - @java.lang.Override - public SpannerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpannerBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<SpannerBlockingStub>() { + @java.lang.Override + public SpannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpannerBlockingStub(channel, callOptions); + } + }; return SpannerBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SpannerFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SpannerFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<SpannerFutureStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<SpannerFutureStub>() { - @java.lang.Override - public SpannerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpannerFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<SpannerFutureStub>() { + @java.lang.Override + public SpannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpannerFutureStub(channel, callOptions); + } + }; return SpannerFutureStub.newStub(factory, channel); } /** - * - * * <pre> * Cloud Spanner API * The Cloud Spanner API can be used to manage sessions and execute @@ -745,8 +570,6 @@ public SpannerFutureStub newStub( public interface AsyncService { /** - * - * * <pre> * Creates a new session. A session can be used to perform * transactions that read and/or modify data in a Cloud Spanner database. @@ -766,78 +589,58 @@ public interface AsyncService { * periodically, e.g., `"SELECT 1"`. * </pre> */ - default void createSession( - com.google.spanner.v1.CreateSessionRequest request, + default void createSession(com.google.spanner.v1.CreateSessionRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSessionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSessionMethod(), responseObserver); } /** - * - * * <pre> * Creates multiple new sessions. * This API can be used to initialize a session cache on the clients. * See https://goo.gl/TgSFN2 for best practices on session cache management. * </pre> */ - default void batchCreateSessions( - com.google.spanner.v1.BatchCreateSessionsRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchCreateSessionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCreateSessionsMethod(), responseObserver); + default void batchCreateSessions(com.google.spanner.v1.BatchCreateSessionsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchCreateSessionsResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCreateSessionsMethod(), responseObserver); } /** - * - * * <pre> * Gets a session. Returns `NOT_FOUND` if the session does not exist. * This is mainly useful for determining whether a session is still * alive. * </pre> */ - default void getSession( - com.google.spanner.v1.GetSessionRequest request, + default void getSession(com.google.spanner.v1.GetSessionRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSessionMethod(), responseObserver); } /** - * - * * <pre> * Lists all sessions in a given database. * </pre> */ - default void listSessions( - com.google.spanner.v1.ListSessionsRequest request, + default void listSessions(com.google.spanner.v1.ListSessionsRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.ListSessionsResponse> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSessionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSessionsMethod(), responseObserver); } /** - * - * * <pre> * Ends a session, releasing server resources associated with it. This will * asynchronously trigger cancellation of any operations that are running with * this session. * </pre> */ - default void deleteSession( - com.google.spanner.v1.DeleteSessionRequest request, + default void deleteSession(com.google.spanner.v1.DeleteSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSessionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSessionMethod(), responseObserver); } /** - * - * * <pre> * Executes an SQL statement, returning all results in a single reply. This * method cannot be used to return a result set larger than 10 MiB; @@ -852,15 +655,12 @@ default void deleteSession( * instead. * </pre> */ - default void executeSql( - com.google.spanner.v1.ExecuteSqlRequest request, + default void executeSql(com.google.spanner.v1.ExecuteSqlRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteSqlMethod(), responseObserver); } /** - * - * * <pre> * Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the * result set as a stream. Unlike @@ -869,16 +669,12 @@ default void executeSql( * result set can exceed 100 MiB, and no column value can exceed 10 MiB. * </pre> */ - default void executeStreamingSql( - com.google.spanner.v1.ExecuteSqlRequest request, + default void executeStreamingSql(com.google.spanner.v1.ExecuteSqlRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExecuteStreamingSqlMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteStreamingSqlMethod(), responseObserver); } /** - * - * * <pre> * Executes a batch of SQL DML statements. This method allows many statements * to be run with lower latency than submitting them sequentially with @@ -892,17 +688,12 @@ default void executeStreamingSql( * are not executed. * </pre> */ - default void executeBatchDml( - com.google.spanner.v1.ExecuteBatchDmlRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExecuteBatchDmlMethod(), responseObserver); + default void executeBatchDml(com.google.spanner.v1.ExecuteBatchDmlRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteBatchDmlMethod(), responseObserver); } /** - * - * * <pre> * Reads rows from the database using key lookups and scans, as a * simple key/value style alternative to @@ -918,15 +709,12 @@ default void executeBatchDml( * [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead. * </pre> */ - default void read( - com.google.spanner.v1.ReadRequest request, + default void read(com.google.spanner.v1.ReadRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadMethod(), responseObserver); } /** - * - * * <pre> * Like [Read][google.spanner.v1.Spanner.Read], except returns the result set * as a stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no @@ -935,16 +723,12 @@ default void read( * 10 MiB. * </pre> */ - default void streamingRead( - com.google.spanner.v1.ReadRequest request, + default void streamingRead(com.google.spanner.v1.ReadRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStreamingReadMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamingReadMethod(), responseObserver); } /** - * - * * <pre> * Begins a new transaction. This step can often be skipped: * [Read][google.spanner.v1.Spanner.Read], @@ -953,16 +737,12 @@ default void streamingRead( * side-effect. * </pre> */ - default void beginTransaction( - com.google.spanner.v1.BeginTransactionRequest request, + default void beginTransaction(com.google.spanner.v1.BeginTransactionRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.Transaction> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBeginTransactionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBeginTransactionMethod(), responseObserver); } /** - * - * * <pre> * Commits a transaction. The request includes the mutations to be * applied to rows in the database. @@ -978,15 +758,12 @@ default void beginTransaction( * state of things as they are now. * </pre> */ - default void commit( - com.google.spanner.v1.CommitRequest request, + default void commit(com.google.spanner.v1.CommitRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.CommitResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitMethod(), responseObserver); } /** - * - * * <pre> * Rolls back a transaction, releasing any locks it holds. It is a good * idea to call this for any transaction that includes one or more @@ -998,15 +775,12 @@ default void commit( * found. `Rollback` never returns `ABORTED`. * </pre> */ - default void rollback( - com.google.spanner.v1.RollbackRequest request, + default void rollback(com.google.spanner.v1.RollbackRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRollbackMethod(), responseObserver); } /** - * - * * <pre> * Creates a set of partition tokens that can be used to execute a query * operation in parallel. Each of the returned partition tokens can be used @@ -1021,16 +795,12 @@ default void rollback( * the whole operation must be restarted from the beginning. * </pre> */ - default void partitionQuery( - com.google.spanner.v1.PartitionQueryRequest request, + default void partitionQuery(com.google.spanner.v1.PartitionQueryRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.PartitionResponse> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPartitionQueryMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPartitionQueryMethod(), responseObserver); } /** - * - * * <pre> * Creates a set of partition tokens that can be used to execute a read * operation in parallel. Each of the returned partition tokens can be used @@ -1047,16 +817,12 @@ default void partitionQuery( * the whole operation must be restarted from the beginning. * </pre> */ - default void partitionRead( - com.google.spanner.v1.PartitionReadRequest request, + default void partitionRead(com.google.spanner.v1.PartitionReadRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.PartitionResponse> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPartitionReadMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPartitionReadMethod(), responseObserver); } /** - * - * * <pre> * Batches the supplied mutation groups in a collection of efficient * transactions. All mutations in a group are committed atomically. However, @@ -1074,8 +840,7 @@ default void partitionRead( * idempotent to avoid this issue. * </pre> */ - default void batchWrite( - com.google.spanner.v1.BatchWriteRequest request, + default void batchWrite(com.google.spanner.v1.BatchWriteRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchWriteResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchWriteMethod(), responseObserver); } @@ -1083,43 +848,42 @@ default void batchWrite( /** * Base class for the server implementation of the service Spanner. - * * <pre> * Cloud Spanner API * The Cloud Spanner API can be used to manage sessions and execute * transactions on data stored in Cloud Spanner databases. * </pre> */ - public abstract static class SpannerImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class SpannerImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SpannerGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Spanner. - * * <pre> * Cloud Spanner API * The Cloud Spanner API can be used to manage sessions and execute * transactions on data stored in Cloud Spanner databases. * </pre> */ - public static final class SpannerStub extends io.grpc.stub.AbstractAsyncStub<SpannerStub> { - private SpannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SpannerStub + extends io.grpc.stub.AbstractAsyncStub<SpannerStub> { + private SpannerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SpannerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected SpannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SpannerStub(channel, callOptions); } /** - * - * * <pre> * Creates a new session. A session can be used to perform * transactions that read and/or modify data in a Cloud Spanner database. @@ -1139,87 +903,63 @@ protected SpannerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpt * periodically, e.g., `"SELECT 1"`. * </pre> */ - public void createSession( - com.google.spanner.v1.CreateSessionRequest request, + public void createSession(com.google.spanner.v1.CreateSessionRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSessionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Creates multiple new sessions. * This API can be used to initialize a session cache on the clients. * See https://goo.gl/TgSFN2 for best practices on session cache management. * </pre> */ - public void batchCreateSessions( - com.google.spanner.v1.BatchCreateSessionsRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchCreateSessionsResponse> - responseObserver) { + public void batchCreateSessions(com.google.spanner.v1.BatchCreateSessionsRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchCreateSessionsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateSessionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchCreateSessionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Gets a session. Returns `NOT_FOUND` if the session does not exist. * This is mainly useful for determining whether a session is still * alive. * </pre> */ - public void getSession( - com.google.spanner.v1.GetSessionRequest request, + public void getSession(com.google.spanner.v1.GetSessionRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.Session> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSessionMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Lists all sessions in a given database. * </pre> */ - public void listSessions( - com.google.spanner.v1.ListSessionsRequest request, + public void listSessions(com.google.spanner.v1.ListSessionsRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.ListSessionsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSessionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListSessionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Ends a session, releasing server resources associated with it. This will * asynchronously trigger cancellation of any operations that are running with * this session. * </pre> */ - public void deleteSession( - com.google.spanner.v1.DeleteSessionRequest request, + public void deleteSession(com.google.spanner.v1.DeleteSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Executes an SQL statement, returning all results in a single reply. This * method cannot be used to return a result set larger than 10 MiB; @@ -1234,16 +974,13 @@ public void deleteSession( * instead. * </pre> */ - public void executeSql( - com.google.spanner.v1.ExecuteSqlRequest request, + public void executeSql(com.google.spanner.v1.ExecuteSqlRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExecuteSqlMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the * result set as a stream. Unlike @@ -1252,18 +989,13 @@ public void executeSql( * result set can exceed 100 MiB, and no column value can exceed 10 MiB. * </pre> */ - public void executeStreamingSql( - com.google.spanner.v1.ExecuteSqlRequest request, + public void executeStreamingSql(com.google.spanner.v1.ExecuteSqlRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getExecuteStreamingSqlMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getExecuteStreamingSqlMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Executes a batch of SQL DML statements. This method allows many statements * to be run with lower latency than submitting them sequentially with @@ -1277,19 +1009,13 @@ public void executeStreamingSql( * are not executed. * </pre> */ - public void executeBatchDml( - com.google.spanner.v1.ExecuteBatchDmlRequest request, - io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse> - responseObserver) { + public void executeBatchDml(com.google.spanner.v1.ExecuteBatchDmlRequest request, + io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExecuteBatchDmlMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getExecuteBatchDmlMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Reads rows from the database using key lookups and scans, as a * simple key/value style alternative to @@ -1305,16 +1031,13 @@ public void executeBatchDml( * [StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead. * </pre> */ - public void read( - com.google.spanner.v1.ReadRequest request, + public void read(com.google.spanner.v1.ReadRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReadMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Like [Read][google.spanner.v1.Spanner.Read], except returns the result set * as a stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no @@ -1323,18 +1046,13 @@ public void read( * 10 MiB. * </pre> */ - public void streamingRead( - com.google.spanner.v1.ReadRequest request, + public void streamingRead(com.google.spanner.v1.ReadRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet> responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getStreamingReadMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getStreamingReadMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Begins a new transaction. This step can often be skipped: * [Read][google.spanner.v1.Spanner.Read], @@ -1343,18 +1061,13 @@ public void streamingRead( * side-effect. * </pre> */ - public void beginTransaction( - com.google.spanner.v1.BeginTransactionRequest request, + public void beginTransaction(com.google.spanner.v1.BeginTransactionRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.Transaction> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBeginTransactionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBeginTransactionMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Commits a transaction. The request includes the mutations to be * applied to rows in the database. @@ -1370,16 +1083,13 @@ public void beginTransaction( * state of things as they are now. * </pre> */ - public void commit( - com.google.spanner.v1.CommitRequest request, + public void commit(com.google.spanner.v1.CommitRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.CommitResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCommitMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Rolls back a transaction, releasing any locks it holds. It is a good * idea to call this for any transaction that includes one or more @@ -1391,16 +1101,13 @@ public void commit( * found. `Rollback` never returns `ABORTED`. * </pre> */ - public void rollback( - com.google.spanner.v1.RollbackRequest request, + public void rollback(com.google.spanner.v1.RollbackRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRollbackMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Creates a set of partition tokens that can be used to execute a query * operation in parallel. Each of the returned partition tokens can be used @@ -1415,18 +1122,13 @@ public void rollback( * the whole operation must be restarted from the beginning. * </pre> */ - public void partitionQuery( - com.google.spanner.v1.PartitionQueryRequest request, + public void partitionQuery(com.google.spanner.v1.PartitionQueryRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.PartitionResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPartitionQueryMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPartitionQueryMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Creates a set of partition tokens that can be used to execute a read * operation in parallel. Each of the returned partition tokens can be used @@ -1443,18 +1145,13 @@ public void partitionQuery( * the whole operation must be restarted from the beginning. * </pre> */ - public void partitionRead( - com.google.spanner.v1.PartitionReadRequest request, + public void partitionRead(com.google.spanner.v1.PartitionReadRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.PartitionResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPartitionReadMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPartitionReadMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Batches the supplied mutation groups in a collection of efficient * transactions. All mutations in a group are committed atomically. However, @@ -1472,8 +1169,7 @@ public void partitionRead( * idempotent to avoid this issue. * </pre> */ - public void batchWrite( - com.google.spanner.v1.BatchWriteRequest request, + public void batchWrite(com.google.spanner.v1.BatchWriteRequest request, io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchWriteResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getBatchWriteMethod(), getCallOptions()), request, responseObserver); @@ -1482,7 +1178,6 @@ public void batchWrite( /** * A stub to allow clients to do synchronous rpc calls to service Spanner. - * * <pre> * Cloud Spanner API * The Cloud Spanner API can be used to manage sessions and execute @@ -1491,18 +1186,18 @@ public void batchWrite( */ public static final class SpannerBlockingStub extends io.grpc.stub.AbstractBlockingStub<SpannerBlockingStub> { - private SpannerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SpannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SpannerBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected SpannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SpannerBlockingStub(channel, callOptions); } /** - * - * * <pre> * Creates a new session. A session can be used to perform * transactions that read and/or modify data in a Cloud Spanner database. @@ -1522,73 +1217,58 @@ protected SpannerBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions * periodically, e.g., `"SELECT 1"`. * </pre> */ - public com.google.spanner.v1.Session createSession( - com.google.spanner.v1.CreateSessionRequest request) { + public com.google.spanner.v1.Session createSession(com.google.spanner.v1.CreateSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSessionMethod(), getCallOptions(), request); } /** - * - * * <pre> * Creates multiple new sessions. * This API can be used to initialize a session cache on the clients. * See https://goo.gl/TgSFN2 for best practices on session cache management. * </pre> */ - public com.google.spanner.v1.BatchCreateSessionsResponse batchCreateSessions( - com.google.spanner.v1.BatchCreateSessionsRequest request) { + public com.google.spanner.v1.BatchCreateSessionsResponse batchCreateSessions(com.google.spanner.v1.BatchCreateSessionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateSessionsMethod(), getCallOptions(), request); } /** - * - * * <pre> * Gets a session. Returns `NOT_FOUND` if the session does not exist. * This is mainly useful for determining whether a session is still * alive. * </pre> */ - public com.google.spanner.v1.Session getSession( - com.google.spanner.v1.GetSessionRequest request) { + public com.google.spanner.v1.Session getSession(com.google.spanner.v1.GetSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSessionMethod(), getCallOptions(), request); } /** - * - * * <pre> * Lists all sessions in a given database. * </pre> */ - public com.google.spanner.v1.ListSessionsResponse listSessions( - com.google.spanner.v1.ListSessionsRequest request) { + public com.google.spanner.v1.ListSessionsResponse listSessions(com.google.spanner.v1.ListSessionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSessionsMethod(), getCallOptions(), request); } /** - * - * * <pre> * Ends a session, releasing server resources associated with it. This will * asynchronously trigger cancellation of any operations that are running with * this session. * </pre> */ - public com.google.protobuf.Empty deleteSession( - com.google.spanner.v1.DeleteSessionRequest request) { + public com.google.protobuf.Empty deleteSession(com.google.spanner.v1.DeleteSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSessionMethod(), getCallOptions(), request); } /** - * - * * <pre> * Executes an SQL statement, returning all results in a single reply. This * method cannot be used to return a result set larger than 10 MiB; @@ -1603,15 +1283,12 @@ public com.google.protobuf.Empty deleteSession( * instead. * </pre> */ - public com.google.spanner.v1.ResultSet executeSql( - com.google.spanner.v1.ExecuteSqlRequest request) { + public com.google.spanner.v1.ResultSet executeSql(com.google.spanner.v1.ExecuteSqlRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExecuteSqlMethod(), getCallOptions(), request); } /** - * - * * <pre> * Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the * result set as a stream. Unlike @@ -1627,8 +1304,6 @@ public java.util.Iterator<com.google.spanner.v1.PartialResultSet> executeStreami } /** - * - * * <pre> * Executes a batch of SQL DML statements. This method allows many statements * to be run with lower latency than submitting them sequentially with @@ -1642,15 +1317,12 @@ public java.util.Iterator<com.google.spanner.v1.PartialResultSet> executeStreami * are not executed. * </pre> */ - public com.google.spanner.v1.ExecuteBatchDmlResponse executeBatchDml( - com.google.spanner.v1.ExecuteBatchDmlRequest request) { + public com.google.spanner.v1.ExecuteBatchDmlResponse executeBatchDml(com.google.spanner.v1.ExecuteBatchDmlRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExecuteBatchDmlMethod(), getCallOptions(), request); } /** - * - * * <pre> * Reads rows from the database using key lookups and scans, as a * simple key/value style alternative to @@ -1672,8 +1344,6 @@ public com.google.spanner.v1.ResultSet read(com.google.spanner.v1.ReadRequest re } /** - * - * * <pre> * Like [Read][google.spanner.v1.Spanner.Read], except returns the result set * as a stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no @@ -1689,8 +1359,6 @@ public java.util.Iterator<com.google.spanner.v1.PartialResultSet> streamingRead( } /** - * - * * <pre> * Begins a new transaction. This step can often be skipped: * [Read][google.spanner.v1.Spanner.Read], @@ -1699,15 +1367,12 @@ public java.util.Iterator<com.google.spanner.v1.PartialResultSet> streamingRead( * side-effect. * </pre> */ - public com.google.spanner.v1.Transaction beginTransaction( - com.google.spanner.v1.BeginTransactionRequest request) { + public com.google.spanner.v1.Transaction beginTransaction(com.google.spanner.v1.BeginTransactionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBeginTransactionMethod(), getCallOptions(), request); } /** - * - * * <pre> * Commits a transaction. The request includes the mutations to be * applied to rows in the database. @@ -1723,15 +1388,12 @@ public com.google.spanner.v1.Transaction beginTransaction( * state of things as they are now. * </pre> */ - public com.google.spanner.v1.CommitResponse commit( - com.google.spanner.v1.CommitRequest request) { + public com.google.spanner.v1.CommitResponse commit(com.google.spanner.v1.CommitRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCommitMethod(), getCallOptions(), request); } /** - * - * * <pre> * Rolls back a transaction, releasing any locks it holds. It is a good * idea to call this for any transaction that includes one or more @@ -1749,8 +1411,6 @@ public com.google.protobuf.Empty rollback(com.google.spanner.v1.RollbackRequest } /** - * - * * <pre> * Creates a set of partition tokens that can be used to execute a query * operation in parallel. Each of the returned partition tokens can be used @@ -1765,15 +1425,12 @@ public com.google.protobuf.Empty rollback(com.google.spanner.v1.RollbackRequest * the whole operation must be restarted from the beginning. * </pre> */ - public com.google.spanner.v1.PartitionResponse partitionQuery( - com.google.spanner.v1.PartitionQueryRequest request) { + public com.google.spanner.v1.PartitionResponse partitionQuery(com.google.spanner.v1.PartitionQueryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPartitionQueryMethod(), getCallOptions(), request); } /** - * - * * <pre> * Creates a set of partition tokens that can be used to execute a read * operation in parallel. Each of the returned partition tokens can be used @@ -1790,15 +1447,12 @@ public com.google.spanner.v1.PartitionResponse partitionQuery( * the whole operation must be restarted from the beginning. * </pre> */ - public com.google.spanner.v1.PartitionResponse partitionRead( - com.google.spanner.v1.PartitionReadRequest request) { + public com.google.spanner.v1.PartitionResponse partitionRead(com.google.spanner.v1.PartitionReadRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPartitionReadMethod(), getCallOptions(), request); } /** - * - * * <pre> * Batches the supplied mutation groups in a collection of efficient * transactions. All mutations in a group are committed atomically. However, @@ -1825,7 +1479,6 @@ public java.util.Iterator<com.google.spanner.v1.BatchWriteResponse> batchWrite( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Spanner. - * * <pre> * Cloud Spanner API * The Cloud Spanner API can be used to manage sessions and execute @@ -1834,18 +1487,18 @@ public java.util.Iterator<com.google.spanner.v1.BatchWriteResponse> batchWrite( */ public static final class SpannerFutureStub extends io.grpc.stub.AbstractFutureStub<SpannerFutureStub> { - private SpannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SpannerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SpannerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected SpannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SpannerFutureStub(channel, callOptions); } /** - * - * * <pre> * Creates a new session. A session can be used to perform * transactions that read and/or modify data in a Cloud Spanner database. @@ -1865,75 +1518,63 @@ protected SpannerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c * periodically, e.g., `"SELECT 1"`. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Session> - createSession(com.google.spanner.v1.CreateSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Session> createSession( + com.google.spanner.v1.CreateSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request); } /** - * - * * <pre> * Creates multiple new sessions. * This API can be used to initialize a session cache on the clients. * See https://goo.gl/TgSFN2 for best practices on session cache management. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.v1.BatchCreateSessionsResponse> - batchCreateSessions(com.google.spanner.v1.BatchCreateSessionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.BatchCreateSessionsResponse> batchCreateSessions( + com.google.spanner.v1.BatchCreateSessionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchCreateSessionsMethod(), getCallOptions()), request); } /** - * - * * <pre> * Gets a session. Returns `NOT_FOUND` if the session does not exist. * This is mainly useful for determining whether a session is still * alive. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Session> - getSession(com.google.spanner.v1.GetSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Session> getSession( + com.google.spanner.v1.GetSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSessionMethod(), getCallOptions()), request); } /** - * - * * <pre> * Lists all sessions in a given database. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.v1.ListSessionsResponse> - listSessions(com.google.spanner.v1.ListSessionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.ListSessionsResponse> listSessions( + com.google.spanner.v1.ListSessionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSessionsMethod(), getCallOptions()), request); } /** - * - * * <pre> * Ends a session, releasing server resources associated with it. This will * asynchronously trigger cancellation of any operations that are running with * this session. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> - deleteSession(com.google.spanner.v1.DeleteSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteSession( + com.google.spanner.v1.DeleteSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), request); } /** - * - * * <pre> * Executes an SQL statement, returning all results in a single reply. This * method cannot be used to return a result set larger than 10 MiB; @@ -1948,15 +1589,13 @@ protected SpannerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c * instead. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.ResultSet> - executeSql(com.google.spanner.v1.ExecuteSqlRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.ResultSet> executeSql( + com.google.spanner.v1.ExecuteSqlRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExecuteSqlMethod(), getCallOptions()), request); } /** - * - * * <pre> * Executes a batch of SQL DML statements. This method allows many statements * to be run with lower latency than submitting them sequentially with @@ -1970,16 +1609,13 @@ protected SpannerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c * are not executed. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.v1.ExecuteBatchDmlResponse> - executeBatchDml(com.google.spanner.v1.ExecuteBatchDmlRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.ExecuteBatchDmlResponse> executeBatchDml( + com.google.spanner.v1.ExecuteBatchDmlRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExecuteBatchDmlMethod(), getCallOptions()), request); } /** - * - * * <pre> * Reads rows from the database using key lookups and scans, as a * simple key/value style alternative to @@ -2002,8 +1638,6 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1. } /** - * - * * <pre> * Begins a new transaction. This step can often be skipped: * [Read][google.spanner.v1.Spanner.Read], @@ -2012,15 +1646,13 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1. * side-effect. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Transaction> - beginTransaction(com.google.spanner.v1.BeginTransactionRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.Transaction> beginTransaction( + com.google.spanner.v1.BeginTransactionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBeginTransactionMethod(), getCallOptions()), request); } /** - * - * * <pre> * Commits a transaction. The request includes the mutations to be * applied to rows in the database. @@ -2036,15 +1668,13 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1. * state of things as they are now. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.CommitResponse> - commit(com.google.spanner.v1.CommitRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.CommitResponse> commit( + com.google.spanner.v1.CommitRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCommitMethod(), getCallOptions()), request); } /** - * - * * <pre> * Rolls back a transaction, releasing any locks it holds. It is a good * idea to call this for any transaction that includes one or more @@ -2063,8 +1693,6 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em } /** - * - * * <pre> * Creates a set of partition tokens that can be used to execute a query * operation in parallel. Each of the returned partition tokens can be used @@ -2079,16 +1707,13 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em * the whole operation must be restarted from the beginning. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.v1.PartitionResponse> - partitionQuery(com.google.spanner.v1.PartitionQueryRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.PartitionResponse> partitionQuery( + com.google.spanner.v1.PartitionQueryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPartitionQueryMethod(), getCallOptions()), request); } /** - * - * * <pre> * Creates a set of partition tokens that can be used to execute a read * operation in parallel. Each of the returned partition tokens can be used @@ -2105,9 +1730,8 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em * the whole operation must be restarted from the beginning. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.spanner.v1.PartitionResponse> - partitionRead(com.google.spanner.v1.PartitionReadRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.spanner.v1.PartitionResponse> partitionRead( + com.google.spanner.v1.PartitionReadRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPartitionReadMethod(), getCallOptions()), request); } @@ -2130,11 +1754,11 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em private static final int METHODID_PARTITION_READ = 14; private static final int METHODID_BATCH_WRITE = 15; - private static final class MethodHandlers<Req, Resp> - implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { + private static final class MethodHandlers<Req, Resp> implements + io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final AsyncService serviceImpl; private final int methodId; @@ -2148,92 +1772,68 @@ private static final class MethodHandlers<Req, Resp> public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_CREATE_SESSION: - serviceImpl.createSession( - (com.google.spanner.v1.CreateSessionRequest) request, + serviceImpl.createSession((com.google.spanner.v1.CreateSessionRequest) request, (io.grpc.stub.StreamObserver<com.google.spanner.v1.Session>) responseObserver); break; case METHODID_BATCH_CREATE_SESSIONS: - serviceImpl.batchCreateSessions( - (com.google.spanner.v1.BatchCreateSessionsRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchCreateSessionsResponse>) - responseObserver); + serviceImpl.batchCreateSessions((com.google.spanner.v1.BatchCreateSessionsRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchCreateSessionsResponse>) responseObserver); break; case METHODID_GET_SESSION: - serviceImpl.getSession( - (com.google.spanner.v1.GetSessionRequest) request, + serviceImpl.getSession((com.google.spanner.v1.GetSessionRequest) request, (io.grpc.stub.StreamObserver<com.google.spanner.v1.Session>) responseObserver); break; case METHODID_LIST_SESSIONS: - serviceImpl.listSessions( - (com.google.spanner.v1.ListSessionsRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.v1.ListSessionsResponse>) - responseObserver); + serviceImpl.listSessions((com.google.spanner.v1.ListSessionsRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.v1.ListSessionsResponse>) responseObserver); break; case METHODID_DELETE_SESSION: - serviceImpl.deleteSession( - (com.google.spanner.v1.DeleteSessionRequest) request, + serviceImpl.deleteSession((com.google.spanner.v1.DeleteSessionRequest) request, (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver); break; case METHODID_EXECUTE_SQL: - serviceImpl.executeSql( - (com.google.spanner.v1.ExecuteSqlRequest) request, + serviceImpl.executeSql((com.google.spanner.v1.ExecuteSqlRequest) request, (io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet>) responseObserver); break; case METHODID_EXECUTE_STREAMING_SQL: - serviceImpl.executeStreamingSql( - (com.google.spanner.v1.ExecuteSqlRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet>) - responseObserver); + serviceImpl.executeStreamingSql((com.google.spanner.v1.ExecuteSqlRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet>) responseObserver); break; case METHODID_EXECUTE_BATCH_DML: - serviceImpl.executeBatchDml( - (com.google.spanner.v1.ExecuteBatchDmlRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse>) - responseObserver); + serviceImpl.executeBatchDml((com.google.spanner.v1.ExecuteBatchDmlRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.v1.ExecuteBatchDmlResponse>) responseObserver); break; case METHODID_READ: - serviceImpl.read( - (com.google.spanner.v1.ReadRequest) request, + serviceImpl.read((com.google.spanner.v1.ReadRequest) request, (io.grpc.stub.StreamObserver<com.google.spanner.v1.ResultSet>) responseObserver); break; case METHODID_STREAMING_READ: - serviceImpl.streamingRead( - (com.google.spanner.v1.ReadRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet>) - responseObserver); + serviceImpl.streamingRead((com.google.spanner.v1.ReadRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.v1.PartialResultSet>) responseObserver); break; case METHODID_BEGIN_TRANSACTION: - serviceImpl.beginTransaction( - (com.google.spanner.v1.BeginTransactionRequest) request, + serviceImpl.beginTransaction((com.google.spanner.v1.BeginTransactionRequest) request, (io.grpc.stub.StreamObserver<com.google.spanner.v1.Transaction>) responseObserver); break; case METHODID_COMMIT: - serviceImpl.commit( - (com.google.spanner.v1.CommitRequest) request, + serviceImpl.commit((com.google.spanner.v1.CommitRequest) request, (io.grpc.stub.StreamObserver<com.google.spanner.v1.CommitResponse>) responseObserver); break; case METHODID_ROLLBACK: - serviceImpl.rollback( - (com.google.spanner.v1.RollbackRequest) request, + serviceImpl.rollback((com.google.spanner.v1.RollbackRequest) request, (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver); break; case METHODID_PARTITION_QUERY: - serviceImpl.partitionQuery( - (com.google.spanner.v1.PartitionQueryRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.v1.PartitionResponse>) - responseObserver); + serviceImpl.partitionQuery((com.google.spanner.v1.PartitionQueryRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.v1.PartitionResponse>) responseObserver); break; case METHODID_PARTITION_READ: - serviceImpl.partitionRead( - (com.google.spanner.v1.PartitionReadRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.v1.PartitionResponse>) - responseObserver); + serviceImpl.partitionRead((com.google.spanner.v1.PartitionReadRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.v1.PartitionResponse>) responseObserver); break; case METHODID_BATCH_WRITE: - serviceImpl.batchWrite( - (com.google.spanner.v1.BatchWriteRequest) request, - (io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchWriteResponse>) - responseObserver); + serviceImpl.batchWrite((com.google.spanner.v1.BatchWriteRequest) request, + (io.grpc.stub.StreamObserver<com.google.spanner.v1.BatchWriteResponse>) responseObserver); break; default: throw new AssertionError(); @@ -2254,110 +1854,122 @@ public io.grpc.stub.StreamObserver<Req> invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.CreateSessionRequest, com.google.spanner.v1.Session>( - service, METHODID_CREATE_SESSION))) + getCreateSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.CreateSessionRequest, + com.google.spanner.v1.Session>( + service, METHODID_CREATE_SESSION))) .addMethod( - getBatchCreateSessionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.BatchCreateSessionsRequest, - com.google.spanner.v1.BatchCreateSessionsResponse>( - service, METHODID_BATCH_CREATE_SESSIONS))) + getBatchCreateSessionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.BatchCreateSessionsRequest, + com.google.spanner.v1.BatchCreateSessionsResponse>( + service, METHODID_BATCH_CREATE_SESSIONS))) .addMethod( - getGetSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.GetSessionRequest, com.google.spanner.v1.Session>( - service, METHODID_GET_SESSION))) + getGetSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.GetSessionRequest, + com.google.spanner.v1.Session>( + service, METHODID_GET_SESSION))) .addMethod( - getListSessionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.ListSessionsRequest, - com.google.spanner.v1.ListSessionsResponse>(service, METHODID_LIST_SESSIONS))) + getListSessionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.ListSessionsRequest, + com.google.spanner.v1.ListSessionsResponse>( + service, METHODID_LIST_SESSIONS))) .addMethod( - getDeleteSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.DeleteSessionRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_SESSION))) + getDeleteSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.DeleteSessionRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SESSION))) .addMethod( - getExecuteSqlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.ExecuteSqlRequest, com.google.spanner.v1.ResultSet>( - service, METHODID_EXECUTE_SQL))) + getExecuteSqlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.ExecuteSqlRequest, + com.google.spanner.v1.ResultSet>( + service, METHODID_EXECUTE_SQL))) .addMethod( - getExecuteStreamingSqlMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.spanner.v1.ExecuteSqlRequest, - com.google.spanner.v1.PartialResultSet>( - service, METHODID_EXECUTE_STREAMING_SQL))) + getExecuteStreamingSqlMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.spanner.v1.ExecuteSqlRequest, + com.google.spanner.v1.PartialResultSet>( + service, METHODID_EXECUTE_STREAMING_SQL))) .addMethod( - getExecuteBatchDmlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.ExecuteBatchDmlRequest, - com.google.spanner.v1.ExecuteBatchDmlResponse>( - service, METHODID_EXECUTE_BATCH_DML))) + getExecuteBatchDmlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.ExecuteBatchDmlRequest, + com.google.spanner.v1.ExecuteBatchDmlResponse>( + service, METHODID_EXECUTE_BATCH_DML))) .addMethod( - getReadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.ReadRequest, com.google.spanner.v1.ResultSet>( - service, METHODID_READ))) + getReadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.ReadRequest, + com.google.spanner.v1.ResultSet>( + service, METHODID_READ))) .addMethod( - getStreamingReadMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.spanner.v1.ReadRequest, com.google.spanner.v1.PartialResultSet>( - service, METHODID_STREAMING_READ))) + getStreamingReadMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.spanner.v1.ReadRequest, + com.google.spanner.v1.PartialResultSet>( + service, METHODID_STREAMING_READ))) .addMethod( - getBeginTransactionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.BeginTransactionRequest, - com.google.spanner.v1.Transaction>(service, METHODID_BEGIN_TRANSACTION))) + getBeginTransactionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.BeginTransactionRequest, + com.google.spanner.v1.Transaction>( + service, METHODID_BEGIN_TRANSACTION))) .addMethod( - getCommitMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.CommitRequest, com.google.spanner.v1.CommitResponse>( - service, METHODID_COMMIT))) + getCommitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.CommitRequest, + com.google.spanner.v1.CommitResponse>( + service, METHODID_COMMIT))) .addMethod( - getRollbackMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.RollbackRequest, com.google.protobuf.Empty>( - service, METHODID_ROLLBACK))) + getRollbackMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.RollbackRequest, + com.google.protobuf.Empty>( + service, METHODID_ROLLBACK))) .addMethod( - getPartitionQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.PartitionQueryRequest, - com.google.spanner.v1.PartitionResponse>(service, METHODID_PARTITION_QUERY))) + getPartitionQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.PartitionQueryRequest, + com.google.spanner.v1.PartitionResponse>( + service, METHODID_PARTITION_QUERY))) .addMethod( - getPartitionReadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.spanner.v1.PartitionReadRequest, - com.google.spanner.v1.PartitionResponse>(service, METHODID_PARTITION_READ))) + getPartitionReadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.spanner.v1.PartitionReadRequest, + com.google.spanner.v1.PartitionResponse>( + service, METHODID_PARTITION_READ))) .addMethod( - getBatchWriteMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.spanner.v1.BatchWriteRequest, - com.google.spanner.v1.BatchWriteResponse>(service, METHODID_BATCH_WRITE))) + getBatchWriteMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.spanner.v1.BatchWriteRequest, + com.google.spanner.v1.BatchWriteResponse>( + service, METHODID_BATCH_WRITE))) .build(); } - private abstract static class SpannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SpannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SpannerBaseDescriptorSupplier() {} @java.lang.Override @@ -2371,11 +1983,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class SpannerFileDescriptorSupplier extends SpannerBaseDescriptorSupplier { + private static final class SpannerFileDescriptorSupplier + extends SpannerBaseDescriptorSupplier { SpannerFileDescriptorSupplier() {} } - private static final class SpannerMethodDescriptorSupplier extends SpannerBaseDescriptorSupplier + private static final class SpannerMethodDescriptorSupplier + extends SpannerBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; @@ -2397,27 +2011,25 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SpannerGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpannerFileDescriptorSupplier()) - .addMethod(getCreateSessionMethod()) - .addMethod(getBatchCreateSessionsMethod()) - .addMethod(getGetSessionMethod()) - .addMethod(getListSessionsMethod()) - .addMethod(getDeleteSessionMethod()) - .addMethod(getExecuteSqlMethod()) - .addMethod(getExecuteStreamingSqlMethod()) - .addMethod(getExecuteBatchDmlMethod()) - .addMethod(getReadMethod()) - .addMethod(getStreamingReadMethod()) - .addMethod(getBeginTransactionMethod()) - .addMethod(getCommitMethod()) - .addMethod(getRollbackMethod()) - .addMethod(getPartitionQueryMethod()) - .addMethod(getPartitionReadMethod()) - .addMethod(getBatchWriteMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpannerFileDescriptorSupplier()) + .addMethod(getCreateSessionMethod()) + .addMethod(getBatchCreateSessionsMethod()) + .addMethod(getGetSessionMethod()) + .addMethod(getListSessionsMethod()) + .addMethod(getDeleteSessionMethod()) + .addMethod(getExecuteSqlMethod()) + .addMethod(getExecuteStreamingSqlMethod()) + .addMethod(getExecuteBatchDmlMethod()) + .addMethod(getReadMethod()) + .addMethod(getStreamingReadMethod()) + .addMethod(getBeginTransactionMethod()) + .addMethod(getCommitMethod()) + .addMethod(getRollbackMethod()) + .addMethod(getPartitionQueryMethod()) + .addMethod(getPartitionReadMethod()) + .addMethod(getBatchWriteMethod()) + .build(); } } } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java similarity index 72% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java index bf59b96fd5c..40025e866c3 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Backup.java @@ -1,85 +1,65 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * A backup of a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.Backup} */ -public final class Backup extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Backup extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.Backup) BackupOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Backup.newBuilder() to construct. private Backup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private Backup() { database_ = ""; name_ = ""; state_ = 0; - referencingDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + referencingDatabases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); databaseDialect_ = 0; - referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + referencingBackups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Backup(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_Backup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_Backup_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.Backup.class, - com.google.spanner.admin.database.v1.Backup.Builder.class); + com.google.spanner.admin.database.v1.Backup.class, com.google.spanner.admin.database.v1.Backup.Builder.class); } /** - * - * * <pre> * Indicates the current state of the backup. * </pre> * * Protobuf enum {@code google.spanner.admin.database.v1.Backup.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Not specified. * </pre> @@ -88,8 +68,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * * <pre> * The pending backup is still being created. Operations on the * backup may fail with `FAILED_PRECONDITION` in this state. @@ -99,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * * <pre> * The backup is complete and ready for use. * </pre> @@ -112,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Not specified. * </pre> @@ -122,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * The pending backup is still being created. Operations on the * backup may fail with `FAILED_PRECONDITION` in this state. @@ -133,8 +105,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * * <pre> * The backup is complete and ready for use. * </pre> @@ -143,6 +113,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -167,49 +138,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<State> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<State>() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<State>() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.spanner.admin.database.v1.Backup.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -227,12 +198,9 @@ private State(int value) { } public static final int DATABASE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -242,7 +210,6 @@ private State(int value) { * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ @java.lang.Override @@ -251,15 +218,14 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -269,15 +235,16 @@ public java.lang.String getDatabase() { * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -288,8 +255,6 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int VERSION_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp versionTime_; /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -298,7 +263,6 @@ public com.google.protobuf.ByteString getDatabaseBytes() { * </pre> * * <code>.google.protobuf.Timestamp version_time = 9;</code> - * * @return Whether the versionTime field is set. */ @java.lang.Override @@ -306,8 +270,6 @@ public boolean hasVersionTime() { return versionTime_ != null; } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -316,7 +278,6 @@ public boolean hasVersionTime() { * </pre> * * <code>.google.protobuf.Timestamp version_time = 9;</code> - * * @return The versionTime. */ @java.lang.Override @@ -324,8 +285,6 @@ public com.google.protobuf.Timestamp getVersionTime() { return versionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -343,8 +302,6 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -355,7 +312,6 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { * </pre> * * <code>.google.protobuf.Timestamp expire_time = 3;</code> - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -363,8 +319,6 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -375,7 +329,6 @@ public boolean hasExpireTime() { * </pre> * * <code>.google.protobuf.Timestamp expire_time = 3;</code> - * * @return The expireTime. */ @java.lang.Override @@ -383,8 +336,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -402,12 +353,9 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -425,7 +373,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * </pre> * * <code>string name = 1;</code> - * * @return The name. */ @java.lang.Override @@ -434,15 +381,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -460,15 +406,16 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -479,17 +426,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ @java.lang.Override @@ -497,17 +440,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ @java.lang.Override @@ -515,16 +454,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -534,14 +470,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SIZE_BYTES_FIELD_NUMBER = 5; private long sizeBytes_ = 0L; /** - * - * * <pre> * Output only. Size of the backup in bytes. * </pre> * * <code>int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The sizeBytes. */ @java.lang.Override @@ -552,50 +485,34 @@ public long getSizeBytes() { public static final int STATE_FIELD_NUMBER = 6; private int state_ = 0; /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.Backup.State getState() { - com.google.spanner.admin.database.v1.Backup.State result = - com.google.spanner.admin.database.v1.Backup.State.forNumber(state_); + @java.lang.Override public com.google.spanner.admin.database.v1.Backup.State getState() { + com.google.spanner.admin.database.v1.Backup.State result = com.google.spanner.admin.database.v1.Backup.State.forNumber(state_); return result == null ? com.google.spanner.admin.database.v1.Backup.State.UNRECOGNIZED : result; } public static final int REFERENCING_DATABASES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList referencingDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -606,18 +523,14 @@ public com.google.spanner.admin.database.v1.Backup.State getState() { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return A list containing the referencingDatabases. */ - public com.google.protobuf.ProtocolStringList getReferencingDatabasesList() { + public com.google.protobuf.ProtocolStringList + getReferencingDatabasesList() { return referencingDatabases_; } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -628,18 +541,13 @@ public com.google.protobuf.ProtocolStringList getReferencingDatabasesList() { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The count of referencingDatabases. */ public int getReferencingDatabasesCount() { return referencingDatabases_.size(); } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -650,10 +558,7 @@ public int getReferencingDatabasesCount() { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The referencingDatabases at the given index. */ @@ -661,8 +566,6 @@ public java.lang.String getReferencingDatabases(int index) { return referencingDatabases_.get(index); } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -673,30 +576,23 @@ public java.lang.String getReferencingDatabases(int index) { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the referencingDatabases at the given index. */ - public com.google.protobuf.ByteString getReferencingDatabasesBytes(int index) { + public com.google.protobuf.ByteString + getReferencingDatabasesBytes(int index) { return referencingDatabases_.getByteString(index); } public static final int ENCRYPTION_INFO_FIELD_NUMBER = 8; private com.google.spanner.admin.database.v1.EncryptionInfo encryptionInfo_; /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionInfo field is set. */ @java.lang.Override @@ -704,91 +600,60 @@ public boolean hasEncryptionInfo() { return encryptionInfo_ != null; } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionInfo. */ @java.lang.Override public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo() { - return encryptionInfo_ == null - ? com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance() - : encryptionInfo_; + return encryptionInfo_ == null ? com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance() : encryptionInfo_; } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { - return encryptionInfo_ == null - ? com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance() - : encryptionInfo_; + return encryptionInfo_ == null ? com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance() : encryptionInfo_; } public static final int DATABASE_DIALECT_FIELD_NUMBER = 10; private int databaseDialect_ = 0; /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for databaseDialect. */ - @java.lang.Override - public int getDatabaseDialectValue() { + @java.lang.Override public int getDatabaseDialectValue() { return databaseDialect_; } /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The databaseDialect. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { - com.google.spanner.admin.database.v1.DatabaseDialect result = - com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); - return result == null - ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { + com.google.spanner.admin.database.v1.DatabaseDialect result = com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); + return result == null ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED : result; } public static final int REFERENCING_BACKUPS_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -799,18 +664,14 @@ public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return A list containing the referencingBackups. */ - public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { + public com.google.protobuf.ProtocolStringList + getReferencingBackupsList() { return referencingBackups_; } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -821,18 +682,13 @@ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The count of referencingBackups. */ public int getReferencingBackupsCount() { return referencingBackups_.size(); } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -843,10 +699,7 @@ public int getReferencingBackupsCount() { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The referencingBackups at the given index. */ @@ -854,8 +707,6 @@ public java.lang.String getReferencingBackups(int index) { return referencingBackups_.get(index); } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -866,22 +717,18 @@ public java.lang.String getReferencingBackups(int index) { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ - public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { + public com.google.protobuf.ByteString + getReferencingBackupsBytes(int index) { return referencingBackups_.getByteString(index); } public static final int MAX_EXPIRE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp maxExpireTime_; /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -890,10 +737,7 @@ public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the maxExpireTime field is set. */ @java.lang.Override @@ -901,8 +745,6 @@ public boolean hasMaxExpireTime() { return maxExpireTime_ != null; } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -911,21 +753,14 @@ public boolean hasMaxExpireTime() { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The maxExpireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMaxExpireTime() { - return maxExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : maxExpireTime_; + return maxExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maxExpireTime_; } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -934,19 +769,14 @@ public com.google.protobuf.Timestamp getMaxExpireTime() { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMaxExpireTimeOrBuilder() { - return maxExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : maxExpireTime_; + return maxExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maxExpireTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -958,7 +788,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -978,8 +809,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeEnum(6, state_); } for (int i = 0; i < referencingDatabases_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 7, referencingDatabases_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, referencingDatabases_.getRaw(i)); } if (encryptionInfo_ != null) { output.writeMessage(8, getEncryptionInfo()); @@ -987,9 +817,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (versionTime_ != null) { output.writeMessage(9, getVersionTime()); } - if (databaseDialect_ - != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED - .getNumber()) { + if (databaseDialect_ != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED.getNumber()) { output.writeEnum(10, databaseDialect_); } for (int i = 0; i < referencingBackups_.size(); i++) { @@ -1014,16 +842,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpireTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, sizeBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, sizeBytes_); } if (state_ != com.google.spanner.admin.database.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } { int dataSize = 0; @@ -1034,15 +866,16 @@ public int getSerializedSize() { size += 1 * getReferencingDatabasesList().size(); } if (encryptionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEncryptionInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getEncryptionInfo()); } if (versionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getVersionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getVersionTime()); } - if (databaseDialect_ - != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, databaseDialect_); + if (databaseDialect_ != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, databaseDialect_); } { int dataSize = 0; @@ -1053,7 +886,8 @@ public int getSerializedSize() { size += 1 * getReferencingBackupsList().size(); } if (maxExpireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMaxExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getMaxExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1063,40 +897,49 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.Backup)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.Backup other = - (com.google.spanner.admin.database.v1.Backup) obj; + com.google.spanner.admin.database.v1.Backup other = (com.google.spanner.admin.database.v1.Backup) obj; - if (!getDatabase().equals(other.getDatabase())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; if (hasVersionTime() != other.hasVersionTime()) return false; if (hasVersionTime()) { - if (!getVersionTime().equals(other.getVersionTime())) return false; + if (!getVersionTime() + .equals(other.getVersionTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (getSizeBytes() != other.getSizeBytes()) return false; + if (getSizeBytes() + != other.getSizeBytes()) return false; if (state_ != other.state_) return false; - if (!getReferencingDatabasesList().equals(other.getReferencingDatabasesList())) return false; + if (!getReferencingDatabasesList() + .equals(other.getReferencingDatabasesList())) return false; if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false; if (hasEncryptionInfo()) { - if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false; + if (!getEncryptionInfo() + .equals(other.getEncryptionInfo())) return false; } if (databaseDialect_ != other.databaseDialect_) return false; - if (!getReferencingBackupsList().equals(other.getReferencingBackupsList())) return false; + if (!getReferencingBackupsList() + .equals(other.getReferencingBackupsList())) return false; if (hasMaxExpireTime() != other.hasMaxExpireTime()) return false; if (hasMaxExpireTime()) { - if (!getMaxExpireTime().equals(other.getMaxExpireTime())) return false; + if (!getMaxExpireTime() + .equals(other.getMaxExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1126,7 +969,8 @@ public int hashCode() { hash = (53 * hash) + getCreateTime().hashCode(); } hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeBytes()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (getReferencingDatabasesCount() > 0) { @@ -1152,136 +996,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.admin.database.v1.Backup parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.admin.database.v1.Backup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.Backup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.Backup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.Backup 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.admin.database.v1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.Backup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.Backup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.Backup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.Backup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.Backup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.Backup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.Backup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.Backup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.database.v1.Backup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * A backup of a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.Backup} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.Backup) com.google.spanner.admin.database.v1.BackupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_Backup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_Backup_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.Backup.class, - com.google.spanner.admin.database.v1.Backup.Builder.class); + com.google.spanner.admin.database.v1.Backup.class, com.google.spanner.admin.database.v1.Backup.Builder.class); } // Construct using com.google.spanner.admin.database.v1.Backup.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1305,14 +1145,16 @@ public Builder clear() { } sizeBytes_ = 0L; state_ = 0; - referencingDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + referencingDatabases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); encryptionInfo_ = null; if (encryptionInfoBuilder_ != null) { encryptionInfoBuilder_.dispose(); encryptionInfoBuilder_ = null; } databaseDialect_ = 0; - referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + referencingBackups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); maxExpireTime_ = null; if (maxExpireTimeBuilder_ != null) { maxExpireTimeBuilder_.dispose(); @@ -1322,9 +1164,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_Backup_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_Backup_descriptor; } @java.lang.Override @@ -1343,11 +1185,8 @@ public com.google.spanner.admin.database.v1.Backup build() { @java.lang.Override public com.google.spanner.admin.database.v1.Backup buildPartial() { - com.google.spanner.admin.database.v1.Backup result = - new com.google.spanner.admin.database.v1.Backup(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.Backup result = new com.google.spanner.admin.database.v1.Backup(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1358,17 +1197,22 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { result.database_ = database_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.versionTime_ = - versionTimeBuilder_ == null ? versionTime_ : versionTimeBuilder_.build(); + result.versionTime_ = versionTimeBuilder_ == null + ? versionTime_ + : versionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.sizeBytes_ = sizeBytes_; @@ -1381,8 +1225,9 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { result.referencingDatabases_ = referencingDatabases_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.encryptionInfo_ = - encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + result.encryptionInfo_ = encryptionInfoBuilder_ == null + ? encryptionInfo_ + : encryptionInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.databaseDialect_ = databaseDialect_; @@ -1392,8 +1237,9 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { result.referencingBackups_ = referencingBackups_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.maxExpireTime_ = - maxExpireTimeBuilder_ == null ? maxExpireTime_ : maxExpireTimeBuilder_.build(); + result.maxExpireTime_ = maxExpireTimeBuilder_ == null + ? maxExpireTime_ + : maxExpireTimeBuilder_.build(); } } @@ -1401,39 +1247,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.Backup) { - return mergeFrom((com.google.spanner.admin.database.v1.Backup) other); + return mergeFrom((com.google.spanner.admin.database.v1.Backup)other); } else { super.mergeFrom(other); return this; @@ -1522,87 +1367,84 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: - { - sizeBytes_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 48: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureReferencingDatabasesIsMutable(); - referencingDatabases_.add(s); - break; - } // case 58 - case 66: - { - input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: - { - input.readMessage(getVersionTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 80: - { - databaseDialect_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureReferencingBackupsIsMutable(); - referencingBackups_.add(s); - break; - } // case 90 - case 98: - { - input.readMessage(getMaxExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 48: { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureReferencingDatabasesIsMutable(); + referencingDatabases_.add(s); + break; + } // case 58 + case 66: { + input.readMessage( + getEncryptionInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + input.readMessage( + getVersionTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 74 + case 80: { + databaseDialect_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + ensureReferencingBackupsIsMutable(); + referencingBackups_.add(s); + break; + } // case 90 + case 98: { + input.readMessage( + getMaxExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1612,13 +1454,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object database_ = ""; /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -1628,13 +1467,13 @@ public Builder mergeFrom( * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -1643,8 +1482,6 @@ public java.lang.String getDatabase() { } } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -1654,14 +1491,15 @@ public java.lang.String getDatabase() { * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -1669,8 +1507,6 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -1680,22 +1516,18 @@ public com.google.protobuf.ByteString getDatabaseBytes() { * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -1705,7 +1537,6 @@ public Builder setDatabase(java.lang.String value) { * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -1715,8 +1546,6 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -1726,14 +1555,12 @@ public Builder clearDatabase() { * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -1743,13 +1570,8 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> versionTimeBuilder_; /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1758,15 +1580,12 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>.google.protobuf.Timestamp version_time = 9;</code> - * * @return Whether the versionTime field is set. */ public boolean hasVersionTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1775,21 +1594,16 @@ public boolean hasVersionTime() { * </pre> * * <code>.google.protobuf.Timestamp version_time = 9;</code> - * * @return The versionTime. */ public com.google.protobuf.Timestamp getVersionTime() { if (versionTimeBuilder_ == null) { - return versionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : versionTime_; + return versionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } else { return versionTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1813,8 +1627,6 @@ public Builder setVersionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1824,7 +1636,8 @@ public Builder setVersionTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp version_time = 9;</code> */ - public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setVersionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (versionTimeBuilder_ == null) { versionTime_ = builderForValue.build(); } else { @@ -1835,8 +1648,6 @@ public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1848,9 +1659,9 @@ public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { if (versionTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && versionTime_ != null - && versionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + versionTime_ != null && + versionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getVersionTimeBuilder().mergeFrom(value); } else { versionTime_ = value; @@ -1863,8 +1674,6 @@ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1885,8 +1694,6 @@ public Builder clearVersionTime() { return this; } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1902,8 +1709,6 @@ public com.google.protobuf.Timestamp.Builder getVersionTimeBuilder() { return getVersionTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1917,14 +1722,11 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { if (versionTimeBuilder_ != null) { return versionTimeBuilder_.getMessageOrBuilder(); } else { - return versionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : versionTime_; + return versionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } } /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -1935,17 +1737,14 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { * <code>.google.protobuf.Timestamp version_time = 9;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1953,13 +1752,8 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -1970,15 +1764,12 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { * </pre> * * <code>.google.protobuf.Timestamp expire_time = 3;</code> - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -1989,21 +1780,16 @@ public boolean hasExpireTime() { * </pre> * * <code>.google.protobuf.Timestamp expire_time = 3;</code> - * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -2029,8 +1815,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -2042,7 +1826,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp expire_time = 3;</code> */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -2053,8 +1838,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -2068,9 +1851,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -2083,8 +1866,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -2107,8 +1888,6 @@ public Builder clearExpireTime() { return this; } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -2126,8 +1905,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -2143,14 +1920,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -2163,17 +1937,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * <code>.google.protobuf.Timestamp expire_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -2181,8 +1952,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object name_ = ""; /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -2200,13 +1969,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * </pre> * * <code>string name = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2215,8 +1984,6 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -2234,14 +2001,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2249,8 +2017,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -2268,22 +2034,18 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string name = 1;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -2301,7 +2063,6 @@ public Builder setName(java.lang.String value) { * </pre> * * <code>string name = 1;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -2311,8 +2072,6 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -2330,14 +2089,12 @@ public Builder clearName() { * </pre> * * <code>string name = 1;</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000008; @@ -2347,64 +2104,45 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2420,19 +2158,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2443,23 +2178,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2472,17 +2203,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2495,17 +2222,13 @@ public Builder clearCreateTime() { return this; } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -2513,67 +2236,52 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private long sizeBytes_; + private long sizeBytes_ ; /** - * - * * <pre> * Output only. Size of the backup in bytes. * </pre> * * <code>int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The sizeBytes. */ @java.lang.Override @@ -2581,14 +2289,11 @@ public long getSizeBytes() { return sizeBytes_; } /** - * - * * <pre> * Output only. Size of the backup in bytes. * </pre> * * <code>int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @param value The sizeBytes to set. * @return This builder for chaining. */ @@ -2600,14 +2305,11 @@ public Builder setSizeBytes(long value) { return this; } /** - * - * * <pre> * Output only. Size of the backup in bytes. * </pre> * * <code>int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return This builder for chaining. */ public Builder clearSizeBytes() { @@ -2619,33 +2321,22 @@ public Builder clearSizeBytes() { private int state_ = 0; /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2656,37 +2347,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ @java.lang.Override public com.google.spanner.admin.database.v1.Backup.State getState() { - com.google.spanner.admin.database.v1.Backup.State result = - com.google.spanner.admin.database.v1.Backup.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.database.v1.Backup.State.UNRECOGNIZED - : result; + com.google.spanner.admin.database.v1.Backup.State result = com.google.spanner.admin.database.v1.Backup.State.forNumber(state_); + return result == null ? com.google.spanner.admin.database.v1.Backup.State.UNRECOGNIZED : result; } /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The state to set. * @return This builder for chaining. */ @@ -2700,16 +2378,11 @@ public Builder setState(com.google.spanner.admin.database.v1.Backup.State value) return this; } /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearState() { @@ -2721,7 +2394,6 @@ public Builder clearState() { private com.google.protobuf.LazyStringArrayList referencingDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureReferencingDatabasesIsMutable() { if (!referencingDatabases_.isModifiable()) { referencingDatabases_ = new com.google.protobuf.LazyStringArrayList(referencingDatabases_); @@ -2729,8 +2401,6 @@ private void ensureReferencingDatabasesIsMutable() { bitField0_ |= 0x00000080; } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2741,19 +2411,15 @@ private void ensureReferencingDatabasesIsMutable() { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return A list containing the referencingDatabases. */ - public com.google.protobuf.ProtocolStringList getReferencingDatabasesList() { + public com.google.protobuf.ProtocolStringList + getReferencingDatabasesList() { referencingDatabases_.makeImmutable(); return referencingDatabases_; } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2764,18 +2430,13 @@ public com.google.protobuf.ProtocolStringList getReferencingDatabasesList() { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The count of referencingDatabases. */ public int getReferencingDatabasesCount() { return referencingDatabases_.size(); } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2786,10 +2447,7 @@ public int getReferencingDatabasesCount() { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The referencingDatabases at the given index. */ @@ -2797,8 +2455,6 @@ public java.lang.String getReferencingDatabases(int index) { return referencingDatabases_.get(index); } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2809,19 +2465,15 @@ public java.lang.String getReferencingDatabases(int index) { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the referencingDatabases at the given index. */ - public com.google.protobuf.ByteString getReferencingDatabasesBytes(int index) { + public com.google.protobuf.ByteString + getReferencingDatabasesBytes(int index) { return referencingDatabases_.getByteString(index); } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2832,18 +2484,14 @@ public com.google.protobuf.ByteString getReferencingDatabasesBytes(int index) { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index to set the value at. * @param value The referencingDatabases to set. * @return This builder for chaining. */ - public Builder setReferencingDatabases(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReferencingDatabases( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReferencingDatabasesIsMutable(); referencingDatabases_.set(index, value); bitField0_ |= 0x00000080; @@ -2851,8 +2499,6 @@ public Builder setReferencingDatabases(int index, java.lang.String value) { return this; } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2863,17 +2509,13 @@ public Builder setReferencingDatabases(int index, java.lang.String value) { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param value The referencingDatabases to add. * @return This builder for chaining. */ - public Builder addReferencingDatabases(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReferencingDatabases( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReferencingDatabasesIsMutable(); referencingDatabases_.add(value); bitField0_ |= 0x00000080; @@ -2881,8 +2523,6 @@ public Builder addReferencingDatabases(java.lang.String value) { return this; } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2893,23 +2533,20 @@ public Builder addReferencingDatabases(java.lang.String value) { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param values The referencingDatabases to add. * @return This builder for chaining. */ - public Builder addAllReferencingDatabases(java.lang.Iterable<java.lang.String> values) { + public Builder addAllReferencingDatabases( + java.lang.Iterable<java.lang.String> values) { ensureReferencingDatabasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referencingDatabases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, referencingDatabases_); bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2920,22 +2557,17 @@ public Builder addAllReferencingDatabases(java.lang.Iterable<java.lang.String> v * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearReferencingDatabases() { - referencingDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; + referencingDatabases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; onChanged(); return this; } /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -2946,17 +2578,13 @@ public Builder clearReferencingDatabases() { * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param value The bytes of the referencingDatabases to add. * @return This builder for chaining. */ - public Builder addReferencingDatabasesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReferencingDatabasesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureReferencingDatabasesIsMutable(); referencingDatabases_.add(value); @@ -2967,58 +2595,39 @@ public Builder addReferencingDatabasesBytes(com.google.protobuf.ByteString value private com.google.spanner.admin.database.v1.EncryptionInfo encryptionInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.EncryptionInfo, - com.google.spanner.admin.database.v1.EncryptionInfo.Builder, - com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> - encryptionInfoBuilder_; + com.google.spanner.admin.database.v1.EncryptionInfo, com.google.spanner.admin.database.v1.EncryptionInfo.Builder, com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> encryptionInfoBuilder_; /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionInfo field is set. */ public boolean hasEncryptionInfo() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionInfo. */ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo() { if (encryptionInfoBuilder_ == null) { - return encryptionInfo_ == null - ? com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance() - : encryptionInfo_; + return encryptionInfo_ == null ? com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance() : encryptionInfo_; } else { return encryptionInfoBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setEncryptionInfo(com.google.spanner.admin.database.v1.EncryptionInfo value) { if (encryptionInfoBuilder_ == null) { @@ -3034,15 +2643,11 @@ public Builder setEncryptionInfo(com.google.spanner.admin.database.v1.Encryption return this; } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setEncryptionInfo( com.google.spanner.admin.database.v1.EncryptionInfo.Builder builderForValue) { @@ -3056,22 +2661,17 @@ public Builder setEncryptionInfo( return this; } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeEncryptionInfo(com.google.spanner.admin.database.v1.EncryptionInfo value) { if (encryptionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && encryptionInfo_ != null - && encryptionInfo_ - != com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + encryptionInfo_ != null && + encryptionInfo_ != com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance()) { getEncryptionInfoBuilder().mergeFrom(value); } else { encryptionInfo_ = value; @@ -3084,15 +2684,11 @@ public Builder mergeEncryptionInfo(com.google.spanner.admin.database.v1.Encrypti return this; } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearEncryptionInfo() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3105,15 +2701,11 @@ public Builder clearEncryptionInfo() { return this; } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() { bitField0_ |= 0x00000100; @@ -3121,49 +2713,36 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder getEncryption return getEncryptionInfoFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder - getEncryptionInfoOrBuilder() { + public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { if (encryptionInfoBuilder_ != null) { return encryptionInfoBuilder_.getMessageOrBuilder(); } else { - return encryptionInfo_ == null - ? com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance() - : encryptionInfo_; + return encryptionInfo_ == null ? + com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance() : encryptionInfo_; } } /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.EncryptionInfo, - com.google.spanner.admin.database.v1.EncryptionInfo.Builder, - com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> + com.google.spanner.admin.database.v1.EncryptionInfo, com.google.spanner.admin.database.v1.EncryptionInfo.Builder, com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> getEncryptionInfoFieldBuilder() { if (encryptionInfoBuilder_ == null) { - encryptionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.EncryptionInfo, - com.google.spanner.admin.database.v1.EncryptionInfo.Builder, - com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder>( - getEncryptionInfo(), getParentForChildren(), isClean()); + encryptionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.EncryptionInfo, com.google.spanner.admin.database.v1.EncryptionInfo.Builder, com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder>( + getEncryptionInfo(), + getParentForChildren(), + isClean()); encryptionInfo_ = null; } return encryptionInfoBuilder_; @@ -3171,33 +2750,22 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder getEncryption private int databaseDialect_ = 0; /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for databaseDialect. */ - @java.lang.Override - public int getDatabaseDialectValue() { + @java.lang.Override public int getDatabaseDialectValue() { return databaseDialect_; } /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The enum numeric value on the wire for databaseDialect to set. * @return This builder for chaining. */ @@ -3208,37 +2776,24 @@ public Builder setDatabaseDialectValue(int value) { return this; } /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The databaseDialect. */ @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { - com.google.spanner.admin.database.v1.DatabaseDialect result = - com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); - return result == null - ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED - : result; + com.google.spanner.admin.database.v1.DatabaseDialect result = com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); + return result == null ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED : result; } /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The databaseDialect to set. * @return This builder for chaining. */ @@ -3252,16 +2807,11 @@ public Builder setDatabaseDialect(com.google.spanner.admin.database.v1.DatabaseD return this; } /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearDatabaseDialect() { @@ -3273,7 +2823,6 @@ public Builder clearDatabaseDialect() { private com.google.protobuf.LazyStringArrayList referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureReferencingBackupsIsMutable() { if (!referencingBackups_.isModifiable()) { referencingBackups_ = new com.google.protobuf.LazyStringArrayList(referencingBackups_); @@ -3281,8 +2830,6 @@ private void ensureReferencingBackupsIsMutable() { bitField0_ |= 0x00000400; } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3293,19 +2840,15 @@ private void ensureReferencingBackupsIsMutable() { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return A list containing the referencingBackups. */ - public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { + public com.google.protobuf.ProtocolStringList + getReferencingBackupsList() { referencingBackups_.makeImmutable(); return referencingBackups_; } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3316,18 +2859,13 @@ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The count of referencingBackups. */ public int getReferencingBackupsCount() { return referencingBackups_.size(); } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3338,10 +2876,7 @@ public int getReferencingBackupsCount() { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The referencingBackups at the given index. */ @@ -3349,8 +2884,6 @@ public java.lang.String getReferencingBackups(int index) { return referencingBackups_.get(index); } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3361,19 +2894,15 @@ public java.lang.String getReferencingBackups(int index) { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ - public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { + public com.google.protobuf.ByteString + getReferencingBackupsBytes(int index) { return referencingBackups_.getByteString(index); } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3384,18 +2913,14 @@ public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index to set the value at. * @param value The referencingBackups to set. * @return This builder for chaining. */ - public Builder setReferencingBackups(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReferencingBackups( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReferencingBackupsIsMutable(); referencingBackups_.set(index, value); bitField0_ |= 0x00000400; @@ -3403,8 +2928,6 @@ public Builder setReferencingBackups(int index, java.lang.String value) { return this; } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3415,17 +2938,13 @@ public Builder setReferencingBackups(int index, java.lang.String value) { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param value The referencingBackups to add. * @return This builder for chaining. */ - public Builder addReferencingBackups(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReferencingBackups( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReferencingBackupsIsMutable(); referencingBackups_.add(value); bitField0_ |= 0x00000400; @@ -3433,8 +2952,6 @@ public Builder addReferencingBackups(java.lang.String value) { return this; } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3445,23 +2962,20 @@ public Builder addReferencingBackups(java.lang.String value) { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param values The referencingBackups to add. * @return This builder for chaining. */ - public Builder addAllReferencingBackups(java.lang.Iterable<java.lang.String> values) { + public Builder addAllReferencingBackups( + java.lang.Iterable<java.lang.String> values) { ensureReferencingBackupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referencingBackups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, referencingBackups_); bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3472,22 +2986,17 @@ public Builder addAllReferencingBackups(java.lang.Iterable<java.lang.String> val * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearReferencingBackups() { - referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - ; + referencingBackups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400);; onChanged(); return this; } /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -3498,17 +3007,13 @@ public Builder clearReferencingBackups() { * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param value The bytes of the referencingBackups to add. * @return This builder for chaining. */ - public Builder addReferencingBackupsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReferencingBackupsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureReferencingBackupsIsMutable(); referencingBackups_.add(value); @@ -3519,13 +3024,8 @@ public Builder addReferencingBackupsBytes(com.google.protobuf.ByteString value) private com.google.protobuf.Timestamp maxExpireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - maxExpireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> maxExpireTimeBuilder_; /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3534,18 +3034,13 @@ public Builder addReferencingBackupsBytes(com.google.protobuf.ByteString value) * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the maxExpireTime field is set. */ public boolean hasMaxExpireTime() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3554,24 +3049,17 @@ public boolean hasMaxExpireTime() { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The maxExpireTime. */ public com.google.protobuf.Timestamp getMaxExpireTime() { if (maxExpireTimeBuilder_ == null) { - return maxExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : maxExpireTime_; + return maxExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maxExpireTime_; } else { return maxExpireTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3580,9 +3068,7 @@ public com.google.protobuf.Timestamp getMaxExpireTime() { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setMaxExpireTime(com.google.protobuf.Timestamp value) { if (maxExpireTimeBuilder_ == null) { @@ -3598,8 +3084,6 @@ public Builder setMaxExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3608,11 +3092,10 @@ public Builder setMaxExpireTime(com.google.protobuf.Timestamp value) { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setMaxExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setMaxExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (maxExpireTimeBuilder_ == null) { maxExpireTime_ = builderForValue.build(); } else { @@ -3623,8 +3106,6 @@ public Builder setMaxExpireTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3633,15 +3114,13 @@ public Builder setMaxExpireTime(com.google.protobuf.Timestamp.Builder builderFor * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeMaxExpireTime(com.google.protobuf.Timestamp value) { if (maxExpireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && maxExpireTime_ != null - && maxExpireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + maxExpireTime_ != null && + maxExpireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMaxExpireTimeBuilder().mergeFrom(value); } else { maxExpireTime_ = value; @@ -3654,8 +3133,6 @@ public Builder mergeMaxExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3664,9 +3141,7 @@ public Builder mergeMaxExpireTime(com.google.protobuf.Timestamp value) { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearMaxExpireTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3679,8 +3154,6 @@ public Builder clearMaxExpireTime() { return this; } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3689,9 +3162,7 @@ public Builder clearMaxExpireTime() { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getMaxExpireTimeBuilder() { bitField0_ |= 0x00000800; @@ -3699,8 +3170,6 @@ public com.google.protobuf.Timestamp.Builder getMaxExpireTimeBuilder() { return getMaxExpireTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3709,22 +3178,17 @@ public com.google.protobuf.Timestamp.Builder getMaxExpireTimeBuilder() { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getMaxExpireTimeOrBuilder() { if (maxExpireTimeBuilder_ != null) { return maxExpireTimeBuilder_.getMessageOrBuilder(); } else { - return maxExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : maxExpireTime_; + return maxExpireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : maxExpireTime_; } } /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -3733,29 +3197,24 @@ public com.google.protobuf.TimestampOrBuilder getMaxExpireTimeOrBuilder() { * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMaxExpireTimeFieldBuilder() { if (maxExpireTimeBuilder_ == null) { - maxExpireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getMaxExpireTime(), getParentForChildren(), isClean()); + maxExpireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getMaxExpireTime(), + getParentForChildren(), + isClean()); maxExpireTime_ = null; } return maxExpireTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3765,12 +3224,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.Backup) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.Backup) private static final com.google.spanner.admin.database.v1.Backup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.Backup(); } @@ -3779,27 +3238,27 @@ public static com.google.spanner.admin.database.v1.Backup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<Backup> PARSER = - new com.google.protobuf.AbstractParser<Backup>() { - @java.lang.Override - public Backup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<Backup> + PARSER = new com.google.protobuf.AbstractParser<Backup>() { + @java.lang.Override + public Backup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<Backup> parser() { return PARSER; @@ -3814,4 +3273,6 @@ public com.google.protobuf.Parser<Backup> getParserForType() { public com.google.spanner.admin.database.v1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java similarity index 73% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java index 6d44eae9ef3..88dc10209f9 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Information about a backup. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.BackupInfo} */ -public final class BackupInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BackupInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.BackupInfo) BackupInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BackupInfo.newBuilder() to construct. private BackupInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private BackupInfo() { backup_ = ""; sourceDatabase_ = ""; @@ -44,38 +26,33 @@ private BackupInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BackupInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_BackupInfo_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_BackupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.BackupInfo.class, - com.google.spanner.admin.database.v1.BackupInfo.Builder.class); + com.google.spanner.admin.database.v1.BackupInfo.class, com.google.spanner.admin.database.v1.BackupInfo.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object backup_ = ""; /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The backup. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backup_ = s; return s; } } /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for backup. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupBytes() { + public com.google.protobuf.ByteString + getBackupBytes() { java.lang.Object ref = backup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backup_ = b; return b; } else { @@ -117,8 +94,6 @@ public com.google.protobuf.ByteString getBackupBytes() { public static final int VERSION_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp versionTime_; /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -128,7 +103,6 @@ public com.google.protobuf.ByteString getBackupBytes() { * </pre> * * <code>.google.protobuf.Timestamp version_time = 4;</code> - * * @return Whether the versionTime field is set. */ @java.lang.Override @@ -136,8 +110,6 @@ public boolean hasVersionTime() { return versionTime_ != null; } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -147,7 +119,6 @@ public boolean hasVersionTime() { * </pre> * * <code>.google.protobuf.Timestamp version_time = 4;</code> - * * @return The versionTime. */ @java.lang.Override @@ -155,8 +126,6 @@ public com.google.protobuf.Timestamp getVersionTime() { return versionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -175,15 +144,12 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +157,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> - * * @return The createTime. */ @java.lang.Override @@ -207,8 +170,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -222,18 +183,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int SOURCE_DATABASE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object sourceDatabase_ = ""; /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The sourceDatabase. */ @java.lang.Override @@ -242,29 +199,29 @@ public java.lang.String getSourceDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceDatabase_ = s; return s; } } /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for sourceDatabase. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceDatabaseBytes() { + public com.google.protobuf.ByteString + getSourceDatabaseBytes() { java.lang.Object ref = sourceDatabase_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceDatabase_ = b; return b; } else { @@ -273,7 +230,6 @@ public com.google.protobuf.ByteString getSourceDatabaseBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +241,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backup_); } @@ -311,13 +268,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, backup_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDatabase_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceDatabase_); } if (versionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVersionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getVersionTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -327,24 +286,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.BackupInfo)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.BackupInfo other = - (com.google.spanner.admin.database.v1.BackupInfo) obj; + com.google.spanner.admin.database.v1.BackupInfo other = (com.google.spanner.admin.database.v1.BackupInfo) obj; - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; if (hasVersionTime() != other.hasVersionTime()) return false; if (hasVersionTime()) { - if (!getVersionTime().equals(other.getVersionTime())) return false; + if (!getVersionTime() + .equals(other.getVersionTime())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!getSourceDatabase().equals(other.getSourceDatabase())) return false; + if (!getSourceDatabase() + .equals(other.getSourceDatabase())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -373,136 +335,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.admin.database.v1.BackupInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.admin.database.v1.BackupInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.BackupInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.BackupInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.BackupInfo 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.admin.database.v1.BackupInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.BackupInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.BackupInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.BackupInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.BackupInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.BackupInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.BackupInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.BackupInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.BackupInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.database.v1.BackupInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Information about a backup. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.BackupInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.BackupInfo) com.google.spanner.admin.database.v1.BackupInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_BackupInfo_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_BackupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.BackupInfo.class, - com.google.spanner.admin.database.v1.BackupInfo.Builder.class); + com.google.spanner.admin.database.v1.BackupInfo.class, com.google.spanner.admin.database.v1.BackupInfo.Builder.class); } // Construct using com.google.spanner.admin.database.v1.BackupInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -523,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor; } @java.lang.Override @@ -544,11 +502,8 @@ public com.google.spanner.admin.database.v1.BackupInfo build() { @java.lang.Override public com.google.spanner.admin.database.v1.BackupInfo buildPartial() { - com.google.spanner.admin.database.v1.BackupInfo result = - new com.google.spanner.admin.database.v1.BackupInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.BackupInfo result = new com.google.spanner.admin.database.v1.BackupInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -559,11 +514,14 @@ private void buildPartial0(com.google.spanner.admin.database.v1.BackupInfo resul result.backup_ = backup_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.versionTime_ = - versionTimeBuilder_ == null ? versionTime_ : versionTimeBuilder_.build(); + result.versionTime_ = versionTimeBuilder_ == null + ? versionTime_ + : versionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.sourceDatabase_ = sourceDatabase_; @@ -574,39 +532,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.BackupInfo resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.BackupInfo) { - return mergeFrom((com.google.spanner.admin.database.v1.BackupInfo) other); + return mergeFrom((com.google.spanner.admin.database.v1.BackupInfo)other); } else { super.mergeFrom(other); return this; @@ -614,8 +571,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.BackupInfo other) { - if (other == com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance()) return this; if (!other.getBackup().isEmpty()) { backup_ = other.backup_; bitField0_ |= 0x00000001; @@ -658,37 +614,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - backup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - sourceDatabase_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - input.readMessage(getVersionTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + backup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + sourceDatabase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + input.readMessage( + getVersionTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -698,25 +653,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object backup_ = ""; /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The backup. */ public java.lang.String getBackup() { java.lang.Object ref = backup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backup_ = s; return s; @@ -725,21 +677,20 @@ public java.lang.String getBackup() { } } /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for backup. */ - public com.google.protobuf.ByteString getBackupBytes() { + public com.google.protobuf.ByteString + getBackupBytes() { java.lang.Object ref = backup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backup_ = b; return b; } else { @@ -747,35 +698,28 @@ public com.google.protobuf.ByteString getBackupBytes() { } } /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The backup to set. * @return This builder for chaining. */ - public Builder setBackup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backup_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearBackup() { @@ -785,21 +729,17 @@ public Builder clearBackup() { return this; } /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for backup to set. * @return This builder for chaining. */ - public Builder setBackupBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backup_ = value; bitField0_ |= 0x00000001; @@ -809,13 +749,8 @@ public Builder setBackupBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> versionTimeBuilder_; /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -825,15 +760,12 @@ public Builder setBackupBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>.google.protobuf.Timestamp version_time = 4;</code> - * * @return Whether the versionTime field is set. */ public boolean hasVersionTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -843,21 +775,16 @@ public boolean hasVersionTime() { * </pre> * * <code>.google.protobuf.Timestamp version_time = 4;</code> - * * @return The versionTime. */ public com.google.protobuf.Timestamp getVersionTime() { if (versionTimeBuilder_ == null) { - return versionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : versionTime_; + return versionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } else { return versionTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -882,8 +809,6 @@ public Builder setVersionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -894,7 +819,8 @@ public Builder setVersionTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp version_time = 4;</code> */ - public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setVersionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (versionTimeBuilder_ == null) { versionTime_ = builderForValue.build(); } else { @@ -905,8 +831,6 @@ public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -919,9 +843,9 @@ public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { if (versionTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && versionTime_ != null - && versionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + versionTime_ != null && + versionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getVersionTimeBuilder().mergeFrom(value); } else { versionTime_ = value; @@ -934,8 +858,6 @@ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -957,8 +879,6 @@ public Builder clearVersionTime() { return this; } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -975,8 +895,6 @@ public com.google.protobuf.Timestamp.Builder getVersionTimeBuilder() { return getVersionTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -991,14 +909,11 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { if (versionTimeBuilder_ != null) { return versionTimeBuilder_.getMessageOrBuilder(); } else { - return versionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : versionTime_; + return versionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } } /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -1010,17 +925,14 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { * <code>.google.protobuf.Timestamp version_time = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1028,49 +940,36 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -1092,8 +991,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -1101,7 +998,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1112,8 +1010,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -1123,9 +1019,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1138,8 +1034,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -1158,8 +1052,6 @@ public Builder clearCreateTime() { return this; } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -1173,8 +1065,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -1186,14 +1076,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -1202,17 +1089,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * <code>.google.protobuf.Timestamp create_time = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1220,20 +1104,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object sourceDatabase_ = ""; /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The sourceDatabase. */ public java.lang.String getSourceDatabase() { java.lang.Object ref = sourceDatabase_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceDatabase_ = s; return s; @@ -1242,21 +1124,20 @@ public java.lang.String getSourceDatabase() { } } /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for sourceDatabase. */ - public com.google.protobuf.ByteString getSourceDatabaseBytes() { + public com.google.protobuf.ByteString + getSourceDatabaseBytes() { java.lang.Object ref = sourceDatabase_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceDatabase_ = b; return b; } else { @@ -1264,35 +1145,28 @@ public com.google.protobuf.ByteString getSourceDatabaseBytes() { } } /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @param value The sourceDatabase to set. * @return This builder for chaining. */ - public Builder setSourceDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceDatabase_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearSourceDatabase() { @@ -1302,30 +1176,26 @@ public Builder clearSourceDatabase() { return this; } /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for sourceDatabase to set. * @return This builder for chaining. */ - public Builder setSourceDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceDatabase_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1335,12 +1205,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.BackupInfo) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.BackupInfo) private static final com.google.spanner.admin.database.v1.BackupInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.BackupInfo(); } @@ -1349,27 +1219,27 @@ public static com.google.spanner.admin.database.v1.BackupInfo getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<BackupInfo> PARSER = - new com.google.protobuf.AbstractParser<BackupInfo>() { - @java.lang.Override - public BackupInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<BackupInfo> + PARSER = new com.google.protobuf.AbstractParser<BackupInfo>() { + @java.lang.Override + public BackupInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<BackupInfo> parser() { return PARSER; @@ -1384,4 +1254,6 @@ public com.google.protobuf.Parser<BackupInfo> getParserForType() { public com.google.spanner.admin.database.v1.BackupInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java similarity index 80% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java index b90885b9e84..5cad0cc423e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java @@ -1,56 +1,33 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface BackupInfoOrBuilder - extends +public interface BackupInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.BackupInfo) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The backup. */ java.lang.String getBackup(); /** - * - * * <pre> * Name of the backup. * </pre> * * <code>string backup = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for backup. */ - com.google.protobuf.ByteString getBackupBytes(); + com.google.protobuf.ByteString + getBackupBytes(); /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -60,13 +37,10 @@ public interface BackupInfoOrBuilder * </pre> * * <code>.google.protobuf.Timestamp version_time = 4;</code> - * * @return Whether the versionTime field is set. */ boolean hasVersionTime(); /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -76,13 +50,10 @@ public interface BackupInfoOrBuilder * </pre> * * <code>.google.protobuf.Timestamp version_time = 4;</code> - * * @return The versionTime. */ com.google.protobuf.Timestamp getVersionTime(); /** - * - * * <pre> * The backup contains an externally consistent copy of `source_database` at * the timestamp specified by `version_time`. If the @@ -96,34 +67,26 @@ public interface BackupInfoOrBuilder com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder(); /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * * <pre> * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was * received. @@ -134,27 +97,22 @@ public interface BackupInfoOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The sourceDatabase. */ java.lang.String getSourceDatabase(); /** - * - * * <pre> * Name of the database the backup was created from. * </pre> * * <code>string source_database = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for sourceDatabase. */ - com.google.protobuf.ByteString getSourceDatabaseBytes(); + com.google.protobuf.ByteString + getSourceDatabaseBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java similarity index 100% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java similarity index 78% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java index c7d7a6e60e2..7278d5c24e8 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface BackupOrBuilder - extends +public interface BackupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.Backup) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -35,13 +17,10 @@ public interface BackupOrBuilder * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ java.lang.String getDatabase(); /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Name of the database from which this backup was @@ -51,14 +30,12 @@ public interface BackupOrBuilder * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -67,13 +44,10 @@ public interface BackupOrBuilder * </pre> * * <code>.google.protobuf.Timestamp version_time = 9;</code> - * * @return Whether the versionTime field is set. */ boolean hasVersionTime(); /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -82,13 +56,10 @@ public interface BackupOrBuilder * </pre> * * <code>.google.protobuf.Timestamp version_time = 9;</code> - * * @return The versionTime. */ com.google.protobuf.Timestamp getVersionTime(); /** - * - * * <pre> * The backup will contain an externally consistent copy of the database at * the timestamp specified by `version_time`. If `version_time` is not @@ -101,8 +72,6 @@ public interface BackupOrBuilder com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder(); /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -113,13 +82,10 @@ public interface BackupOrBuilder * </pre> * * <code>.google.protobuf.Timestamp expire_time = 3;</code> - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -130,13 +96,10 @@ public interface BackupOrBuilder * </pre> * * <code>.google.protobuf.Timestamp expire_time = 3;</code> - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * * <pre> * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * operation. The expiration time of the backup, with microseconds @@ -151,8 +114,6 @@ public interface BackupOrBuilder com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -170,13 +131,10 @@ public interface BackupOrBuilder * </pre> * * <code>string name = 1;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. @@ -194,100 +152,74 @@ public interface BackupOrBuilder * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * * <pre> * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] * request is received. If the request does not specify `version_time`, the * `version_time` of the backup will be equivalent to the `create_time`. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * * <pre> * Output only. Size of the backup in bytes. * </pre> * * <code>int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The sizeBytes. */ long getSizeBytes(); /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * * <pre> * Output only. The current state of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ com.google.spanner.admin.database.v1.Backup.State getState(); /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -298,16 +230,12 @@ public interface BackupOrBuilder * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return A list containing the referencingDatabases. */ - java.util.List<java.lang.String> getReferencingDatabasesList(); + java.util.List<java.lang.String> + getReferencingDatabasesList(); /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -318,16 +246,11 @@ public interface BackupOrBuilder * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The count of referencingDatabases. */ int getReferencingDatabasesCount(); /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -338,17 +261,12 @@ public interface BackupOrBuilder * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The referencingDatabases at the given index. */ java.lang.String getReferencingDatabases(int index); /** - * - * * <pre> * Output only. The names of the restored databases that reference the backup. * The database names are of @@ -359,88 +277,60 @@ public interface BackupOrBuilder * to the backup is removed. * </pre> * - * <code> - * repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the referencingDatabases at the given index. */ - com.google.protobuf.ByteString getReferencingDatabasesBytes(int index); + com.google.protobuf.ByteString + getReferencingDatabasesBytes(int index); /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionInfo field is set. */ boolean hasEncryptionInfo(); /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionInfo. */ com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(); /** - * - * * <pre> * Output only. The encryption information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder(); /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for databaseDialect. */ int getDatabaseDialectValue(); /** - * - * * <pre> * Output only. The database dialect information for the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The databaseDialect. */ com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect(); /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -451,16 +341,12 @@ public interface BackupOrBuilder * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return A list containing the referencingBackups. */ - java.util.List<java.lang.String> getReferencingBackupsList(); + java.util.List<java.lang.String> + getReferencingBackupsList(); /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -471,16 +357,11 @@ public interface BackupOrBuilder * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The count of referencingBackups. */ int getReferencingBackupsCount(); /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -491,17 +372,12 @@ public interface BackupOrBuilder * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The referencingBackups at the given index. */ java.lang.String getReferencingBackups(int index); /** - * - * * <pre> * Output only. The names of the destination backups being created by copying * this source backup. The backup names are of the form @@ -512,18 +388,14 @@ public interface BackupOrBuilder * destination backup is deleted), the reference to the backup is removed. * </pre> * - * <code> - * repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ - com.google.protobuf.ByteString getReferencingBackupsBytes(int index); + com.google.protobuf.ByteString + getReferencingBackupsBytes(int index); /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -532,16 +404,11 @@ public interface BackupOrBuilder * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the maxExpireTime field is set. */ boolean hasMaxExpireTime(); /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -550,16 +417,11 @@ public interface BackupOrBuilder * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The maxExpireTime. */ com.google.protobuf.Timestamp getMaxExpireTime(); /** - * - * * <pre> * Output only. The max allowed expiration time of the backup, with * microseconds granularity. A backup's expiration time can be configured in @@ -568,9 +430,7 @@ public interface BackupOrBuilder * less than `Backup.max_expire_time`. * </pre> * - * <code> - * .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getMaxExpireTimeOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java new file mode 100644 index 00000000000..2c7474f9758 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java @@ -0,0 +1,324 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/backup.proto + +package com.google.spanner.admin.database.v1; + +public final class BackupProto { + private BackupProto() {} + 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_admin_database_v1_Backup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_CopyBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_BackupInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_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/admin/database/v1/backu" + + "p.proto\022 google.spanner.admin.database.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032#google/longrunnin" + + "g/operations.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\032-google/spanner/admin/database/v1/" + + "common.proto\"\313\006\n\006Backup\0226\n\010database\030\002 \001(" + + "\tB$\372A!\n\037spanner.googleapis.com/Database\022" + + "0\n\014version_time\030\t \001(\0132\032.google.protobuf." + + "Timestamp\022/\n\013expire_time\030\003 \001(\0132\032.google." + + "protobuf.Timestamp\022\014\n\004name\030\001 \001(\t\0225\n\013crea" + + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\022\030\n\nsize_bytes\030\005 \001(\003B\004\342A\001\003\022C\n\005sta" + + "te\030\006 \001(\0162..google.spanner.admin.database" + + ".v1.Backup.StateB\004\342A\001\003\022G\n\025referencing_da" + + "tabases\030\007 \003(\tB(\342A\001\003\372A!\n\037spanner.googleap" + + "is.com/Database\022O\n\017encryption_info\030\010 \001(\013" + + "20.google.spanner.admin.database.v1.Encr" + + "yptionInfoB\004\342A\001\003\022Q\n\020database_dialect\030\n \001" + + "(\01621.google.spanner.admin.database.v1.Da" + + "tabaseDialectB\004\342A\001\003\022C\n\023referencing_backu" + + "ps\030\013 \003(\tB&\342A\001\003\372A\037\n\035spanner.googleapis.co" + + "m/Backup\0229\n\017max_expire_time\030\014 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\"7\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005REA" + + "DY\020\002:\\\352AY\n\035spanner.googleapis.com/Backup" + + "\0228projects/{project}/instances/{instance" + + "}/backups/{backup}\"\211\002\n\023CreateBackupReque" + + "st\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.goo" + + "gleapis.com/Instance\022\027\n\tbackup_id\030\002 \001(\tB" + + "\004\342A\001\002\022>\n\006backup\030\003 \001(\0132(.google.spanner.a" + + "dmin.database.v1.BackupB\004\342A\001\002\022_\n\021encrypt" + + "ion_config\030\004 \001(\0132>.google.spanner.admin." + + "database.v1.CreateBackupEncryptionConfig" + + "B\004\342A\001\001\"\370\001\n\024CreateBackupMetadata\0220\n\004name\030" + + "\001 \001(\tB\"\372A\037\n\035spanner.googleapis.com/Backu" + + "p\0226\n\010database\030\002 \001(\tB$\372A!\n\037spanner.google" + + "apis.com/Database\022E\n\010progress\030\003 \001(\01323.go" + + "ogle.spanner.admin.database.v1.Operation" + + "Progress\022/\n\013cancel_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"\273\002\n\021CopyBackupRequest\022" + + "8\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.google" + + "apis.com/Instance\022\027\n\tbackup_id\030\002 \001(\tB\004\342A" + + "\001\002\022=\n\rsource_backup\030\003 \001(\tB&\342A\001\002\372A\037\n\035span" + + "ner.googleapis.com/Backup\0225\n\013expire_time" + + "\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002" + + "\022]\n\021encryption_config\030\005 \001(\0132<.google.spa" + + "nner.admin.database.v1.CopyBackupEncrypt" + + "ionConfigB\004\342A\001\001\"\371\001\n\022CopyBackupMetadata\0220" + + "\n\004name\030\001 \001(\tB\"\372A\037\n\035spanner.googleapis.co" + + "m/Backup\0229\n\rsource_backup\030\002 \001(\tB\"\372A\037\n\035sp" + + "anner.googleapis.com/Backup\022E\n\010progress\030" + + "\003 \001(\01323.google.spanner.admin.database.v1" + + ".OperationProgress\022/\n\013cancel_time\030\004 \001(\0132" + + "\032.google.protobuf.Timestamp\"\214\001\n\023UpdateBa" + + "ckupRequest\022>\n\006backup\030\001 \001(\0132(.google.spa" + + "nner.admin.database.v1.BackupB\004\342A\001\002\0225\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\002\"H\n\020GetBackupRequest\0224\n\004name\030\001" + + " \001(\tB&\342A\001\002\372A\037\n\035spanner.googleapis.com/Ba" + + "ckup\"K\n\023DeleteBackupRequest\0224\n\004name\030\001 \001(" + + "\tB&\342A\001\002\372A\037\n\035spanner.googleapis.com/Backu" + + "p\"\205\001\n\022ListBackupsRequest\0228\n\006parent\030\001 \001(\t" + + "B(\342A\001\002\372A!\n\037spanner.googleapis.com/Instan" + + "ce\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" + + "\npage_token\030\004 \001(\t\"i\n\023ListBackupsResponse" + + "\0229\n\007backups\030\001 \003(\0132(.google.spanner.admin" + + ".database.v1.Backup\022\027\n\017next_page_token\030\002" + + " \001(\t\"\216\001\n\033ListBackupOperationsRequest\0228\n\006" + + "parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapi" + + "s.com/Instance\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_s" + + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"j\n\034ListBac" + + "kupOperationsResponse\0221\n\noperations\030\001 \003(" + + "\0132\035.google.longrunning.Operation\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\342\001\n\nBackupInfo\0222\n\006back" + + "up\030\001 \001(\tB\"\372A\037\n\035spanner.googleapis.com/Ba" + + "ckup\0220\n\014version_time\030\004 \001(\0132\032.google.prot" + + "obuf.Timestamp\022/\n\013create_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022=\n\017source_databa" + + "se\030\003 \001(\tB$\372A!\n\037spanner.googleapis.com/Da" + + "tabase\"\337\002\n\034CreateBackupEncryptionConfig\022" + + "l\n\017encryption_type\030\001 \001(\0162M.google.spanne" + + "r.admin.database.v1.CreateBackupEncrypti" + + "onConfig.EncryptionTypeB\004\342A\001\002\022@\n\014kms_key" + + "_name\030\002 \001(\tB*\342A\001\001\372A#\n!cloudkms.googleapi" + + "s.com/CryptoKey\"\216\001\n\016EncryptionType\022\037\n\033EN" + + "CRYPTION_TYPE_UNSPECIFIED\020\000\022\033\n\027USE_DATAB" + + "ASE_ENCRYPTION\020\001\022\035\n\031GOOGLE_DEFAULT_ENCRY" + + "PTION\020\002\022\037\n\033CUSTOMER_MANAGED_ENCRYPTION\020\003" + + "\"\353\002\n\032CopyBackupEncryptionConfig\022j\n\017encry" + + "ption_type\030\001 \001(\0162K.google.spanner.admin." + + "database.v1.CopyBackupEncryptionConfig.E" + + "ncryptionTypeB\004\342A\001\002\022@\n\014kms_key_name\030\002 \001(" + + "\tB*\342A\001\001\372A#\n!cloudkms.googleapis.com/Cryp" + + "toKey\"\236\001\n\016EncryptionType\022\037\n\033ENCRYPTION_T" + + "YPE_UNSPECIFIED\020\000\022+\n\'USE_CONFIG_DEFAULT_" + + "OR_BACKUP_ENCRYPTION\020\001\022\035\n\031GOOGLE_DEFAULT" + + "_ENCRYPTION\020\002\022\037\n\033CUSTOMER_MANAGED_ENCRYP" + + "TION\020\003B\375\001\n$com.google.spanner.admin.data" + + "base.v1B\013BackupProtoP\001ZFcloud.google.com" + + "/go/spanner/admin/database/apiv1/databas" + + "epb;databasepb\252\002&Google.Cloud.Spanner.Ad" + + "min.Database.V1\312\002&Google\\Cloud\\Spanner\\A" + + "dmin\\Database\\V1\352\002+Google::Cloud::Spanne" + + "r::Admin::Database::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.spanner.admin.database.v1.CommonProto.getDescriptor(), + }); + internal_static_google_spanner_admin_database_v1_Backup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_spanner_admin_database_v1_Backup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_Backup_descriptor, + new java.lang.String[] { "Database", "VersionTime", "ExpireTime", "Name", "CreateTime", "SizeBytes", "State", "ReferencingDatabases", "EncryptionInfo", "DatabaseDialect", "ReferencingBackups", "MaxExpireTime", }); + internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_spanner_admin_database_v1_CreateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor, + new java.lang.String[] { "Parent", "BackupId", "Backup", "EncryptionConfig", }); + internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor, + new java.lang.String[] { "Name", "Database", "Progress", "CancelTime", }); + internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_spanner_admin_database_v1_CopyBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor, + new java.lang.String[] { "Parent", "BackupId", "SourceBackup", "ExpireTime", "EncryptionConfig", }); + internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor, + new java.lang.String[] { "Name", "SourceBackup", "Progress", "CancelTime", }); + internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor, + new java.lang.String[] { "Backup", "UpdateMask", }); + internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_spanner_admin_database_v1_GetBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_spanner_admin_database_v1_ListBackupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_spanner_admin_database_v1_ListBackupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { "Backups", "NextPageToken", }); + internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor, + new java.lang.String[] { "Operations", "NextPageToken", }); + internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_spanner_admin_database_v1_BackupInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor, + new java.lang.String[] { "Backup", "VersionTime", "CreateTime", "SourceDatabase", }); + internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor, + new java.lang.String[] { "EncryptionType", "KmsKeyName", }); + internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor, + new java.lang.String[] { "EncryptionType", "KmsKeyName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.spanner.admin.database.v1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java new file mode 100644 index 00000000000..43f3403ed14 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java @@ -0,0 +1,118 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/common.proto + +package com.google.spanner.admin.database.v1; + +public final class CommonProto { + private CommonProto() {} + 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_admin_database_v1_OperationProgress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_OperationProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_EncryptionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_EncryptionInfo_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/admin/database/v1/commo" + + "n.proto\022 google.spanner.admin.database.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032\037google/protobuf/t" + + "imestamp.proto\032\027google/rpc/status.proto\"" + + "\213\001\n\021OperationProgress\022\030\n\020progress_percen" + + "t\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"P\n\020EncryptionConfi" + + "g\022<\n\014kms_key_name\030\002 \001(\tB&\372A#\n!cloudkms.g" + + "oogleapis.com/CryptoKey\"\305\002\n\016EncryptionIn" + + "fo\022T\n\017encryption_type\030\003 \001(\01625.google.spa" + + "nner.admin.database.v1.EncryptionInfo.Ty" + + "peB\004\342A\001\003\0223\n\021encryption_status\030\004 \001(\0132\022.go" + + "ogle.rpc.StatusB\004\342A\001\003\022J\n\017kms_key_version" + + "\030\002 \001(\tB1\342A\001\003\372A*\n(cloudkms.googleapis.com" + + "/CryptoKeyVersion\"\\\n\004Type\022\024\n\020TYPE_UNSPEC" + + "IFIED\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037" + + "\n\033CUSTOMER_MANAGED_ENCRYPTION\020\002*\\\n\017Datab" + + "aseDialect\022 \n\034DATABASE_DIALECT_UNSPECIFI" + + "ED\020\000\022\027\n\023GOOGLE_STANDARD_SQL\020\001\022\016\n\nPOSTGRE" + + "SQL\020\002B\242\004\n$com.google.spanner.admin.datab" + + "ase.v1B\013CommonProtoP\001ZFcloud.google.com/" + + "go/spanner/admin/database/apiv1/database" + + "pb;databasepb\252\002&Google.Cloud.Spanner.Adm" + + "in.Database.V1\312\002&Google\\Cloud\\Spanner\\Ad" + + "min\\Database\\V1\352\002+Google::Cloud::Spanner" + + "::Admin::Database::V1\352Ax\n!cloudkms.googl" + + "eapis.com/CryptoKey\022Sprojects/{project}/" + + "locations/{location}/keyRings/{key_ring}" + + "/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkms.g" + + "oogleapis.com/CryptoKeyVersion\022zprojects" + + "/{project}/locations/{location}/keyRings" + + "/{key_ring}/cryptoKeys/{crypto_key}/cryp" + + "toKeyVersions/{crypto_key_version}b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_spanner_admin_database_v1_OperationProgress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor, + new java.lang.String[] { "ProgressPercent", "StartTime", "EndTime", }); + internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_spanner_admin_database_v1_EncryptionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor, + new java.lang.String[] { "KmsKeyName", }); + internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_spanner_admin_database_v1_EncryptionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor, + new java.lang.String[] { "EncryptionType", "EncryptionStatus", "KmsKeyVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java similarity index 62% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java index 189d80f4cbb..a405b0dac3d 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Encryption configuration for the copied backup. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CopyBackupEncryptionConfig} */ -public final class CopyBackupEncryptionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CopyBackupEncryptionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.CopyBackupEncryptionConfig) CopyBackupEncryptionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CopyBackupEncryptionConfig.newBuilder() to construct. private CopyBackupEncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CopyBackupEncryptionConfig() { encryptionType_ = 0; kmsKeyName_ = ""; @@ -44,39 +26,34 @@ private CopyBackupEncryptionConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CopyBackupEncryptionConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.class, - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder.class); + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.class, com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder.class); } /** - * - * * <pre> * Encryption types for the backup. * </pre> * - * Protobuf enum {@code - * google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType} + * Protobuf enum {@code google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType} */ - public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { + public enum EncryptionType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Unspecified. Do not use. * </pre> @@ -85,8 +62,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_TYPE_UNSPECIFIED(0), /** - * - * * <pre> * This is the default option for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] * when [encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig] is not specified. @@ -98,8 +73,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION(1), /** - * - * * <pre> * Use Google default encryption. * </pre> @@ -108,8 +81,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ GOOGLE_DEFAULT_ENCRYPTION(2), /** - * - * * <pre> * Use customer managed encryption. If specified, `kms_key_name` * must contain a valid Cloud KMS key. @@ -122,8 +93,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Unspecified. Do not use. * </pre> @@ -132,8 +101,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCRYPTION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * This is the default option for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] * when [encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig] is not specified. @@ -145,8 +112,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION_VALUE = 1; /** - * - * * <pre> * Use Google default encryption. * </pre> @@ -155,8 +120,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_DEFAULT_ENCRYPTION_VALUE = 2; /** - * - * * <pre> * Use customer managed encryption. If specified, `kms_key_name` * must contain a valid Cloud KMS key. @@ -166,6 +129,7 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOMER_MANAGED_ENCRYPTION_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -190,53 +154,50 @@ public static EncryptionType valueOf(int value) { */ public static EncryptionType forNumber(int value) { switch (value) { - case 0: - return ENCRYPTION_TYPE_UNSPECIFIED; - case 1: - return USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION; - case 2: - return GOOGLE_DEFAULT_ENCRYPTION; - case 3: - return CUSTOMER_MANAGED_ENCRYPTION; - default: - return null; + case 0: return ENCRYPTION_TYPE_UNSPECIFIED; + case 1: return USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION; + case 2: return GOOGLE_DEFAULT_ENCRYPTION; + case 3: return CUSTOMER_MANAGED_ENCRYPTION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<EncryptionType> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<EncryptionType> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + EncryptionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<EncryptionType>() { + public EncryptionType findValueByNumber(int number) { + return EncryptionType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<EncryptionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<EncryptionType>() { - public EncryptionType findValueByNumber(int number) { - return EncryptionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDescriptor().getEnumTypes().get(0); } private static final EncryptionType[] VALUES = values(); - public static EncryptionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EncryptionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -256,54 +217,33 @@ private EncryptionType(int value) { public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 1; private int encryptionType_ = 0; /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ - @java.lang.Override - public int getEncryptionTypeValue() { + @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType - getEncryptionType() { - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType result = - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType.forNumber( - encryptionType_); - return result == null - ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType getEncryptionType() { + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType result = com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType.forNumber(encryptionType_); + return result == null ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType.UNRECOGNIZED : result; } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -312,10 +252,7 @@ public int getEncryptionTypeValue() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ @java.lang.Override @@ -324,15 +261,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -341,18 +277,17 @@ public java.lang.String getKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -361,7 +296,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,11 +307,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (encryptionType_ - != com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType - .ENCRYPTION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (encryptionType_ != com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, encryptionType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { @@ -392,11 +324,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encryptionType_ - != com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType - .ENCRYPTION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encryptionType_); + if (encryptionType_ != com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, encryptionType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); @@ -409,16 +339,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig other = - (com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig) obj; + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig other = (com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig) obj; if (encryptionType_ != other.encryptionType_) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -440,136 +370,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig 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.admin.database.v1.CopyBackupEncryptionConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Encryption configuration for the copied backup. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CopyBackupEncryptionConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.CopyBackupEncryptionConfig) com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.class, - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder.class); + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.class, com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder.class); } // Construct using com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -580,14 +505,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance(); } @@ -602,17 +526,13 @@ public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig build() { @java.lang.Override public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig buildPartial() { - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig result = - new com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig result = new com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig result) { + private void buildPartial0(com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.encryptionType_ = encryptionType_; @@ -626,50 +546,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig) { - return mergeFrom((com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig) other); + return mergeFrom((com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig other) { - if (other - == com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig other) { + if (other == com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance()) return this; if (other.encryptionType_ != 0) { setEncryptionTypeValue(other.getEncryptionTypeValue()); } @@ -704,25 +620,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - encryptionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + encryptionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -732,38 +645,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int encryptionType_ = 0; /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ - @java.lang.Override - public int getEncryptionTypeValue() { + @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param value The enum numeric value on the wire for encryptionType to set. * @return This builder for chaining. */ @@ -774,45 +675,28 @@ public Builder setEncryptionTypeValue(int value) { return this; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ @java.lang.Override - public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType - getEncryptionType() { - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType result = - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType.forNumber( - encryptionType_); - return result == null - ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType - .UNRECOGNIZED - : result; + public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType getEncryptionType() { + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType result = com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType.forNumber(encryptionType_); + return result == null ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType.UNRECOGNIZED : result; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param value The encryptionType to set. * @return This builder for chaining. */ - public Builder setEncryptionType( - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType value) { + public Builder setEncryptionType(com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType value) { if (value == null) { throw new NullPointerException(); } @@ -822,16 +706,11 @@ public Builder setEncryptionType( return this; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return This builder for chaining. */ public Builder clearEncryptionType() { @@ -843,8 +722,6 @@ public Builder clearEncryptionType() { private java.lang.Object kmsKeyName_ = ""; /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -853,16 +730,14 @@ public Builder clearEncryptionType() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -871,8 +746,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -881,17 +754,16 @@ public java.lang.String getKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -899,8 +771,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -909,25 +779,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -936,10 +800,7 @@ public Builder setKmsKeyName(java.lang.String value) { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -949,8 +810,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -959,26 +818,22 @@ public Builder clearKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -988,43 +843,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.CopyBackupEncryptionConfig) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CopyBackupEncryptionConfig) - private static final com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig(); } - public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CopyBackupEncryptionConfig> PARSER = - new com.google.protobuf.AbstractParser<CopyBackupEncryptionConfig>() { - @java.lang.Override - public CopyBackupEncryptionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CopyBackupEncryptionConfig> + PARSER = new com.google.protobuf.AbstractParser<CopyBackupEncryptionConfig>() { + @java.lang.Override + public CopyBackupEncryptionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CopyBackupEncryptionConfig> parser() { return PARSER; @@ -1036,8 +889,9 @@ public com.google.protobuf.Parser<CopyBackupEncryptionConfig> getParserForType() } @java.lang.Override - public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java similarity index 53% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java index ad4c312b7b6..3b70bee0df7 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java @@ -1,61 +1,32 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface CopyBackupEncryptionConfigOrBuilder - extends +public interface CopyBackupEncryptionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.CopyBackupEncryptionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ int getEncryptionTypeValue(); /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType - getEncryptionType(); + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType getEncryptionType(); /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -64,16 +35,11 @@ public interface CopyBackupEncryptionConfigOrBuilder * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -82,11 +48,9 @@ public interface CopyBackupEncryptionConfigOrBuilder * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java similarity index 76% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java index ed2b5db4e68..18db810e159 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Metadata type for the google.longrunning.Operation returned by * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.database.v1.CopyBackupMetadata} */ -public final class CopyBackupMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CopyBackupMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.CopyBackupMetadata) CopyBackupMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CopyBackupMetadata.newBuilder() to construct. private CopyBackupMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CopyBackupMetadata() { name_ = ""; sourceBackup_ = ""; @@ -45,32 +27,28 @@ private CopyBackupMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CopyBackupMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CopyBackupMetadata.class, - com.google.spanner.admin.database.v1.CopyBackupMetadata.Builder.class); + com.google.spanner.admin.database.v1.CopyBackupMetadata.class, com.google.spanner.admin.database.v1.CopyBackupMetadata.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The name. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -103,15 +79,16 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SOURCE_BACKUP_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceBackup_ = ""; /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -133,7 +107,6 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The sourceBackup. */ @java.lang.Override @@ -142,15 +115,14 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceBackup_ = s; return s; } } /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -158,15 +130,16 @@ public java.lang.String getSourceBackup() { * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceBackup_ = b; return b; } else { @@ -177,15 +150,12 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { public static final int PROGRESS_FIELD_NUMBER = 3; private com.google.spanner.admin.database.v1.OperationProgress progress_; /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return Whether the progress field is set. */ @java.lang.Override @@ -193,26 +163,19 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return The progress. */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -222,16 +185,12 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } public static final int CANCEL_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp cancelTime_; /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -248,7 +207,6 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return Whether the cancelTime field is set. */ @java.lang.Override @@ -256,8 +214,6 @@ public boolean hasCancelTime() { return cancelTime_ != null; } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -274,7 +230,6 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return The cancelTime. */ @java.lang.Override @@ -282,8 +237,6 @@ public com.google.protobuf.Timestamp getCancelTime() { return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -307,7 +260,6 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,7 +271,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -348,10 +301,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceBackup_); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProgress()); } if (cancelTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCancelTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCancelTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -361,23 +316,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.CopyBackupMetadata)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.CopyBackupMetadata other = - (com.google.spanner.admin.database.v1.CopyBackupMetadata) obj; + com.google.spanner.admin.database.v1.CopyBackupMetadata other = (com.google.spanner.admin.database.v1.CopyBackupMetadata) obj; - if (!getName().equals(other.getName())) return false; - if (!getSourceBackup().equals(other.getSourceBackup())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getSourceBackup() + .equals(other.getSourceBackup())) return false; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (hasCancelTime() != other.hasCancelTime()) return false; if (hasCancelTime()) { - if (!getCancelTime().equals(other.getCancelTime())) return false; + if (!getCancelTime() + .equals(other.getCancelTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -408,104 +366,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupMetadata 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.admin.database.v1.CopyBackupMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CopyBackupMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.CopyBackupMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.CopyBackupMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the google.longrunning.Operation returned by * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]. @@ -513,32 +465,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.CopyBackupMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.CopyBackupMetadata) com.google.spanner.admin.database.v1.CopyBackupMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CopyBackupMetadata.class, - com.google.spanner.admin.database.v1.CopyBackupMetadata.Builder.class); + com.google.spanner.admin.database.v1.CopyBackupMetadata.class, com.google.spanner.admin.database.v1.CopyBackupMetadata.Builder.class); } // Construct using com.google.spanner.admin.database.v1.CopyBackupMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor; } @java.lang.Override @@ -580,11 +533,8 @@ public com.google.spanner.admin.database.v1.CopyBackupMetadata build() { @java.lang.Override public com.google.spanner.admin.database.v1.CopyBackupMetadata buildPartial() { - com.google.spanner.admin.database.v1.CopyBackupMetadata result = - new com.google.spanner.admin.database.v1.CopyBackupMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.CopyBackupMetadata result = new com.google.spanner.admin.database.v1.CopyBackupMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -598,10 +548,14 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CopyBackupMetada result.sourceBackup_ = sourceBackup_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + result.cancelTime_ = cancelTimeBuilder_ == null + ? cancelTime_ + : cancelTimeBuilder_.build(); } } @@ -609,39 +563,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CopyBackupMetada public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.CopyBackupMetadata) { - return mergeFrom((com.google.spanner.admin.database.v1.CopyBackupMetadata) other); + return mergeFrom((com.google.spanner.admin.database.v1.CopyBackupMetadata)other); } else { super.mergeFrom(other); return this; @@ -649,8 +602,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.CopyBackupMetadata other) { - if (other == com.google.spanner.admin.database.v1.CopyBackupMetadata.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.CopyBackupMetadata.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -693,37 +645,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceBackup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getCancelTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceBackup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCancelTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,13 +684,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -747,13 +695,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -762,8 +710,6 @@ public java.lang.String getName() { } } /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -771,14 +717,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -786,8 +733,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -795,22 +740,18 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -818,7 +759,6 @@ public Builder setName(java.lang.String value) { * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -828,8 +768,6 @@ public Builder clearName() { return this; } /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -837,14 +775,12 @@ public Builder clearName() { * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -854,8 +790,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceBackup_ = ""; /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -863,13 +797,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceBackup_ = s; return s; @@ -878,8 +812,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -887,14 +819,15 @@ public java.lang.String getSourceBackup() { * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceBackup_ = b; return b; } else { @@ -902,8 +835,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -911,22 +842,18 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBackup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceBackup_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -934,7 +861,6 @@ public Builder setSourceBackup(java.lang.String value) { * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -944,8 +870,6 @@ public Builder clearSourceBackup() { return this; } /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -953,14 +877,12 @@ public Builder clearSourceBackup() { * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @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(); - } + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceBackup_ = value; bitField0_ |= 0x00000002; @@ -970,49 +892,36 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { private com.google.spanner.admin.database.v1.OperationProgress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> - progressBuilder_; + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> progressBuilder_; /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return The progress. */ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -1034,8 +943,6 @@ public Builder setProgress(com.google.spanner.admin.database.v1.OperationProgres return this; } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -1055,8 +962,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -1066,10 +971,9 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && progress_ != null - && progress_ - != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + progress_ != null && + progress_ != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -1082,8 +986,6 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr return this; } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -1102,8 +1004,6 @@ public Builder clearProgress() { return this; } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -1117,8 +1017,6 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres return getProgressFieldBuilder().getBuilder(); } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -1130,14 +1028,11 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } } /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -1146,17 +1041,14 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; @@ -1164,13 +1056,8 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre private com.google.protobuf.Timestamp cancelTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cancelTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelTimeBuilder_; /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1187,15 +1074,12 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return Whether the cancelTime field is set. */ public boolean hasCancelTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1212,21 +1096,16 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return The cancelTime. */ public com.google.protobuf.Timestamp getCancelTime() { if (cancelTimeBuilder_ == null) { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } else { return cancelTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1258,8 +1137,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1277,7 +1154,8 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> */ - public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCancelTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelTimeBuilder_ == null) { cancelTime_ = builderForValue.build(); } else { @@ -1288,8 +1166,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1309,9 +1185,9 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { if (cancelTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && cancelTime_ != null - && cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + cancelTime_ != null && + cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelTimeBuilder().mergeFrom(value); } else { cancelTime_ = value; @@ -1324,8 +1200,6 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1354,8 +1228,6 @@ public Builder clearCancelTime() { return this; } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1379,8 +1251,6 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() { return getCancelTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1402,14 +1272,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { if (cancelTimeBuilder_ != null) { return cancelTimeBuilder_.getMessageOrBuilder(); } else { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } } /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1428,24 +1295,21 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * <code>.google.protobuf.Timestamp cancel_time = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelTimeFieldBuilder() { if (cancelTimeBuilder_ == null) { - cancelTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCancelTime(), getParentForChildren(), isClean()); + cancelTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCancelTime(), + getParentForChildren(), + isClean()); cancelTime_ = null; } return cancelTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1455,12 +1319,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.CopyBackupMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CopyBackupMetadata) private static final com.google.spanner.admin.database.v1.CopyBackupMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.CopyBackupMetadata(); } @@ -1469,27 +1333,27 @@ public static com.google.spanner.admin.database.v1.CopyBackupMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CopyBackupMetadata> PARSER = - new com.google.protobuf.AbstractParser<CopyBackupMetadata>() { - @java.lang.Override - public CopyBackupMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CopyBackupMetadata> + PARSER = new com.google.protobuf.AbstractParser<CopyBackupMetadata>() { + @java.lang.Override + public CopyBackupMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CopyBackupMetadata> parser() { return PARSER; @@ -1504,4 +1368,6 @@ public com.google.protobuf.Parser<CopyBackupMetadata> getParserForType() { public com.google.spanner.admin.database.v1.CopyBackupMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java similarity index 86% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java index b888c5d233c..accee2ff1fd 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface CopyBackupMetadataOrBuilder - extends +public interface CopyBackupMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.CopyBackupMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -33,13 +15,10 @@ public interface CopyBackupMetadataOrBuilder * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * The name of the backup being created through the copy operation. * Values are of the form @@ -47,14 +26,12 @@ public interface CopyBackupMetadataOrBuilder * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -62,13 +39,10 @@ public interface CopyBackupMetadataOrBuilder * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * * <pre> * The name of the source backup that is being copied. * Values are of the form @@ -76,40 +50,32 @@ public interface CopyBackupMetadataOrBuilder * </pre> * * <code>string source_backup = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return The progress. */ com.google.spanner.admin.database.v1.OperationProgress getProgress(); /** - * - * * <pre> * The progress of the * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation. @@ -120,8 +86,6 @@ public interface CopyBackupMetadataOrBuilder com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder(); /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -138,13 +102,10 @@ public interface CopyBackupMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return Whether the cancelTime field is set. */ boolean hasCancelTime(); /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -161,13 +122,10 @@ public interface CopyBackupMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return The cancelTime. */ com.google.protobuf.Timestamp getCancelTime(); /** - * - * * <pre> * The time at which cancellation of CopyBackup operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java similarity index 69% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java index bb321f0cf97..4f27d4c2944 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CopyBackupRequest} */ -public final class CopyBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CopyBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.CopyBackupRequest) CopyBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CopyBackupRequest.newBuilder() to construct. private CopyBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CopyBackupRequest() { parent_ = ""; backupId_ = ""; @@ -45,41 +27,34 @@ private CopyBackupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CopyBackupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CopyBackupRequest.class, - com.google.spanner.admin.database.v1.CopyBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.CopyBackupRequest.class, com.google.spanner.admin.database.v1.CopyBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,12 +95,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int BACKUP_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object backupId_ = ""; /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -135,7 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The backupId. */ @java.lang.Override @@ -144,15 +113,14 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -160,15 +128,16 @@ public java.lang.String getBackupId() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -177,12 +146,9 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } public static final int SOURCE_BACKUP_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object sourceBackup_ = ""; /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -192,10 +158,7 @@ public com.google.protobuf.ByteString getBackupIdBytes() { * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The sourceBackup. */ @java.lang.Override @@ -204,15 +167,14 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceBackup_ = s; return s; } } /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -222,18 +184,17 @@ public java.lang.String getSourceBackup() { * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceBackup_ = b; return b; } else { @@ -244,8 +205,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expireTime_; /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -254,9 +213,7 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the expireTime field is set. */ @java.lang.Override @@ -264,8 +221,6 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -274,9 +229,7 @@ public boolean hasExpireTime() { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> * @return The expireTime. */ @java.lang.Override @@ -284,8 +237,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -294,8 +245,7 @@ public com.google.protobuf.Timestamp getExpireTime() { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -305,8 +255,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 5; private com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryptionConfig_; /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -315,10 +263,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -326,8 +271,6 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -336,21 +279,14 @@ public boolean hasEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ @java.lang.Override public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getEncryptionConfig() { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance() : encryptionConfig_; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -359,20 +295,14 @@ public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getEncryp * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ @java.lang.Override - public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance() : encryptionConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +314,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -419,10 +350,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceBackup_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpireTime()); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEncryptionConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -432,24 +365,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.CopyBackupRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.CopyBackupRequest other = - (com.google.spanner.admin.database.v1.CopyBackupRequest) obj; + com.google.spanner.admin.database.v1.CopyBackupRequest other = (com.google.spanner.admin.database.v1.CopyBackupRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getBackupId().equals(other.getBackupId())) return false; - if (!getSourceBackup().equals(other.getSourceBackup())) return false; + if (!getParent() + .equals(other.getParent())) 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 (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + if (!getEncryptionConfig() + .equals(other.getEncryptionConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -482,136 +419,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupRequest 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.admin.database.v1.CopyBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CopyBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.CopyBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CopyBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.CopyBackupRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.CopyBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CopyBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.CopyBackupRequest) com.google.spanner.admin.database.v1.CopyBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CopyBackupRequest.class, - com.google.spanner.admin.database.v1.CopyBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.CopyBackupRequest.class, com.google.spanner.admin.database.v1.CopyBackupRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.CopyBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -633,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor; } @java.lang.Override @@ -654,11 +586,8 @@ public com.google.spanner.admin.database.v1.CopyBackupRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.CopyBackupRequest buildPartial() { - com.google.spanner.admin.database.v1.CopyBackupRequest result = - new com.google.spanner.admin.database.v1.CopyBackupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.CopyBackupRequest result = new com.google.spanner.admin.database.v1.CopyBackupRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -675,11 +604,14 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CopyBackupReques result.sourceBackup_ = sourceBackup_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.encryptionConfig_ = - encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + result.encryptionConfig_ = encryptionConfigBuilder_ == null + ? encryptionConfig_ + : encryptionConfigBuilder_.build(); } } @@ -687,39 +619,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CopyBackupReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.CopyBackupRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.CopyBackupRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.CopyBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -727,8 +658,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.CopyBackupRequest other) { - if (other == com.google.spanner.admin.database.v1.CopyBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.CopyBackupRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -776,44 +706,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - backupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - sourceBackup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + sourceBackup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -823,28 +750,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -853,24 +775,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -878,41 +797,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -922,24 +830,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -949,8 +851,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupId_ = ""; /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -958,13 +858,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -973,8 +873,6 @@ public java.lang.String getBackupId() { } } /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -982,14 +880,15 @@ public java.lang.String getBackupId() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -997,8 +896,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -1006,22 +903,18 @@ public com.google.protobuf.ByteString getBackupIdBytes() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -1029,7 +922,6 @@ public Builder setBackupId(java.lang.String value) { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearBackupId() { @@ -1039,8 +931,6 @@ public Builder clearBackupId() { return this; } /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -1048,14 +938,12 @@ public Builder clearBackupId() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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(); - } + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backupId_ = value; bitField0_ |= 0x00000002; @@ -1065,8 +953,6 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceBackup_ = ""; /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -1076,16 +962,14 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceBackup_ = s; return s; @@ -1094,8 +978,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -1105,17 +987,16 @@ public java.lang.String getSourceBackup() { * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceBackup_ = b; return b; } else { @@ -1123,8 +1004,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -1134,25 +1013,19 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBackup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceBackup_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -1162,10 +1035,7 @@ public Builder setSourceBackup(java.lang.String value) { * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1175,8 +1045,6 @@ public Builder clearSourceBackup() { return this; } /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -1186,17 +1054,13 @@ public Builder clearSourceBackup() { * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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(); - } + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceBackup_ = value; bitField0_ |= 0x00000004; @@ -1206,13 +1070,8 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1221,17 +1080,13 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1240,23 +1095,17 @@ public boolean hasExpireTime() { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1265,8 +1114,7 @@ public com.google.protobuf.Timestamp getExpireTime() { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1282,8 +1130,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1292,10 +1138,10 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -1306,8 +1152,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1316,14 +1160,13 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1336,8 +1179,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1346,8 +1187,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1360,8 +1200,6 @@ public Builder clearExpireTime() { return this; } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1370,8 +1208,7 @@ public Builder clearExpireTime() { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000008; @@ -1379,8 +1216,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1389,21 +1224,17 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -1412,21 +1243,17 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1434,13 +1261,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryptionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig, - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder> - encryptionConfigBuilder_; + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig, com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder, com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder> encryptionConfigBuilder_; /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1449,18 +1271,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1469,24 +1286,17 @@ public boolean hasEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getEncryptionConfig() { if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance() : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1495,12 +1305,9 @@ public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getEncryp * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder setEncryptionConfig( - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig value) { + public Builder setEncryptionConfig(com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1514,8 +1321,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1524,9 +1329,7 @@ public Builder setEncryptionConfig( * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder setEncryptionConfig( com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder builderForValue) { @@ -1540,8 +1343,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1550,18 +1351,13 @@ public Builder setEncryptionConfig( * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder mergeEncryptionConfig( - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig value) { + public Builder mergeEncryptionConfig(com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig value) { if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && encryptionConfig_ != null - && encryptionConfig_ - != com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + encryptionConfig_ != null && + encryptionConfig_ != com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance()) { getEncryptionConfigBuilder().mergeFrom(value); } else { encryptionConfig_ = value; @@ -1574,8 +1370,6 @@ public Builder mergeEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1584,9 +1378,7 @@ public Builder mergeEncryptionConfig( * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder clearEncryptionConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1599,8 +1391,6 @@ public Builder clearEncryptionConfig() { return this; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1609,19 +1399,14 @@ public Builder clearEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder - getEncryptionConfigBuilder() { + public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder getEncryptionConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1630,23 +1415,17 @@ public Builder clearEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { + public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { if (encryptionConfigBuilder_ != null) { return encryptionConfigBuilder_.getMessageOrBuilder(); } else { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.getDefaultInstance() : encryptionConfig_; } } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1655,29 +1434,24 @@ public Builder clearEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig, - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder> + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig, com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder, com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder> getEncryptionConfigFieldBuilder() { if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig, - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder>( - getEncryptionConfig(), getParentForChildren(), isClean()); + encryptionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig, com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.Builder, com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder>( + getEncryptionConfig(), + getParentForChildren(), + isClean()); encryptionConfig_ = null; } return encryptionConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1687,12 +1461,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.CopyBackupRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CopyBackupRequest) private static final com.google.spanner.admin.database.v1.CopyBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.CopyBackupRequest(); } @@ -1701,27 +1475,27 @@ public static com.google.spanner.admin.database.v1.CopyBackupRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CopyBackupRequest> PARSER = - new com.google.protobuf.AbstractParser<CopyBackupRequest>() { - @java.lang.Override - public CopyBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CopyBackupRequest> + PARSER = new com.google.protobuf.AbstractParser<CopyBackupRequest>() { + @java.lang.Override + public CopyBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CopyBackupRequest> parser() { return PARSER; @@ -1736,4 +1510,6 @@ public com.google.protobuf.Parser<CopyBackupRequest> getParserForType() { public com.google.spanner.admin.database.v1.CopyBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java index 1ce1a78ee2b..5e59d2e357b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface CopyBackupRequestOrBuilder - extends +public interface CopyBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.CopyBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The name of the destination instance that will contain the backup copy. * Values are of the form: `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -64,13 +37,10 @@ public interface CopyBackupRequestOrBuilder * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * * <pre> * Required. The id of the backup copy. * The `backup_id` appended to `parent` forms the full backup_uri of the form @@ -78,14 +48,12 @@ public interface CopyBackupRequestOrBuilder * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -95,16 +63,11 @@ public interface CopyBackupRequestOrBuilder * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * * <pre> * Required. The source backup to be copied. * The source backup needs to be in READY state for it to be copied. @@ -114,17 +77,13 @@ public interface CopyBackupRequestOrBuilder * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -133,15 +92,11 @@ public interface CopyBackupRequestOrBuilder * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -150,15 +105,11 @@ public interface CopyBackupRequestOrBuilder * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * * <pre> * Required. The expiration time of the backup in microsecond granularity. * The expiration time must be at least 6 hours and at most 366 days @@ -167,14 +118,11 @@ public interface CopyBackupRequestOrBuilder * to free the resources used by the backup. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -183,16 +131,11 @@ public interface CopyBackupRequestOrBuilder * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -201,16 +144,11 @@ public interface CopyBackupRequestOrBuilder * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getEncryptionConfig(); /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -219,10 +157,7 @@ public interface CopyBackupRequestOrBuilder * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];</code> */ - com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder(); + com.google.spanner.admin.database.v1.CopyBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java similarity index 62% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java index e1c679437b4..83f3accada8 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Encryption configuration for the backup to create. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CreateBackupEncryptionConfig} */ -public final class CreateBackupEncryptionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBackupEncryptionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.CreateBackupEncryptionConfig) CreateBackupEncryptionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBackupEncryptionConfig.newBuilder() to construct. private CreateBackupEncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CreateBackupEncryptionConfig() { encryptionType_ = 0; kmsKeyName_ = ""; @@ -44,39 +26,34 @@ private CreateBackupEncryptionConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBackupEncryptionConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.class, - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder.class); + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.class, com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder.class); } /** - * - * * <pre> * Encryption types for the backup. * </pre> * - * Protobuf enum {@code - * google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType} + * Protobuf enum {@code google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType} */ - public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { + public enum EncryptionType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Unspecified. Do not use. * </pre> @@ -85,8 +62,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_TYPE_UNSPECIFIED(0), /** - * - * * <pre> * Use the same encryption configuration as the database. This is the * default option when @@ -99,8 +74,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ USE_DATABASE_ENCRYPTION(1), /** - * - * * <pre> * Use Google default encryption. * </pre> @@ -109,8 +82,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ GOOGLE_DEFAULT_ENCRYPTION(2), /** - * - * * <pre> * Use customer managed encryption. If specified, `kms_key_name` * must contain a valid Cloud KMS key. @@ -123,8 +94,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Unspecified. Do not use. * </pre> @@ -133,8 +102,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCRYPTION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * Use the same encryption configuration as the database. This is the * default option when @@ -147,8 +114,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USE_DATABASE_ENCRYPTION_VALUE = 1; /** - * - * * <pre> * Use Google default encryption. * </pre> @@ -157,8 +122,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_DEFAULT_ENCRYPTION_VALUE = 2; /** - * - * * <pre> * Use customer managed encryption. If specified, `kms_key_name` * must contain a valid Cloud KMS key. @@ -168,6 +131,7 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOMER_MANAGED_ENCRYPTION_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -192,53 +156,50 @@ public static EncryptionType valueOf(int value) { */ public static EncryptionType forNumber(int value) { switch (value) { - case 0: - return ENCRYPTION_TYPE_UNSPECIFIED; - case 1: - return USE_DATABASE_ENCRYPTION; - case 2: - return GOOGLE_DEFAULT_ENCRYPTION; - case 3: - return CUSTOMER_MANAGED_ENCRYPTION; - default: - return null; + case 0: return ENCRYPTION_TYPE_UNSPECIFIED; + case 1: return USE_DATABASE_ENCRYPTION; + case 2: return GOOGLE_DEFAULT_ENCRYPTION; + case 3: return CUSTOMER_MANAGED_ENCRYPTION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<EncryptionType> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<EncryptionType> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + EncryptionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<EncryptionType>() { + public EncryptionType findValueByNumber(int number) { + return EncryptionType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<EncryptionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<EncryptionType>() { - public EncryptionType findValueByNumber(int number) { - return EncryptionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDescriptor().getEnumTypes().get(0); } private static final EncryptionType[] VALUES = values(); - public static EncryptionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EncryptionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -258,54 +219,33 @@ private EncryptionType(int value) { public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 1; private int encryptionType_ = 0; /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ - @java.lang.Override - public int getEncryptionTypeValue() { + @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType - getEncryptionType() { - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType result = - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType.forNumber( - encryptionType_); - return result == null - ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType getEncryptionType() { + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType result = com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType.forNumber(encryptionType_); + return result == null ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType.UNRECOGNIZED : result; } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -314,10 +254,7 @@ public int getEncryptionTypeValue() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ @java.lang.Override @@ -326,15 +263,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -343,18 +279,17 @@ public java.lang.String getKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -363,7 +298,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,11 +309,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (encryptionType_ - != com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType - .ENCRYPTION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (encryptionType_ != com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, encryptionType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { @@ -394,11 +326,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encryptionType_ - != com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType - .ENCRYPTION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encryptionType_); + if (encryptionType_ != com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, encryptionType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); @@ -411,16 +341,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig other = - (com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig) obj; + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig other = (com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig) obj; if (encryptionType_ != other.encryptionType_) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -442,138 +372,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig 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.admin.database.v1.CreateBackupEncryptionConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig - 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.admin.database.v1.CreateBackupEncryptionConfig 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.admin.database.v1.CreateBackupEncryptionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Encryption configuration for the backup to create. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CreateBackupEncryptionConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.CreateBackupEncryptionConfig) com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.class, - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder.class); + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.class, com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder.class); } - // Construct using - // com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -584,14 +507,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance(); } @@ -606,17 +528,13 @@ public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig build() @java.lang.Override public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig buildPartial() { - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig result = - new com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig result = new com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig result) { + private void buildPartial0(com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.encryptionType_ = encryptionType_; @@ -630,50 +548,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig) { - return mergeFrom((com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig) other); + return mergeFrom((com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig other) { - if (other - == com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig other) { + if (other == com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance()) return this; if (other.encryptionType_ != 0) { setEncryptionTypeValue(other.getEncryptionTypeValue()); } @@ -708,25 +622,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - encryptionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + encryptionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -736,38 +647,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int encryptionType_ = 0; /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ - @java.lang.Override - public int getEncryptionTypeValue() { + @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param value The enum numeric value on the wire for encryptionType to set. * @return This builder for chaining. */ @@ -778,45 +677,28 @@ public Builder setEncryptionTypeValue(int value) { return this; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ @java.lang.Override - public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType - getEncryptionType() { - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType result = - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType - .forNumber(encryptionType_); - return result == null - ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType - .UNRECOGNIZED - : result; + public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType getEncryptionType() { + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType result = com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType.forNumber(encryptionType_); + return result == null ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType.UNRECOGNIZED : result; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param value The encryptionType to set. * @return This builder for chaining. */ - public Builder setEncryptionType( - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType value) { + public Builder setEncryptionType(com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType value) { if (value == null) { throw new NullPointerException(); } @@ -826,16 +708,11 @@ public Builder setEncryptionType( return this; } /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return This builder for chaining. */ public Builder clearEncryptionType() { @@ -847,8 +724,6 @@ public Builder clearEncryptionType() { private java.lang.Object kmsKeyName_ = ""; /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -857,16 +732,14 @@ public Builder clearEncryptionType() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -875,8 +748,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -885,17 +756,16 @@ public java.lang.String getKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -903,8 +773,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -913,25 +781,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -940,10 +802,7 @@ public Builder setKmsKeyName(java.lang.String value) { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -953,8 +812,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -963,26 +820,22 @@ public Builder clearKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -992,43 +845,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.CreateBackupEncryptionConfig) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateBackupEncryptionConfig) - private static final com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig(); } - public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateBackupEncryptionConfig> PARSER = - new com.google.protobuf.AbstractParser<CreateBackupEncryptionConfig>() { - @java.lang.Override - public CreateBackupEncryptionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateBackupEncryptionConfig> + PARSER = new com.google.protobuf.AbstractParser<CreateBackupEncryptionConfig>() { + @java.lang.Override + public CreateBackupEncryptionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateBackupEncryptionConfig> parser() { return PARSER; @@ -1040,8 +891,9 @@ public com.google.protobuf.Parser<CreateBackupEncryptionConfig> getParserForType } @java.lang.Override - public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java similarity index 53% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java index 266ca42fd54..aa86c2f029a 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java @@ -1,61 +1,32 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface CreateBackupEncryptionConfigOrBuilder - extends +public interface CreateBackupEncryptionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.CreateBackupEncryptionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ int getEncryptionTypeValue(); /** - * - * * <pre> * Required. The encryption type of the backup. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType - getEncryptionType(); + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType getEncryptionType(); /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -64,16 +35,11 @@ public interface CreateBackupEncryptionConfigOrBuilder * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to protect the backup. * This field should be set only when @@ -82,11 +48,9 @@ public interface CreateBackupEncryptionConfigOrBuilder * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java similarity index 76% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java index b3d0e8c71e3..e54a0c6ee5e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Metadata type for the operation returned by * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.database.v1.CreateBackupMetadata} */ -public final class CreateBackupMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBackupMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.CreateBackupMetadata) CreateBackupMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBackupMetadata.newBuilder() to construct. private CreateBackupMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CreateBackupMetadata() { name_ = ""; database_ = ""; @@ -45,38 +27,33 @@ private CreateBackupMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBackupMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateBackupMetadata.class, - com.google.spanner.admin.database.v1.CreateBackupMetadata.Builder.class); + com.google.spanner.admin.database.v1.CreateBackupMetadata.class, com.google.spanner.admin.database.v1.CreateBackupMetadata.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The name. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DATABASE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -169,15 +142,12 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int PROGRESS_FIELD_NUMBER = 3; private com.google.spanner.admin.database.v1.OperationProgress progress_; /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return Whether the progress field is set. */ @java.lang.Override @@ -185,26 +155,19 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return The progress. */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -214,16 +177,12 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } public static final int CANCEL_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp cancelTime_; /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -240,7 +199,6 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return Whether the cancelTime field is set. */ @java.lang.Override @@ -248,8 +206,6 @@ public boolean hasCancelTime() { return cancelTime_ != null; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -266,7 +222,6 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return The cancelTime. */ @java.lang.Override @@ -274,8 +229,6 @@ public com.google.protobuf.Timestamp getCancelTime() { return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -299,7 +252,6 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -340,10 +293,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProgress()); } if (cancelTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCancelTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCancelTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -353,23 +308,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.CreateBackupMetadata)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.CreateBackupMetadata other = - (com.google.spanner.admin.database.v1.CreateBackupMetadata) obj; + com.google.spanner.admin.database.v1.CreateBackupMetadata other = (com.google.spanner.admin.database.v1.CreateBackupMetadata) obj; - if (!getName().equals(other.getName())) return false; - if (!getDatabase().equals(other.getDatabase())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (hasCancelTime() != other.hasCancelTime()) return false; if (hasCancelTime()) { - if (!getCancelTime().equals(other.getCancelTime())) return false; + if (!getCancelTime() + .equals(other.getCancelTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -400,104 +358,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupMetadata 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.admin.database.v1.CreateBackupMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateBackupMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.CreateBackupMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.CreateBackupMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the operation returned by * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. @@ -505,32 +457,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.CreateBackupMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.CreateBackupMetadata) com.google.spanner.admin.database.v1.CreateBackupMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateBackupMetadata.class, - com.google.spanner.admin.database.v1.CreateBackupMetadata.Builder.class); + com.google.spanner.admin.database.v1.CreateBackupMetadata.class, com.google.spanner.admin.database.v1.CreateBackupMetadata.Builder.class); } // Construct using com.google.spanner.admin.database.v1.CreateBackupMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +504,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor; } @java.lang.Override @@ -572,11 +525,8 @@ public com.google.spanner.admin.database.v1.CreateBackupMetadata build() { @java.lang.Override public com.google.spanner.admin.database.v1.CreateBackupMetadata buildPartial() { - com.google.spanner.admin.database.v1.CreateBackupMetadata result = - new com.google.spanner.admin.database.v1.CreateBackupMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.CreateBackupMetadata result = new com.google.spanner.admin.database.v1.CreateBackupMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -590,10 +540,14 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateBackupMeta result.database_ = database_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + result.cancelTime_ = cancelTimeBuilder_ == null + ? cancelTime_ + : cancelTimeBuilder_.build(); } } @@ -601,39 +555,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateBackupMeta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.CreateBackupMetadata) { - return mergeFrom((com.google.spanner.admin.database.v1.CreateBackupMetadata) other); + return mergeFrom((com.google.spanner.admin.database.v1.CreateBackupMetadata)other); } else { super.mergeFrom(other); return this; @@ -641,8 +594,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.CreateBackupMetadata other) { - if (other == com.google.spanner.admin.database.v1.CreateBackupMetadata.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.CreateBackupMetadata.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -685,37 +637,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getCancelTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCancelTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -725,25 +676,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -752,21 +700,20 @@ public java.lang.String getName() { } } /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -774,35 +721,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -812,21 +752,17 @@ public Builder clearName() { return this; } /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -836,20 +772,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object database_ = ""; /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -858,21 +792,20 @@ public java.lang.String getDatabase() { } } /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -880,35 +813,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -918,21 +844,17 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000002; @@ -942,49 +864,36 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { private com.google.spanner.admin.database.v1.OperationProgress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> - progressBuilder_; + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> progressBuilder_; /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return The progress. */ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -1006,8 +915,6 @@ public Builder setProgress(com.google.spanner.admin.database.v1.OperationProgres return this; } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -1027,8 +934,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -1038,10 +943,9 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && progress_ != null - && progress_ - != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + progress_ != null && + progress_ != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -1054,8 +958,6 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr return this; } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -1074,8 +976,6 @@ public Builder clearProgress() { return this; } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -1089,8 +989,6 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres return getProgressFieldBuilder().getBuilder(); } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -1102,14 +1000,11 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } } /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -1118,17 +1013,14 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; @@ -1136,13 +1028,8 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre private com.google.protobuf.Timestamp cancelTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cancelTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelTimeBuilder_; /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1159,15 +1046,12 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return Whether the cancelTime field is set. */ public boolean hasCancelTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1184,21 +1068,16 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return The cancelTime. */ public com.google.protobuf.Timestamp getCancelTime() { if (cancelTimeBuilder_ == null) { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } else { return cancelTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1230,8 +1109,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1249,7 +1126,8 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> */ - public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCancelTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelTimeBuilder_ == null) { cancelTime_ = builderForValue.build(); } else { @@ -1260,8 +1138,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1281,9 +1157,9 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { if (cancelTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && cancelTime_ != null - && cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + cancelTime_ != null && + cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelTimeBuilder().mergeFrom(value); } else { cancelTime_ = value; @@ -1296,8 +1172,6 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1326,8 +1200,6 @@ public Builder clearCancelTime() { return this; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1351,8 +1223,6 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() { return getCancelTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1374,14 +1244,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { if (cancelTimeBuilder_ != null) { return cancelTimeBuilder_.getMessageOrBuilder(); } else { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1400,24 +1267,21 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * <code>.google.protobuf.Timestamp cancel_time = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelTimeFieldBuilder() { if (cancelTimeBuilder_ == null) { - cancelTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCancelTime(), getParentForChildren(), isClean()); + cancelTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCancelTime(), + getParentForChildren(), + isClean()); cancelTime_ = null; } return cancelTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1427,12 +1291,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.CreateBackupMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateBackupMetadata) private static final com.google.spanner.admin.database.v1.CreateBackupMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.CreateBackupMetadata(); } @@ -1441,27 +1305,27 @@ public static com.google.spanner.admin.database.v1.CreateBackupMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateBackupMetadata> PARSER = - new com.google.protobuf.AbstractParser<CreateBackupMetadata>() { - @java.lang.Override - public CreateBackupMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateBackupMetadata> + PARSER = new com.google.protobuf.AbstractParser<CreateBackupMetadata>() { + @java.lang.Override + public CreateBackupMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateBackupMetadata> parser() { return PARSER; @@ -1476,4 +1340,6 @@ public com.google.protobuf.Parser<CreateBackupMetadata> getParserForType() { public com.google.spanner.admin.database.v1.CreateBackupMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java similarity index 85% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java index 35ac9312ee5..d9e4aa26cfd 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java @@ -1,107 +1,73 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface CreateBackupMetadataOrBuilder - extends +public interface CreateBackupMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.CreateBackupMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * The name of the backup being created. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ java.lang.String getDatabase(); /** - * - * * <pre> * The name of the database the backup is created from. * </pre> * * <code>string database = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 3;</code> - * * @return The progress. */ com.google.spanner.admin.database.v1.OperationProgress getProgress(); /** - * - * * <pre> * The progress of the * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. @@ -112,8 +78,6 @@ public interface CreateBackupMetadataOrBuilder com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder(); /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -130,13 +94,10 @@ public interface CreateBackupMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return Whether the cancelTime field is set. */ boolean hasCancelTime(); /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -153,13 +114,10 @@ public interface CreateBackupMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 4;</code> - * * @return The cancelTime. */ com.google.protobuf.Timestamp getCancelTime(); /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java similarity index 65% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java index b8d2b57b4a3..c5a8ec86836 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CreateBackupRequest} */ -public final class CreateBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.CreateBackupRequest) CreateBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBackupRequest.newBuilder() to construct. private CreateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CreateBackupRequest() { parent_ = ""; backupId_ = ""; @@ -44,32 +26,28 @@ private CreateBackupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBackupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateBackupRequest.class, - com.google.spanner.admin.database.v1.CreateBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.CreateBackupRequest.class, com.google.spanner.admin.database.v1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -91,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -109,18 +83,17 @@ public java.lang.String getParent() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,12 +102,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int BACKUP_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object backupId_ = ""; /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -142,7 +112,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The backupId. */ @java.lang.Override @@ -151,15 +120,14 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -167,15 +135,16 @@ public java.lang.String getBackupId() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -186,16 +155,11 @@ public com.google.protobuf.ByteString getBackupIdBytes() { public static final int BACKUP_FIELD_NUMBER = 3; private com.google.spanner.admin.database.v1.Backup backup_; /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the backup field is set. */ @java.lang.Override @@ -203,47 +167,32 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return backup_ == null ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() { - return backup_ == null - ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 4; private com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryptionConfig_; /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -252,10 +201,7 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -263,8 +209,6 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -273,21 +217,14 @@ public boolean hasEncryptionConfig() { * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ @java.lang.Override public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getEncryptionConfig() { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance() : encryptionConfig_; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -296,20 +233,14 @@ public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getEncr * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ @java.lang.Override - public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance() : encryptionConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,7 +252,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -350,10 +282,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, backupId_); } if (backup_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBackup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBackup()); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEncryptionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEncryptionConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -363,23 +297,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.CreateBackupRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.CreateBackupRequest other = - (com.google.spanner.admin.database.v1.CreateBackupRequest) obj; + com.google.spanner.admin.database.v1.CreateBackupRequest other = (com.google.spanner.admin.database.v1.CreateBackupRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getBackupId().equals(other.getBackupId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getBackupId() + .equals(other.getBackupId())) return false; if (hasBackup() != other.hasBackup()) return false; if (hasBackup()) { - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; } if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + if (!getEncryptionConfig() + .equals(other.getEncryptionConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -410,136 +347,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupRequest 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.admin.database.v1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.CreateBackupRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.CreateBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CreateBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.CreateBackupRequest) com.google.spanner.admin.database.v1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateBackupRequest.class, - com.google.spanner.admin.database.v1.CreateBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.CreateBackupRequest.class, com.google.spanner.admin.database.v1.CreateBackupRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.CreateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -560,9 +492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -581,11 +513,8 @@ public com.google.spanner.admin.database.v1.CreateBackupRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.CreateBackupRequest buildPartial() { - com.google.spanner.admin.database.v1.CreateBackupRequest result = - new com.google.spanner.admin.database.v1.CreateBackupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.CreateBackupRequest result = new com.google.spanner.admin.database.v1.CreateBackupRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -599,11 +528,14 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateBackupRequ result.backupId_ = backupId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.build(); + result.backup_ = backupBuilder_ == null + ? backup_ + : backupBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.encryptionConfig_ = - encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + result.encryptionConfig_ = encryptionConfigBuilder_ == null + ? encryptionConfig_ + : encryptionConfigBuilder_.build(); } } @@ -611,39 +543,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateBackupRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.CreateBackupRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.CreateBackupRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.CreateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -651,8 +582,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.CreateBackupRequest other) { - if (other == com.google.spanner.admin.database.v1.CreateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.CreateBackupRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -695,38 +625,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - backupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -736,13 +664,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -752,16 +677,14 @@ public Builder mergeFrom( * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -770,8 +693,6 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -781,17 +702,16 @@ public java.lang.String getParent() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -799,8 +719,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -810,25 +728,19 @@ public com.google.protobuf.ByteString getParentBytes() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -838,10 +750,7 @@ public Builder setParent(java.lang.String value) { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -851,8 +760,6 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -862,17 +769,13 @@ public Builder clearParent() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -882,8 +785,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupId_ = ""; /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -891,13 +792,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -906,8 +807,6 @@ public java.lang.String getBackupId() { } } /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -915,14 +814,15 @@ public java.lang.String getBackupId() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -930,8 +830,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -939,22 +837,18 @@ public com.google.protobuf.ByteString getBackupIdBytes() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -962,7 +856,6 @@ public Builder setBackupId(java.lang.String value) { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearBackupId() { @@ -972,8 +865,6 @@ public Builder clearBackupId() { return this; } /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -981,14 +872,12 @@ public Builder clearBackupId() { * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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(); - } + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backupId_ = value; bitField0_ |= 0x00000002; @@ -998,58 +887,39 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder> backupBuilder_; /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the backup field is set. */ public boolean hasBackup() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return backup_ == null ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setBackup(com.google.spanner.admin.database.v1.Backup value) { if (backupBuilder_ == null) { @@ -1065,17 +935,14 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup value) { return this; } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.spanner.admin.database.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); } else { @@ -1086,21 +953,17 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder bui return this; } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { if (backupBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && backup_ != null - && backup_ != com.google.spanner.admin.database.v1.Backup.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + backup_ != null && + backup_ != com.google.spanner.admin.database.v1.Backup.getDefaultInstance()) { getBackupBuilder().mergeFrom(value); } else { backup_ = value; @@ -1113,15 +976,11 @@ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { return this; } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearBackup() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1134,15 +993,11 @@ public Builder clearBackup() { return this; } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.spanner.admin.database.v1.Backup.Builder getBackupBuilder() { bitField0_ |= 0x00000004; @@ -1150,48 +1005,36 @@ public com.google.spanner.admin.database.v1.Backup.Builder getBackupBuilder() { return getBackupFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ 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_; + return backup_ == null ? + com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ 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> + 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()); + 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_; @@ -1199,13 +1042,8 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() private com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryptionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig, - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder> - encryptionConfigBuilder_; + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig, com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder, com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder> encryptionConfigBuilder_; /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1214,18 +1052,13 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1234,24 +1067,17 @@ public boolean hasEncryptionConfig() { * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getEncryptionConfig() { if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance() : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1260,12 +1086,9 @@ public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getEncr * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder setEncryptionConfig( - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig value) { + public Builder setEncryptionConfig(com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1279,8 +1102,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1289,9 +1110,7 @@ public Builder setEncryptionConfig( * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder setEncryptionConfig( com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder builderForValue) { @@ -1305,8 +1124,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1315,18 +1132,13 @@ public Builder setEncryptionConfig( * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder mergeEncryptionConfig( - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig value) { + public Builder mergeEncryptionConfig(com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig value) { if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && encryptionConfig_ != null - && encryptionConfig_ - != com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + encryptionConfig_ != null && + encryptionConfig_ != com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance()) { getEncryptionConfigBuilder().mergeFrom(value); } else { encryptionConfig_ = value; @@ -1339,8 +1151,6 @@ public Builder mergeEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1349,9 +1159,7 @@ public Builder mergeEncryptionConfig( * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder clearEncryptionConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1364,8 +1172,6 @@ public Builder clearEncryptionConfig() { return this; } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1374,19 +1180,14 @@ public Builder clearEncryptionConfig() { * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder - getEncryptionConfigBuilder() { + public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder getEncryptionConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1395,23 +1196,17 @@ public Builder clearEncryptionConfig() { * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { + public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { if (encryptionConfigBuilder_ != null) { return encryptionConfigBuilder_.getMessageOrBuilder(); } else { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.getDefaultInstance() : encryptionConfig_; } } /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -1420,29 +1215,24 @@ public Builder clearEncryptionConfig() { * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig, - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder> + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig, com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder, com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder> getEncryptionConfigFieldBuilder() { if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig, - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder>( - getEncryptionConfig(), getParentForChildren(), isClean()); + encryptionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig, com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.Builder, com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder>( + getEncryptionConfig(), + getParentForChildren(), + isClean()); encryptionConfig_ = null; } return encryptionConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1452,12 +1242,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateBackupRequest) private static final com.google.spanner.admin.database.v1.CreateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.CreateBackupRequest(); } @@ -1466,27 +1256,27 @@ public static com.google.spanner.admin.database.v1.CreateBackupRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateBackupRequest> PARSER = - new com.google.protobuf.AbstractParser<CreateBackupRequest>() { - @java.lang.Override - public CreateBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateBackupRequest> + PARSER = new com.google.protobuf.AbstractParser<CreateBackupRequest>() { + @java.lang.Override + public CreateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateBackupRequest> parser() { return PARSER; @@ -1501,4 +1291,6 @@ public com.google.protobuf.Parser<CreateBackupRequest> getParserForType() { public com.google.spanner.admin.database.v1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java index 0fde8792ab4..0751e6271df 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface CreateBackupRequestOrBuilder - extends +public interface CreateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -35,16 +17,11 @@ public interface CreateBackupRequestOrBuilder * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The name of the instance in which the backup will be * created. This must be the same instance that contains the database the @@ -54,17 +31,13 @@ public interface CreateBackupRequestOrBuilder * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -72,13 +45,10 @@ public interface CreateBackupRequestOrBuilder * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * * <pre> * Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form @@ -86,55 +56,39 @@ public interface CreateBackupRequestOrBuilder * </pre> * * <code>string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return The backup. */ com.google.spanner.admin.database.v1.Backup getBackup(); /** - * - * * <pre> * Required. The backup to create. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder(); /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -143,16 +97,11 @@ public interface CreateBackupRequestOrBuilder * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -161,16 +110,11 @@ public interface CreateBackupRequestOrBuilder * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getEncryptionConfig(); /** - * - * * <pre> * Optional. The encryption configuration used to encrypt the backup. If this field is * not specified, the backup will use the same @@ -179,10 +123,7 @@ public interface CreateBackupRequestOrBuilder * `USE_DATABASE_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder(); + com.google.spanner.admin.database.v1.CreateBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java similarity index 66% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java index d0c55bb862c..d5182162255 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Metadata type for the operation returned by * [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. @@ -28,54 +11,48 @@ * * Protobuf type {@code google.spanner.admin.database.v1.CreateDatabaseMetadata} */ -public final class CreateDatabaseMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDatabaseMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.CreateDatabaseMetadata) CreateDatabaseMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDatabaseMetadata.newBuilder() to construct. private CreateDatabaseMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CreateDatabaseMetadata() { database_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDatabaseMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateDatabaseMetadata.class, - com.google.spanner.admin.database.v1.CreateDatabaseMetadata.Builder.class); + com.google.spanner.admin.database.v1.CreateDatabaseMetadata.class, com.google.spanner.admin.database.v1.CreateDatabaseMetadata.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -151,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.CreateDatabaseMetadata)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.CreateDatabaseMetadata other = - (com.google.spanner.admin.database.v1.CreateDatabaseMetadata) obj; + com.google.spanner.admin.database.v1.CreateDatabaseMetadata other = (com.google.spanner.admin.database.v1.CreateDatabaseMetadata) obj; - if (!getDatabase().equals(other.getDatabase())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,104 +156,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata 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.admin.database.v1.CreateDatabaseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.CreateDatabaseMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.CreateDatabaseMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the operation returned by * [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. @@ -284,32 +255,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.CreateDatabaseMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.CreateDatabaseMetadata) com.google.spanner.admin.database.v1.CreateDatabaseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateDatabaseMetadata.class, - com.google.spanner.admin.database.v1.CreateDatabaseMetadata.Builder.class); + com.google.spanner.admin.database.v1.CreateDatabaseMetadata.class, com.google.spanner.admin.database.v1.CreateDatabaseMetadata.Builder.class); } // Construct using com.google.spanner.admin.database.v1.CreateDatabaseMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -319,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor; } @java.lang.Override @@ -340,11 +312,8 @@ public com.google.spanner.admin.database.v1.CreateDatabaseMetadata build() { @java.lang.Override public com.google.spanner.admin.database.v1.CreateDatabaseMetadata buildPartial() { - com.google.spanner.admin.database.v1.CreateDatabaseMetadata result = - new com.google.spanner.admin.database.v1.CreateDatabaseMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.CreateDatabaseMetadata result = new com.google.spanner.admin.database.v1.CreateDatabaseMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -360,39 +329,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateDatabaseMe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.CreateDatabaseMetadata) { - return mergeFrom((com.google.spanner.admin.database.v1.CreateDatabaseMetadata) other); + return mergeFrom((com.google.spanner.admin.database.v1.CreateDatabaseMetadata)other); } else { super.mergeFrom(other); return this; @@ -400,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.CreateDatabaseMetadata other) { - if (other == com.google.spanner.admin.database.v1.CreateDatabaseMetadata.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.CreateDatabaseMetadata.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; bitField0_ |= 0x00000001; @@ -433,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,25 +420,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object database_ = ""; /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -482,21 +444,20 @@ public java.lang.String getDatabase() { } } /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -504,35 +465,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -542,30 +496,26 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -575,12 +525,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.CreateDatabaseMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateDatabaseMetadata) private static final com.google.spanner.admin.database.v1.CreateDatabaseMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.CreateDatabaseMetadata(); } @@ -589,27 +539,27 @@ public static com.google.spanner.admin.database.v1.CreateDatabaseMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateDatabaseMetadata> PARSER = - new com.google.protobuf.AbstractParser<CreateDatabaseMetadata>() { - @java.lang.Override - public CreateDatabaseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateDatabaseMetadata> + PARSER = new com.google.protobuf.AbstractParser<CreateDatabaseMetadata>() { + @java.lang.Override + public CreateDatabaseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateDatabaseMetadata> parser() { return PARSER; @@ -624,4 +574,6 @@ public com.google.protobuf.Parser<CreateDatabaseMetadata> getParserForType() { public com.google.spanner.admin.database.v1.CreateDatabaseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java similarity index 50% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java index f63442138d0..be3ab217717 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadataOrBuilder.java @@ -1,50 +1,29 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface CreateDatabaseMetadataOrBuilder - extends +public interface CreateDatabaseMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.CreateDatabaseMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ java.lang.String getDatabase(); /** - * - * * <pre> * The database being created. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java similarity index 64% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java index 54065db2840..be656f35527 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java @@ -1,86 +1,63 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CreateDatabaseRequest} */ -public final class CreateDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDatabaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.CreateDatabaseRequest) CreateDatabaseRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDatabaseRequest.newBuilder() to construct. private CreateDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CreateDatabaseRequest() { parent_ = ""; createStatement_ = ""; - extraStatements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extraStatements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); databaseDialect_ = 0; + protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDatabaseRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateDatabaseRequest.class, - com.google.spanner.admin.database.v1.CreateDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.CreateDatabaseRequest.class, com.google.spanner.admin.database.v1.CreateDatabaseRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -89,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,12 +98,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CREATE_STATEMENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object createStatement_ = ""; /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -138,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The createStatement. */ @java.lang.Override @@ -147,15 +118,14 @@ public java.lang.String getCreateStatement() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); createStatement_ = s; return s; } } /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -165,15 +135,16 @@ public java.lang.String getCreateStatement() { * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for createStatement. */ @java.lang.Override - public com.google.protobuf.ByteString getCreateStatementBytes() { + public com.google.protobuf.ByteString + getCreateStatementBytes() { java.lang.Object ref = createStatement_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); createStatement_ = b; return b; } else { @@ -182,13 +153,10 @@ public com.google.protobuf.ByteString getCreateStatementBytes() { } public static final int EXTRA_STATEMENTS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList extraStatements_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -197,15 +165,13 @@ public com.google.protobuf.ByteString getCreateStatementBytes() { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return A list containing the extraStatements. */ - public com.google.protobuf.ProtocolStringList getExtraStatementsList() { + public com.google.protobuf.ProtocolStringList + getExtraStatementsList() { return extraStatements_; } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -214,15 +180,12 @@ public com.google.protobuf.ProtocolStringList getExtraStatementsList() { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The count of extraStatements. */ public int getExtraStatementsCount() { return extraStatements_.size(); } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -231,7 +194,6 @@ public int getExtraStatementsCount() { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param index The index of the element to return. * @return The extraStatements at the given index. */ @@ -239,8 +201,6 @@ public java.lang.String getExtraStatements(int index) { return extraStatements_.get(index); } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -249,29 +209,24 @@ public java.lang.String getExtraStatements(int index) { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param index The index of the value to return. * @return The bytes of the extraStatements at the given index. */ - public com.google.protobuf.ByteString getExtraStatementsBytes(int index) { + public com.google.protobuf.ByteString + getExtraStatementsBytes(int index) { return extraStatements_.getByteString(index); } public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 4; private com.google.spanner.admin.database.v1.EncryptionConfig encryptionConfig_; /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -279,90 +234,89 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @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_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ @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 com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } public static final int DATABASE_DIALECT_FIELD_NUMBER = 5; private int databaseDialect_ = 0; /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The enum numeric value on the wire for databaseDialect. */ - @java.lang.Override - public int getDatabaseDialectValue() { + @java.lang.Override public int getDatabaseDialectValue() { return databaseDialect_; } /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The databaseDialect. */ + @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { + com.google.spanner.admin.database.v1.DatabaseDialect result = com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); + return result == null ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED : result; + } + + public static final int PROTO_DESCRIPTORS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in + * 'extra_statements' above. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 6 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return The protoDescriptors. + */ @java.lang.Override - public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { - com.google.spanner.admin.database.v1.DatabaseDialect result = - com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); - return result == null - ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED - : result; + public com.google.protobuf.ByteString getProtoDescriptors() { + return protoDescriptors_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,7 +328,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -387,11 +342,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionConfig_ != null) { output.writeMessage(4, getEncryptionConfig()); } - if (databaseDialect_ - != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED - .getNumber()) { + if (databaseDialect_ != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED.getNumber()) { output.writeEnum(5, databaseDialect_); } + if (!protoDescriptors_.isEmpty()) { + output.writeBytes(6, protoDescriptors_); + } getUnknownFields().writeTo(output); } @@ -416,12 +372,16 @@ public int getSerializedSize() { size += 1 * getExtraStatementsList().size(); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEncryptionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEncryptionConfig()); + } + if (databaseDialect_ != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, databaseDialect_); } - if (databaseDialect_ - != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, databaseDialect_); + if (!protoDescriptors_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, protoDescriptors_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -431,22 +391,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.CreateDatabaseRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.CreateDatabaseRequest other = - (com.google.spanner.admin.database.v1.CreateDatabaseRequest) obj; + com.google.spanner.admin.database.v1.CreateDatabaseRequest other = (com.google.spanner.admin.database.v1.CreateDatabaseRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCreateStatement().equals(other.getCreateStatement())) return false; - if (!getExtraStatementsList().equals(other.getExtraStatementsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCreateStatement() + .equals(other.getCreateStatement())) return false; + if (!getExtraStatementsList() + .equals(other.getExtraStatementsList())) return false; if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + if (!getEncryptionConfig() + .equals(other.getEncryptionConfig())) return false; } if (databaseDialect_ != other.databaseDialect_) return false; + if (!getProtoDescriptors() + .equals(other.getProtoDescriptors())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -472,162 +437,161 @@ public int hashCode() { } hash = (37 * hash) + DATABASE_DIALECT_FIELD_NUMBER; hash = (53 * hash) + databaseDialect_; + 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.admin.database.v1.CreateDatabaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest 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.admin.database.v1.CreateDatabaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.CreateDatabaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.CreateDatabaseRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.CreateDatabaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.CreateDatabaseRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.CreateDatabaseRequest) com.google.spanner.admin.database.v1.CreateDatabaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.CreateDatabaseRequest.class, - com.google.spanner.admin.database.v1.CreateDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.CreateDatabaseRequest.class, com.google.spanner.admin.database.v1.CreateDatabaseRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.CreateDatabaseRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; createStatement_ = ""; - extraStatements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extraStatements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); encryptionConfigBuilder_ = null; } databaseDialect_ = 0; + protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor; } @java.lang.Override @@ -646,11 +610,8 @@ public com.google.spanner.admin.database.v1.CreateDatabaseRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.CreateDatabaseRequest buildPartial() { - com.google.spanner.admin.database.v1.CreateDatabaseRequest result = - new com.google.spanner.admin.database.v1.CreateDatabaseRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.CreateDatabaseRequest result = new com.google.spanner.admin.database.v1.CreateDatabaseRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -668,51 +629,54 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateDatabaseRe result.extraStatements_ = extraStatements_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.encryptionConfig_ = - encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + result.encryptionConfig_ = encryptionConfigBuilder_ == null + ? encryptionConfig_ + : encryptionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.databaseDialect_ = databaseDialect_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.protoDescriptors_ = protoDescriptors_; + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.CreateDatabaseRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.CreateDatabaseRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.CreateDatabaseRequest)other); } else { super.mergeFrom(other); return this; @@ -720,8 +684,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.CreateDatabaseRequest other) { - if (other == com.google.spanner.admin.database.v1.CreateDatabaseRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.CreateDatabaseRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -748,6 +711,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.CreateDatabaseRequ if (other.databaseDialect_ != 0) { setDatabaseDialectValue(other.getDatabaseDialectValue()); } + if (other.getProtoDescriptors() != com.google.protobuf.ByteString.EMPTY) { + setProtoDescriptors(other.getProtoDescriptors()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -774,45 +740,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - createStatement_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExtraStatementsIsMutable(); - extraStatements_.add(s); - break; - } // case 26 - case 34: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - databaseDialect_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + createStatement_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExtraStatementsIsMutable(); + extraStatements_.add(s); + break; + } // case 26 + case 34: { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + databaseDialect_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + protoDescriptors_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -822,28 +788,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -852,24 +813,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -877,41 +835,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -921,24 +868,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -948,8 +889,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object createStatement_ = ""; /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -959,13 +898,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The createStatement. */ public java.lang.String getCreateStatement() { java.lang.Object ref = createStatement_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); createStatement_ = s; return s; @@ -974,8 +913,6 @@ public java.lang.String getCreateStatement() { } } /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -985,14 +922,15 @@ public java.lang.String getCreateStatement() { * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for createStatement. */ - public com.google.protobuf.ByteString getCreateStatementBytes() { + public com.google.protobuf.ByteString + getCreateStatementBytes() { java.lang.Object ref = createStatement_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); createStatement_ = b; return b; } else { @@ -1000,8 +938,6 @@ public com.google.protobuf.ByteString getCreateStatementBytes() { } } /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -1011,22 +947,18 @@ public com.google.protobuf.ByteString getCreateStatementBytes() { * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The createStatement to set. * @return This builder for chaining. */ - public Builder setCreateStatement(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCreateStatement( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } createStatement_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -1036,7 +968,6 @@ public Builder setCreateStatement(java.lang.String value) { * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearCreateStatement() { @@ -1046,8 +977,6 @@ public Builder clearCreateStatement() { return this; } /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -1057,14 +986,12 @@ public Builder clearCreateStatement() { * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The bytes for createStatement to set. * @return This builder for chaining. */ - public Builder setCreateStatementBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCreateStatementBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); createStatement_ = value; bitField0_ |= 0x00000002; @@ -1074,7 +1001,6 @@ public Builder setCreateStatementBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList extraStatements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureExtraStatementsIsMutable() { if (!extraStatements_.isModifiable()) { extraStatements_ = new com.google.protobuf.LazyStringArrayList(extraStatements_); @@ -1082,8 +1008,6 @@ private void ensureExtraStatementsIsMutable() { bitField0_ |= 0x00000004; } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1092,16 +1016,14 @@ private void ensureExtraStatementsIsMutable() { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return A list containing the extraStatements. */ - public com.google.protobuf.ProtocolStringList getExtraStatementsList() { + public com.google.protobuf.ProtocolStringList + getExtraStatementsList() { extraStatements_.makeImmutable(); return extraStatements_; } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1110,15 +1032,12 @@ public com.google.protobuf.ProtocolStringList getExtraStatementsList() { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The count of extraStatements. */ public int getExtraStatementsCount() { return extraStatements_.size(); } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1127,7 +1046,6 @@ public int getExtraStatementsCount() { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param index The index of the element to return. * @return The extraStatements at the given index. */ @@ -1135,8 +1053,6 @@ public java.lang.String getExtraStatements(int index) { return extraStatements_.get(index); } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1145,16 +1061,14 @@ public java.lang.String getExtraStatements(int index) { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param index The index of the value to return. * @return The bytes of the extraStatements at the given index. */ - public com.google.protobuf.ByteString getExtraStatementsBytes(int index) { + public com.google.protobuf.ByteString + getExtraStatementsBytes(int index) { return extraStatements_.getByteString(index); } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1163,15 +1077,13 @@ public com.google.protobuf.ByteString getExtraStatementsBytes(int index) { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param index The index to set the value at. * @param value The extraStatements to set. * @return This builder for chaining. */ - public Builder setExtraStatements(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExtraStatements( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExtraStatementsIsMutable(); extraStatements_.set(index, value); bitField0_ |= 0x00000004; @@ -1179,8 +1091,6 @@ public Builder setExtraStatements(int index, java.lang.String value) { return this; } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1189,14 +1099,12 @@ public Builder setExtraStatements(int index, java.lang.String value) { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param value The extraStatements to add. * @return This builder for chaining. */ - public Builder addExtraStatements(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExtraStatements( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExtraStatementsIsMutable(); extraStatements_.add(value); bitField0_ |= 0x00000004; @@ -1204,8 +1112,6 @@ public Builder addExtraStatements(java.lang.String value) { return this; } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1214,20 +1120,19 @@ public Builder addExtraStatements(java.lang.String value) { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param values The extraStatements to add. * @return This builder for chaining. */ - public Builder addAllExtraStatements(java.lang.Iterable<java.lang.String> values) { + public Builder addAllExtraStatements( + java.lang.Iterable<java.lang.String> values) { ensureExtraStatementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extraStatements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, extraStatements_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1236,19 +1141,16 @@ public Builder addAllExtraStatements(java.lang.Iterable<java.lang.String> values * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return This builder for chaining. */ public Builder clearExtraStatements() { - extraStatements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + extraStatements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -1257,14 +1159,12 @@ public Builder clearExtraStatements() { * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param value The bytes of the extraStatements to add. * @return This builder for chaining. */ - public Builder addExtraStatementsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExtraStatementsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExtraStatementsIsMutable(); extraStatements_.add(value); @@ -1275,67 +1175,47 @@ public Builder addExtraStatementsBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.database.v1.EncryptionConfig, com.google.spanner.admin.database.v1.EncryptionConfig.Builder, com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder> encryptionConfigBuilder_; /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @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_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder setEncryptionConfig( - com.google.spanner.admin.database.v1.EncryptionConfig value) { + public Builder setEncryptionConfig(com.google.spanner.admin.database.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1349,17 +1229,13 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder setEncryptionConfig( com.google.spanner.admin.database.v1.EncryptionConfig.Builder builderForValue) { @@ -1373,25 +1249,19 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder mergeEncryptionConfig( - com.google.spanner.admin.database.v1.EncryptionConfig value) { + public Builder mergeEncryptionConfig(com.google.spanner.admin.database.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && encryptionConfig_ != null - && encryptionConfig_ - != com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + encryptionConfig_ != null && + encryptionConfig_ != com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()) { getEncryptionConfigBuilder().mergeFrom(value); } else { encryptionConfig_ = value; @@ -1404,17 +1274,13 @@ public Builder mergeEncryptionConfig( return this; } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder clearEncryptionConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1427,72 +1293,54 @@ public Builder clearEncryptionConfig() { return this; } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.database.v1.EncryptionConfig.Builder - getEncryptionConfigBuilder() { + public com.google.spanner.admin.database.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { + 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_; + return encryptionConfig_ == null ? + com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } } /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ 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> + 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()); + 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_; @@ -1500,33 +1348,22 @@ public Builder clearEncryptionConfig() { private int databaseDialect_ = 0; /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The enum numeric value on the wire for databaseDialect. */ - @java.lang.Override - public int getDatabaseDialectValue() { + @java.lang.Override public int getDatabaseDialectValue() { return databaseDialect_; } /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @param value The enum numeric value on the wire for databaseDialect to set. * @return This builder for chaining. */ @@ -1537,37 +1374,24 @@ public Builder setDatabaseDialectValue(int value) { return this; } /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The databaseDialect. */ @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { - com.google.spanner.admin.database.v1.DatabaseDialect result = - com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); - return result == null - ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED - : result; + com.google.spanner.admin.database.v1.DatabaseDialect result = com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); + return result == null ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED : result; } /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @param value The databaseDialect to set. * @return This builder for chaining. */ @@ -1581,16 +1405,11 @@ public Builder setDatabaseDialect(com.google.spanner.admin.database.v1.DatabaseD return this; } /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return This builder for chaining. */ public Builder clearDatabaseDialect() { @@ -1600,8 +1419,94 @@ public Builder clearDatabaseDialect() { return this; } + private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in + * 'extra_statements' above. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 6 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return The protoDescriptors. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public com.google.protobuf.ByteString getProtoDescriptors() { + return protoDescriptors_; + } + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in + * 'extra_statements' above. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 6 [(.google.api.field_behavior) = OPTIONAL];</code> + * @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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in + * 'extra_statements' above. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 6 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return This builder for chaining. + */ + public Builder clearProtoDescriptors() { + bitField0_ = (bitField0_ & ~0x00000020); + protoDescriptors_ = getDefaultInstance().getProtoDescriptors(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1611,12 +1516,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.CreateDatabaseRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.CreateDatabaseRequest) private static final com.google.spanner.admin.database.v1.CreateDatabaseRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.CreateDatabaseRequest(); } @@ -1625,27 +1530,27 @@ public static com.google.spanner.admin.database.v1.CreateDatabaseRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateDatabaseRequest> PARSER = - new com.google.protobuf.AbstractParser<CreateDatabaseRequest>() { - @java.lang.Override - public CreateDatabaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateDatabaseRequest> + PARSER = new com.google.protobuf.AbstractParser<CreateDatabaseRequest>() { + @java.lang.Override + public CreateDatabaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateDatabaseRequest> parser() { return PARSER; @@ -1660,4 +1565,6 @@ public com.google.protobuf.Parser<CreateDatabaseRequest> getParserForType() { public com.google.spanner.admin.database.v1.CreateDatabaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java index 2a71d1e2808..9121d052c66 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface CreateDatabaseRequestOrBuilder - extends +public interface CreateDatabaseRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.CreateDatabaseRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The name of the instance that will serve the new database. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -66,13 +39,10 @@ public interface CreateDatabaseRequestOrBuilder * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The createStatement. */ java.lang.String getCreateStatement(); /** - * - * * <pre> * Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression @@ -82,14 +52,12 @@ public interface CreateDatabaseRequestOrBuilder * </pre> * * <code>string create_statement = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for createStatement. */ - com.google.protobuf.ByteString getCreateStatementBytes(); + com.google.protobuf.ByteString + getCreateStatementBytes(); /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -98,13 +66,11 @@ public interface CreateDatabaseRequestOrBuilder * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return A list containing the extraStatements. */ - java.util.List<java.lang.String> getExtraStatementsList(); + java.util.List<java.lang.String> + getExtraStatementsList(); /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -113,13 +79,10 @@ public interface CreateDatabaseRequestOrBuilder * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The count of extraStatements. */ int getExtraStatementsCount(); /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -128,14 +91,11 @@ public interface CreateDatabaseRequestOrBuilder * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param index The index of the element to return. * @return The extraStatements at the given index. */ java.lang.String getExtraStatements(int index); /** - * - * * <pre> * Optional. A list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These @@ -144,85 +104,85 @@ public interface CreateDatabaseRequestOrBuilder * </pre> * * <code>repeated string extra_statements = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param index The index of the value to return. * @return The bytes of the extraStatements at the given index. */ - com.google.protobuf.ByteString getExtraStatementsBytes(int index); + com.google.protobuf.ByteString + getExtraStatementsBytes(int index); /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig(); /** - * - * * <pre> * Optional. The encryption configuration for the database. If this field is not * specified, Cloud Spanner will encrypt/decrypt all data at rest using * Google default encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The enum numeric value on the wire for databaseDialect. */ int getDatabaseDialectValue(); /** - * - * * <pre> * Optional. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The databaseDialect. */ com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect(); + + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in + * 'extra_statements' above. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 6 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return The protoDescriptors. + */ + com.google.protobuf.ByteString getProtoDescriptors(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java similarity index 70% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java index ab488e87b81..ad8c5c389ee 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * A Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.Database} */ -public final class Database extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Database extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.Database) DatabaseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Database.newBuilder() to construct. private Database(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private Database() { name_ = ""; state_ = 0; @@ -48,38 +30,34 @@ private Database() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Database(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_Database_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_Database_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_Database_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_Database_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.Database.class, - com.google.spanner.admin.database.v1.Database.Builder.class); + com.google.spanner.admin.database.v1.Database.class, com.google.spanner.admin.database.v1.Database.Builder.class); } /** - * - * * <pre> * Indicates the current state of the database. * </pre> * * Protobuf enum {@code google.spanner.admin.database.v1.Database.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Not specified. * </pre> @@ -88,8 +66,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * * <pre> * The database is still being created. Operations on the database may fail * with `FAILED_PRECONDITION` in this state. @@ -99,8 +75,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * * <pre> * The database is fully created and ready for use. * </pre> @@ -109,8 +83,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * * <pre> * The database is fully created and ready for use, but is still * being optimized for performance and cannot handle full load. @@ -129,8 +101,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Not specified. * </pre> @@ -139,8 +109,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * The database is still being created. Operations on the database may fail * with `FAILED_PRECONDITION` in this state. @@ -150,8 +118,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * * <pre> * The database is fully created and ready for use. * </pre> @@ -160,8 +126,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * * <pre> * The database is fully created and ready for use, but is still * being optimized for performance and cannot handle full load. @@ -177,6 +141,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_OPTIMIZING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -201,51 +166,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return READY_OPTIMIZING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return READY_OPTIMIZING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<State> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<State>() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<State>() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.spanner.admin.database.v1.Database.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -263,12 +227,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -278,7 +239,6 @@ private State(int value) { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The name. */ @java.lang.Override @@ -287,15 +247,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -305,15 +264,16 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -324,56 +284,37 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.Database.State getState() { - com.google.spanner.admin.database.v1.Database.State result = - com.google.spanner.admin.database.v1.Database.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.database.v1.Database.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.Database.State getState() { + com.google.spanner.admin.database.v1.Database.State result = com.google.spanner.admin.database.v1.Database.State.forNumber(state_); + return result == null ? com.google.spanner.admin.database.v1.Database.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ @java.lang.Override @@ -381,15 +322,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ @java.lang.Override @@ -397,14 +334,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -414,17 +348,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int RESTORE_INFO_FIELD_NUMBER = 4; private com.google.spanner.admin.database.v1.RestoreInfo restoreInfo_; /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the restoreInfo field is set. */ @java.lang.Override @@ -432,49 +361,34 @@ public boolean hasRestoreInfo() { return restoreInfo_ != null; } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The restoreInfo. */ @java.lang.Override public com.google.spanner.admin.database.v1.RestoreInfo getRestoreInfo() { - return restoreInfo_ == null - ? com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance() - : restoreInfo_; + return restoreInfo_ == null ? com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance() : restoreInfo_; } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.spanner.admin.database.v1.RestoreInfoOrBuilder getRestoreInfoOrBuilder() { - return restoreInfo_ == null - ? com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance() - : restoreInfo_; + return restoreInfo_ == null ? com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance() : restoreInfo_; } public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 5; private com.google.spanner.admin.database.v1.EncryptionConfig encryptionConfig_; /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -482,10 +396,7 @@ public com.google.spanner.admin.database.v1.RestoreInfoOrBuilder getRestoreInfoO * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -493,8 +404,6 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -502,21 +411,14 @@ public boolean hasEncryptionConfig() { * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @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_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -524,25 +426,17 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @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 com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } public static final int ENCRYPTION_INFO_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo> encryptionInfo_; /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -555,18 +449,13 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override - public java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo> - getEncryptionInfoList() { + public java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo> getEncryptionInfoList() { return encryptionInfo_; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -579,18 +468,14 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> + public java.util.List<? extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> getEncryptionInfoOrBuilderList() { return encryptionInfo_; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -603,17 +488,13 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public int getEncryptionInfoCount() { return encryptionInfo_.size(); } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -626,17 +507,13 @@ public int getEncryptionInfoCount() { * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(int index) { return encryptionInfo_.get(index); } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -649,9 +526,7 @@ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(int * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder( @@ -660,12 +535,9 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio } public static final int VERSION_RETENTION_PERIOD_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object versionRetentionPeriod_ = ""; /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -675,7 +547,6 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio * </pre> * * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The versionRetentionPeriod. */ @java.lang.Override @@ -684,15 +555,14 @@ public java.lang.String getVersionRetentionPeriod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionRetentionPeriod_ = s; return s; } } /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -702,15 +572,16 @@ public java.lang.String getVersionRetentionPeriod() { * </pre> * * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The bytes for versionRetentionPeriod. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionRetentionPeriodBytes() { + public com.google.protobuf.ByteString + getVersionRetentionPeriodBytes() { java.lang.Object ref = versionRetentionPeriod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); versionRetentionPeriod_ = b; return b; } else { @@ -721,8 +592,6 @@ public com.google.protobuf.ByteString getVersionRetentionPeriodBytes() { public static final int EARLIEST_VERSION_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp earliestVersionTime_; /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -731,10 +600,7 @@ public com.google.protobuf.ByteString getVersionRetentionPeriodBytes() { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the earliestVersionTime field is set. */ @java.lang.Override @@ -742,8 +608,6 @@ public boolean hasEarliestVersionTime() { return earliestVersionTime_ != null; } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -752,21 +616,14 @@ public boolean hasEarliestVersionTime() { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The earliestVersionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEarliestVersionTime() { - return earliestVersionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestVersionTime_; + return earliestVersionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVersionTime_; } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -775,24 +632,17 @@ public com.google.protobuf.Timestamp getEarliestVersionTime() { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() { - return earliestVersionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestVersionTime_; + return earliestVersionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVersionTime_; } public static final int DEFAULT_LEADER_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object defaultLeader_ = ""; /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -803,7 +653,6 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The defaultLeader. */ @java.lang.Override @@ -812,15 +661,14 @@ public java.lang.String getDefaultLeader() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultLeader_ = s; return s; } } /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -831,15 +679,16 @@ public java.lang.String getDefaultLeader() { * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The bytes for defaultLeader. */ @java.lang.Override - public com.google.protobuf.ByteString getDefaultLeaderBytes() { + public com.google.protobuf.ByteString + getDefaultLeaderBytes() { java.lang.Object ref = defaultLeader_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultLeader_ = b; return b; } else { @@ -850,56 +699,38 @@ public com.google.protobuf.ByteString getDefaultLeaderBytes() { public static final int DATABASE_DIALECT_FIELD_NUMBER = 10; private int databaseDialect_ = 0; /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for databaseDialect. */ - @java.lang.Override - public int getDatabaseDialectValue() { + @java.lang.Override public int getDatabaseDialectValue() { return databaseDialect_; } /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The databaseDialect. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { - com.google.spanner.admin.database.v1.DatabaseDialect result = - com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); - return result == null - ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { + com.google.spanner.admin.database.v1.DatabaseDialect result = com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); + return result == null ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED : result; } public static final int ENABLE_DROP_PROTECTION_FIELD_NUMBER = 11; private boolean enableDropProtection_ = false; /** - * - * * <pre> * Whether drop protection is enabled for this database. Defaults to false, * if not set. * </pre> * * <code>bool enable_drop_protection = 11;</code> - * * @return The enableDropProtection. */ @java.lang.Override @@ -910,15 +741,12 @@ public boolean getEnableDropProtection() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** - * - * * <pre> * Output only. If true, the database is being updated. If false, there are no * ongoing update operations for the database. * </pre> * * <code>bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The reconciling. */ @java.lang.Override @@ -927,7 +755,6 @@ public boolean getReconciling() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -939,12 +766,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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 (state_ - != com.google.spanner.admin.database.v1.Database.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.spanner.admin.database.v1.Database.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (createTime_ != null) { @@ -968,9 +795,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLeader_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, defaultLeader_); } - if (databaseDialect_ - != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED - .getNumber()) { + if (databaseDialect_ != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED.getNumber()) { output.writeEnum(10, databaseDialect_); } if (enableDropProtection_ != false) { @@ -991,41 +816,47 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.spanner.admin.database.v1.Database.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.spanner.admin.database.v1.Database.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (restoreInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRestoreInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRestoreInfo()); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEncryptionConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionRetentionPeriod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, versionRetentionPeriod_); } if (earliestVersionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEarliestVersionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getEarliestVersionTime()); } for (int i = 0; i < encryptionInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, encryptionInfo_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, encryptionInfo_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLeader_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, defaultLeader_); } - if (databaseDialect_ - != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, databaseDialect_); + if (databaseDialect_ != com.google.spanner.admin.database.v1.DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, databaseDialect_); } if (enableDropProtection_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableDropProtection_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, enableDropProtection_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, reconciling_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1035,38 +866,47 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.Database)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.Database other = - (com.google.spanner.admin.database.v1.Database) obj; + com.google.spanner.admin.database.v1.Database other = (com.google.spanner.admin.database.v1.Database) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasRestoreInfo() != other.hasRestoreInfo()) return false; if (hasRestoreInfo()) { - if (!getRestoreInfo().equals(other.getRestoreInfo())) return false; + if (!getRestoreInfo() + .equals(other.getRestoreInfo())) return false; } if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + if (!getEncryptionConfig() + .equals(other.getEncryptionConfig())) return false; } - if (!getEncryptionInfoList().equals(other.getEncryptionInfoList())) return false; - if (!getVersionRetentionPeriod().equals(other.getVersionRetentionPeriod())) return false; + if (!getEncryptionInfoList() + .equals(other.getEncryptionInfoList())) return false; + if (!getVersionRetentionPeriod() + .equals(other.getVersionRetentionPeriod())) return false; if (hasEarliestVersionTime() != other.hasEarliestVersionTime()) return false; if (hasEarliestVersionTime()) { - if (!getEarliestVersionTime().equals(other.getEarliestVersionTime())) return false; + if (!getEarliestVersionTime() + .equals(other.getEarliestVersionTime())) return false; } - if (!getDefaultLeader().equals(other.getDefaultLeader())) return false; + if (!getDefaultLeader() + .equals(other.getDefaultLeader())) return false; if (databaseDialect_ != other.databaseDialect_) return false; - if (getEnableDropProtection() != other.getEnableDropProtection()) return false; - if (getReconciling() != other.getReconciling()) return false; + if (getEnableDropProtection() + != other.getEnableDropProtection()) return false; + if (getReconciling() + != other.getReconciling()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1109,144 +949,142 @@ public int hashCode() { hash = (37 * hash) + DATABASE_DIALECT_FIELD_NUMBER; hash = (53 * hash) + databaseDialect_; hash = (37 * hash) + ENABLE_DROP_PROTECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDropProtection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableDropProtection()); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.spanner.admin.database.v1.Database parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.admin.database.v1.Database parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.Database parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.Database parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.Database 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.admin.database.v1.Database parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.Database parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.Database parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.Database parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.Database parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.Database parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.Database parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.Database parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.Database parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.database.v1.Database prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * A Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.Database} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.Database) com.google.spanner.admin.database.v1.DatabaseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_Database_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_Database_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_Database_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_Database_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.Database.class, - com.google.spanner.admin.database.v1.Database.Builder.class); + com.google.spanner.admin.database.v1.Database.class, com.google.spanner.admin.database.v1.Database.Builder.class); } // Construct using com.google.spanner.admin.database.v1.Database.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1289,9 +1127,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_Database_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_Database_descriptor; } @java.lang.Override @@ -1310,12 +1148,9 @@ public com.google.spanner.admin.database.v1.Database build() { @java.lang.Override public com.google.spanner.admin.database.v1.Database buildPartial() { - com.google.spanner.admin.database.v1.Database result = - new com.google.spanner.admin.database.v1.Database(this); + com.google.spanner.admin.database.v1.Database result = new com.google.spanner.admin.database.v1.Database(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1341,24 +1176,27 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Database result) result.state_ = state_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.restoreInfo_ = - restoreInfoBuilder_ == null ? restoreInfo_ : restoreInfoBuilder_.build(); + result.restoreInfo_ = restoreInfoBuilder_ == null + ? restoreInfo_ + : restoreInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.encryptionConfig_ = - encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + result.encryptionConfig_ = encryptionConfigBuilder_ == null + ? encryptionConfig_ + : encryptionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.versionRetentionPeriod_ = versionRetentionPeriod_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.earliestVersionTime_ = - earliestVersionTimeBuilder_ == null - ? earliestVersionTime_ - : earliestVersionTimeBuilder_.build(); + result.earliestVersionTime_ = earliestVersionTimeBuilder_ == null + ? earliestVersionTime_ + : earliestVersionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.defaultLeader_ = defaultLeader_; @@ -1378,39 +1216,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Database result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.Database) { - return mergeFrom((com.google.spanner.admin.database.v1.Database) other); + return mergeFrom((com.google.spanner.admin.database.v1.Database)other); } else { super.mergeFrom(other); return this; @@ -1454,10 +1291,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.Database other) { encryptionInfoBuilder_ = null; encryptionInfo_ = other.encryptionInfo_; bitField0_ = (bitField0_ & ~0x00000020); - encryptionInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEncryptionInfoFieldBuilder() - : null; + encryptionInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEncryptionInfoFieldBuilder() : null; } else { encryptionInfoBuilder_.addAllMessages(other.encryptionInfo_); } @@ -1511,95 +1347,88 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getRestoreInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - versionRetentionPeriod_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - input.readMessage( - getEarliestVersionTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - com.google.spanner.admin.database.v1.EncryptionInfo m = - input.readMessage( - com.google.spanner.admin.database.v1.EncryptionInfo.parser(), - extensionRegistry); - if (encryptionInfoBuilder_ == null) { - ensureEncryptionInfoIsMutable(); - encryptionInfo_.add(m); - } else { - encryptionInfoBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - defaultLeader_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 80: - { - databaseDialect_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: - { - enableDropProtection_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getRestoreInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + versionRetentionPeriod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + input.readMessage( + getEarliestVersionTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + com.google.spanner.admin.database.v1.EncryptionInfo m = + input.readMessage( + com.google.spanner.admin.database.v1.EncryptionInfo.parser(), + extensionRegistry); + if (encryptionInfoBuilder_ == null) { + ensureEncryptionInfoIsMutable(); + encryptionInfo_.add(m); + } else { + encryptionInfoBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + defaultLeader_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: { + databaseDialect_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + enableDropProtection_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1609,13 +1438,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -1625,13 +1451,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1640,8 +1466,6 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -1651,14 +1475,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1666,8 +1491,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -1677,22 +1500,18 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -1702,7 +1521,6 @@ public Builder setName(java.lang.String value) { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -1712,8 +1530,6 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -1723,14 +1539,12 @@ public Builder clearName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1740,33 +1554,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1777,37 +1580,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ @java.lang.Override public com.google.spanner.admin.database.v1.Database.State getState() { - com.google.spanner.admin.database.v1.Database.State result = - com.google.spanner.admin.database.v1.Database.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.database.v1.Database.State.UNRECOGNIZED - : result; + com.google.spanner.admin.database.v1.Database.State result = com.google.spanner.admin.database.v1.Database.State.forNumber(state_); + return result == null ? com.google.spanner.admin.database.v1.Database.State.UNRECOGNIZED : result; } /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The state to set. * @return This builder for chaining. */ @@ -1821,16 +1611,11 @@ public Builder setState(com.google.spanner.admin.database.v1.Database.State valu return this; } /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearState() { @@ -1842,58 +1627,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1909,17 +1675,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1930,21 +1693,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1957,15 +1716,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1978,15 +1733,11 @@ public Builder clearCreateTime() { return this; } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1994,48 +1745,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2043,61 +1782,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.spanner.admin.database.v1.RestoreInfo restoreInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.RestoreInfo, - com.google.spanner.admin.database.v1.RestoreInfo.Builder, - com.google.spanner.admin.database.v1.RestoreInfoOrBuilder> - restoreInfoBuilder_; + com.google.spanner.admin.database.v1.RestoreInfo, com.google.spanner.admin.database.v1.RestoreInfo.Builder, com.google.spanner.admin.database.v1.RestoreInfoOrBuilder> restoreInfoBuilder_; /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the restoreInfo field is set. */ public boolean hasRestoreInfo() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The restoreInfo. */ public com.google.spanner.admin.database.v1.RestoreInfo getRestoreInfo() { if (restoreInfoBuilder_ == null) { - return restoreInfo_ == null - ? com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance() - : restoreInfo_; + return restoreInfo_ == null ? com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance() : restoreInfo_; } else { return restoreInfoBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setRestoreInfo(com.google.spanner.admin.database.v1.RestoreInfo value) { if (restoreInfoBuilder_ == null) { @@ -2113,16 +1833,12 @@ public Builder setRestoreInfo(com.google.spanner.admin.database.v1.RestoreInfo v return this; } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setRestoreInfo( com.google.spanner.admin.database.v1.RestoreInfo.Builder builderForValue) { @@ -2136,23 +1852,18 @@ public Builder setRestoreInfo( return this; } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeRestoreInfo(com.google.spanner.admin.database.v1.RestoreInfo value) { if (restoreInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && restoreInfo_ != null - && restoreInfo_ - != com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + restoreInfo_ != null && + restoreInfo_ != com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance()) { getRestoreInfoBuilder().mergeFrom(value); } else { restoreInfo_ = value; @@ -2165,16 +1876,12 @@ public Builder mergeRestoreInfo(com.google.spanner.admin.database.v1.RestoreInfo return this; } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearRestoreInfo() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2187,16 +1894,12 @@ public Builder clearRestoreInfo() { return this; } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.database.v1.RestoreInfo.Builder getRestoreInfoBuilder() { bitField0_ |= 0x00000008; @@ -2204,50 +1907,38 @@ public com.google.spanner.admin.database.v1.RestoreInfo.Builder getRestoreInfoBu return getRestoreInfoFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.database.v1.RestoreInfoOrBuilder getRestoreInfoOrBuilder() { if (restoreInfoBuilder_ != null) { return restoreInfoBuilder_.getMessageOrBuilder(); } else { - return restoreInfo_ == null - ? com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance() - : restoreInfo_; + return restoreInfo_ == null ? + com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance() : restoreInfo_; } } /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.RestoreInfo, - com.google.spanner.admin.database.v1.RestoreInfo.Builder, - com.google.spanner.admin.database.v1.RestoreInfoOrBuilder> + com.google.spanner.admin.database.v1.RestoreInfo, com.google.spanner.admin.database.v1.RestoreInfo.Builder, com.google.spanner.admin.database.v1.RestoreInfoOrBuilder> getRestoreInfoFieldBuilder() { if (restoreInfoBuilder_ == null) { - restoreInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.RestoreInfo, - com.google.spanner.admin.database.v1.RestoreInfo.Builder, - com.google.spanner.admin.database.v1.RestoreInfoOrBuilder>( - getRestoreInfo(), getParentForChildren(), isClean()); + restoreInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.RestoreInfo, com.google.spanner.admin.database.v1.RestoreInfo.Builder, com.google.spanner.admin.database.v1.RestoreInfoOrBuilder>( + getRestoreInfo(), + getParentForChildren(), + isClean()); restoreInfo_ = null; } return restoreInfoBuilder_; @@ -2255,13 +1946,8 @@ public com.google.spanner.admin.database.v1.RestoreInfoOrBuilder getRestoreInfoO 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_; + com.google.spanner.admin.database.v1.EncryptionConfig, com.google.spanner.admin.database.v1.EncryptionConfig.Builder, com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder> encryptionConfigBuilder_; /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2269,18 +1955,13 @@ public com.google.spanner.admin.database.v1.RestoreInfoOrBuilder getRestoreInfoO * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2288,24 +1969,17 @@ public boolean hasEncryptionConfig() { * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @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_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2313,12 +1987,9 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setEncryptionConfig( - com.google.spanner.admin.database.v1.EncryptionConfig value) { + public Builder setEncryptionConfig(com.google.spanner.admin.database.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2332,8 +2003,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2341,9 +2010,7 @@ public Builder setEncryptionConfig( * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setEncryptionConfig( com.google.spanner.admin.database.v1.EncryptionConfig.Builder builderForValue) { @@ -2357,8 +2024,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2366,17 +2031,13 @@ public Builder setEncryptionConfig( * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder mergeEncryptionConfig( - com.google.spanner.admin.database.v1.EncryptionConfig value) { + 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()) { + if (((bitField0_ & 0x00000010) != 0) && + encryptionConfig_ != null && + encryptionConfig_ != com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()) { getEncryptionConfigBuilder().mergeFrom(value); } else { encryptionConfig_ = value; @@ -2389,8 +2050,6 @@ public Builder mergeEncryptionConfig( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2398,9 +2057,7 @@ public Builder mergeEncryptionConfig( * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearEncryptionConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2413,8 +2070,6 @@ public Builder clearEncryptionConfig() { return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2422,19 +2077,14 @@ public Builder clearEncryptionConfig() { * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public com.google.spanner.admin.database.v1.EncryptionConfig.Builder - getEncryptionConfigBuilder() { + public com.google.spanner.admin.database.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2442,23 +2092,17 @@ public Builder clearEncryptionConfig() { * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { + 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_; + return encryptionConfig_ == null ? + com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -2466,48 +2110,35 @@ public Builder clearEncryptionConfig() { * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ 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> + 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()); + 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.util.List<com.google.spanner.admin.database.v1.EncryptionInfo> encryptionInfo_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEncryptionInfoIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - encryptionInfo_ = - new java.util.ArrayList<com.google.spanner.admin.database.v1.EncryptionInfo>( - encryptionInfo_); + encryptionInfo_ = new java.util.ArrayList<com.google.spanner.admin.database.v1.EncryptionInfo>(encryptionInfo_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.EncryptionInfo, - com.google.spanner.admin.database.v1.EncryptionInfo.Builder, - com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> - encryptionInfoBuilder_; + com.google.spanner.admin.database.v1.EncryptionInfo, com.google.spanner.admin.database.v1.EncryptionInfo.Builder, com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> encryptionInfoBuilder_; /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2520,12 +2151,9 @@ private void ensureEncryptionInfoIsMutable() { * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo> - getEncryptionInfoList() { + public java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo> getEncryptionInfoList() { if (encryptionInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(encryptionInfo_); } else { @@ -2533,8 +2161,6 @@ private void ensureEncryptionInfoIsMutable() { } } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2547,9 +2173,7 @@ private void ensureEncryptionInfoIsMutable() { * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public int getEncryptionInfoCount() { if (encryptionInfoBuilder_ == null) { @@ -2559,8 +2183,6 @@ public int getEncryptionInfoCount() { } } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2573,9 +2195,7 @@ public int getEncryptionInfoCount() { * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(int index) { if (encryptionInfoBuilder_ == null) { @@ -2585,8 +2205,6 @@ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(int } } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2599,9 +2217,7 @@ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(int * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setEncryptionInfo( int index, com.google.spanner.admin.database.v1.EncryptionInfo value) { @@ -2618,8 +2234,6 @@ public Builder setEncryptionInfo( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2632,9 +2246,7 @@ public Builder setEncryptionInfo( * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setEncryptionInfo( int index, com.google.spanner.admin.database.v1.EncryptionInfo.Builder builderForValue) { @@ -2648,8 +2260,6 @@ public Builder setEncryptionInfo( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2662,9 +2272,7 @@ public Builder setEncryptionInfo( * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addEncryptionInfo(com.google.spanner.admin.database.v1.EncryptionInfo value) { if (encryptionInfoBuilder_ == null) { @@ -2680,8 +2288,6 @@ public Builder addEncryptionInfo(com.google.spanner.admin.database.v1.Encryption return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2694,9 +2300,7 @@ public Builder addEncryptionInfo(com.google.spanner.admin.database.v1.Encryption * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addEncryptionInfo( int index, com.google.spanner.admin.database.v1.EncryptionInfo value) { @@ -2713,8 +2317,6 @@ public Builder addEncryptionInfo( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2727,9 +2329,7 @@ public Builder addEncryptionInfo( * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addEncryptionInfo( com.google.spanner.admin.database.v1.EncryptionInfo.Builder builderForValue) { @@ -2743,8 +2343,6 @@ public Builder addEncryptionInfo( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2757,9 +2355,7 @@ public Builder addEncryptionInfo( * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addEncryptionInfo( int index, com.google.spanner.admin.database.v1.EncryptionInfo.Builder builderForValue) { @@ -2773,8 +2369,6 @@ public Builder addEncryptionInfo( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2787,15 +2381,14 @@ public Builder addEncryptionInfo( * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addAllEncryptionInfo( java.lang.Iterable<? extends com.google.spanner.admin.database.v1.EncryptionInfo> values) { if (encryptionInfoBuilder_ == null) { ensureEncryptionInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, encryptionInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, encryptionInfo_); onChanged(); } else { encryptionInfoBuilder_.addAllMessages(values); @@ -2803,8 +2396,6 @@ public Builder addAllEncryptionInfo( return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2817,9 +2408,7 @@ public Builder addAllEncryptionInfo( * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearEncryptionInfo() { if (encryptionInfoBuilder_ == null) { @@ -2832,8 +2421,6 @@ public Builder clearEncryptionInfo() { return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2846,9 +2433,7 @@ public Builder clearEncryptionInfo() { * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder removeEncryptionInfo(int index) { if (encryptionInfoBuilder_ == null) { @@ -2861,8 +2446,6 @@ public Builder removeEncryptionInfo(int index) { return this; } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2875,17 +2458,13 @@ public Builder removeEncryptionInfo(int index) { * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder getEncryptionInfoBuilder( int index) { return getEncryptionInfoFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2898,21 +2477,16 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder getEncryption * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder( int index) { if (encryptionInfoBuilder_ == null) { - return encryptionInfo_.get(index); - } else { + return encryptionInfo_.get(index); } else { return encryptionInfoBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2925,12 +2499,10 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public java.util.List<? extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> - getEncryptionInfoOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> + getEncryptionInfoOrBuilderList() { if (encryptionInfoBuilder_ != null) { return encryptionInfoBuilder_.getMessageOrBuilderList(); } else { @@ -2938,8 +2510,6 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio } } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2952,17 +2522,13 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryptionInfoBuilder() { - return getEncryptionInfoFieldBuilder() - .addBuilder(com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance()); + return getEncryptionInfoFieldBuilder().addBuilder( + com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance()); } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -2975,19 +2541,14 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryption * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryptionInfoBuilder( int index) { - return getEncryptionInfoFieldBuilder() - .addBuilder( - index, com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance()); + return getEncryptionInfoFieldBuilder().addBuilder( + index, com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance()); } /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -3000,26 +2561,18 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryption * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo.Builder> - getEncryptionInfoBuilderList() { + public java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo.Builder> + getEncryptionInfoBuilderList() { return getEncryptionInfoFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.EncryptionInfo, - com.google.spanner.admin.database.v1.EncryptionInfo.Builder, - com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> + com.google.spanner.admin.database.v1.EncryptionInfo, com.google.spanner.admin.database.v1.EncryptionInfo.Builder, com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> getEncryptionInfoFieldBuilder() { if (encryptionInfoBuilder_ == null) { - encryptionInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.EncryptionInfo, - com.google.spanner.admin.database.v1.EncryptionInfo.Builder, - com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder>( + encryptionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.EncryptionInfo, com.google.spanner.admin.database.v1.EncryptionInfo.Builder, com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder>( encryptionInfo_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -3031,8 +2584,6 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryption private java.lang.Object versionRetentionPeriod_ = ""; /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -3041,15 +2592,14 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryption * if not set. * </pre> * - * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The versionRetentionPeriod. */ public java.lang.String getVersionRetentionPeriod() { java.lang.Object ref = versionRetentionPeriod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionRetentionPeriod_ = s; return s; @@ -3058,8 +2608,6 @@ public java.lang.String getVersionRetentionPeriod() { } } /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -3068,16 +2616,16 @@ public java.lang.String getVersionRetentionPeriod() { * if not set. * </pre> * - * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The bytes for versionRetentionPeriod. */ - public com.google.protobuf.ByteString getVersionRetentionPeriodBytes() { + public com.google.protobuf.ByteString + getVersionRetentionPeriodBytes() { java.lang.Object ref = versionRetentionPeriod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); versionRetentionPeriod_ = b; return b; } else { @@ -3085,8 +2633,6 @@ public com.google.protobuf.ByteString getVersionRetentionPeriodBytes() { } } /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -3095,24 +2641,19 @@ public com.google.protobuf.ByteString getVersionRetentionPeriodBytes() { * if not set. * </pre> * - * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The versionRetentionPeriod to set. * @return This builder for chaining. */ - public Builder setVersionRetentionPeriod(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersionRetentionPeriod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } versionRetentionPeriod_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -3121,9 +2662,7 @@ public Builder setVersionRetentionPeriod(java.lang.String value) { * if not set. * </pre> * - * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearVersionRetentionPeriod() { @@ -3133,8 +2672,6 @@ public Builder clearVersionRetentionPeriod() { return this; } /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -3143,16 +2680,13 @@ public Builder clearVersionRetentionPeriod() { * if not set. * </pre> * - * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The bytes for versionRetentionPeriod to set. * @return This builder for chaining. */ - public Builder setVersionRetentionPeriodBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersionRetentionPeriodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); versionRetentionPeriod_ = value; bitField0_ |= 0x00000040; @@ -3162,13 +2696,8 @@ public Builder setVersionRetentionPeriodBytes(com.google.protobuf.ByteString val private com.google.protobuf.Timestamp earliestVersionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - earliestVersionTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestVersionTimeBuilder_; /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3177,18 +2706,13 @@ public Builder setVersionRetentionPeriodBytes(com.google.protobuf.ByteString val * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the earliestVersionTime field is set. */ public boolean hasEarliestVersionTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3197,24 +2721,17 @@ public boolean hasEarliestVersionTime() { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The earliestVersionTime. */ public com.google.protobuf.Timestamp getEarliestVersionTime() { if (earliestVersionTimeBuilder_ == null) { - return earliestVersionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestVersionTime_; + return earliestVersionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVersionTime_; } else { return earliestVersionTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3223,9 +2740,7 @@ public com.google.protobuf.Timestamp getEarliestVersionTime() { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setEarliestVersionTime(com.google.protobuf.Timestamp value) { if (earliestVersionTimeBuilder_ == null) { @@ -3241,8 +2756,6 @@ public Builder setEarliestVersionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3251,11 +2764,10 @@ public Builder setEarliestVersionTime(com.google.protobuf.Timestamp value) { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setEarliestVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEarliestVersionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (earliestVersionTimeBuilder_ == null) { earliestVersionTime_ = builderForValue.build(); } else { @@ -3266,8 +2778,6 @@ public Builder setEarliestVersionTime(com.google.protobuf.Timestamp.Builder buil return this; } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3276,15 +2786,13 @@ public Builder setEarliestVersionTime(com.google.protobuf.Timestamp.Builder buil * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeEarliestVersionTime(com.google.protobuf.Timestamp value) { if (earliestVersionTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && earliestVersionTime_ != null - && earliestVersionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + earliestVersionTime_ != null && + earliestVersionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEarliestVersionTimeBuilder().mergeFrom(value); } else { earliestVersionTime_ = value; @@ -3297,8 +2805,6 @@ public Builder mergeEarliestVersionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3307,9 +2813,7 @@ public Builder mergeEarliestVersionTime(com.google.protobuf.Timestamp value) { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearEarliestVersionTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3322,8 +2826,6 @@ public Builder clearEarliestVersionTime() { return this; } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3332,9 +2834,7 @@ public Builder clearEarliestVersionTime() { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getEarliestVersionTimeBuilder() { bitField0_ |= 0x00000080; @@ -3342,8 +2842,6 @@ public com.google.protobuf.Timestamp.Builder getEarliestVersionTimeBuilder() { return getEarliestVersionTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3352,22 +2850,17 @@ public com.google.protobuf.Timestamp.Builder getEarliestVersionTimeBuilder() { * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() { if (earliestVersionTimeBuilder_ != null) { return earliestVersionTimeBuilder_.getMessageOrBuilder(); } else { - return earliestVersionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestVersionTime_; + return earliestVersionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : earliestVersionTime_; } } /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -3376,22 +2869,17 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEarliestVersionTimeFieldBuilder() { if (earliestVersionTimeBuilder_ == null) { - earliestVersionTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEarliestVersionTime(), getParentForChildren(), isClean()); + earliestVersionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEarliestVersionTime(), + getParentForChildren(), + isClean()); earliestVersionTime_ = null; } return earliestVersionTimeBuilder_; @@ -3399,8 +2887,6 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() private java.lang.Object defaultLeader_ = ""; /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -3411,13 +2897,13 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The defaultLeader. */ public java.lang.String getDefaultLeader() { java.lang.Object ref = defaultLeader_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultLeader_ = s; return s; @@ -3426,8 +2912,6 @@ public java.lang.String getDefaultLeader() { } } /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -3438,14 +2922,15 @@ public java.lang.String getDefaultLeader() { * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The bytes for defaultLeader. */ - public com.google.protobuf.ByteString getDefaultLeaderBytes() { + public com.google.protobuf.ByteString + getDefaultLeaderBytes() { java.lang.Object ref = defaultLeader_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultLeader_ = b; return b; } else { @@ -3453,8 +2938,6 @@ public com.google.protobuf.ByteString getDefaultLeaderBytes() { } } /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -3465,22 +2948,18 @@ public com.google.protobuf.ByteString getDefaultLeaderBytes() { * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @param value The defaultLeader to set. * @return This builder for chaining. */ - public Builder setDefaultLeader(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDefaultLeader( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } defaultLeader_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -3491,7 +2970,6 @@ public Builder setDefaultLeader(java.lang.String value) { * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return This builder for chaining. */ public Builder clearDefaultLeader() { @@ -3501,8 +2979,6 @@ public Builder clearDefaultLeader() { return this; } /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -3513,14 +2989,12 @@ public Builder clearDefaultLeader() { * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @param value The bytes for defaultLeader to set. * @return This builder for chaining. */ - public Builder setDefaultLeaderBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDefaultLeaderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultLeader_ = value; bitField0_ |= 0x00000100; @@ -3530,33 +3004,22 @@ public Builder setDefaultLeaderBytes(com.google.protobuf.ByteString value) { private int databaseDialect_ = 0; /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for databaseDialect. */ - @java.lang.Override - public int getDatabaseDialectValue() { + @java.lang.Override public int getDatabaseDialectValue() { return databaseDialect_; } /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The enum numeric value on the wire for databaseDialect to set. * @return This builder for chaining. */ @@ -3567,37 +3030,24 @@ public Builder setDatabaseDialectValue(int value) { return this; } /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The databaseDialect. */ @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() { - com.google.spanner.admin.database.v1.DatabaseDialect result = - com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); - return result == null - ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED - : result; + com.google.spanner.admin.database.v1.DatabaseDialect result = com.google.spanner.admin.database.v1.DatabaseDialect.forNumber(databaseDialect_); + return result == null ? com.google.spanner.admin.database.v1.DatabaseDialect.UNRECOGNIZED : result; } /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The databaseDialect to set. * @return This builder for chaining. */ @@ -3611,16 +3061,11 @@ public Builder setDatabaseDialect(com.google.spanner.admin.database.v1.DatabaseD return this; } /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearDatabaseDialect() { @@ -3630,17 +3075,14 @@ public Builder clearDatabaseDialect() { return this; } - private boolean enableDropProtection_; + private boolean enableDropProtection_ ; /** - * - * * <pre> * Whether drop protection is enabled for this database. Defaults to false, * if not set. * </pre> * * <code>bool enable_drop_protection = 11;</code> - * * @return The enableDropProtection. */ @java.lang.Override @@ -3648,15 +3090,12 @@ public boolean getEnableDropProtection() { return enableDropProtection_; } /** - * - * * <pre> * Whether drop protection is enabled for this database. Defaults to false, * if not set. * </pre> * * <code>bool enable_drop_protection = 11;</code> - * * @param value The enableDropProtection to set. * @return This builder for chaining. */ @@ -3668,15 +3107,12 @@ public Builder setEnableDropProtection(boolean value) { return this; } /** - * - * * <pre> * Whether drop protection is enabled for this database. Defaults to false, * if not set. * </pre> * * <code>bool enable_drop_protection = 11;</code> - * * @return This builder for chaining. */ public Builder clearEnableDropProtection() { @@ -3686,17 +3122,14 @@ public Builder clearEnableDropProtection() { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * * <pre> * Output only. If true, the database is being updated. If false, there are no * ongoing update operations for the database. * </pre> * * <code>bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The reconciling. */ @java.lang.Override @@ -3704,15 +3137,12 @@ public boolean getReconciling() { return reconciling_; } /** - * - * * <pre> * Output only. If true, the database is being updated. If false, there are no * ongoing update operations for the database. * </pre> * * <code>bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -3724,15 +3154,12 @@ public Builder setReconciling(boolean value) { return this; } /** - * - * * <pre> * Output only. If true, the database is being updated. If false, there are no * ongoing update operations for the database. * </pre> * * <code>bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3741,9 +3168,9 @@ public Builder clearReconciling() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3753,12 +3180,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.Database) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.Database) private static final com.google.spanner.admin.database.v1.Database DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.Database(); } @@ -3767,27 +3194,27 @@ public static com.google.spanner.admin.database.v1.Database getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<Database> PARSER = - new com.google.protobuf.AbstractParser<Database>() { - @java.lang.Override - public Database parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<Database> + PARSER = new com.google.protobuf.AbstractParser<Database>() { + @java.lang.Override + public Database parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<Database> parser() { return PARSER; @@ -3802,4 +3229,6 @@ public com.google.protobuf.Parser<Database> getParserForType() { public com.google.spanner.admin.database.v1.Database getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java similarity index 67% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java index 1c8a6f37a26..a779d975852 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java @@ -1,36 +1,18 @@ -/* - * 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/admin/database/v1/common.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Indicates the dialect type of a database. * </pre> * * Protobuf enum {@code google.spanner.admin.database.v1.DatabaseDialect} */ -public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum { +public enum DatabaseDialect + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Default value. This value will create a database with the * GOOGLE_STANDARD_SQL dialect. @@ -40,8 +22,6 @@ public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum { */ DATABASE_DIALECT_UNSPECIFIED(0), /** - * - * * <pre> * Google standard SQL. * </pre> @@ -50,8 +30,6 @@ public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum { */ GOOGLE_STANDARD_SQL(1), /** - * - * * <pre> * PostgreSQL supported SQL. * </pre> @@ -63,8 +41,6 @@ public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Default value. This value will create a database with the * GOOGLE_STANDARD_SQL dialect. @@ -74,8 +50,6 @@ public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATABASE_DIALECT_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * Google standard SQL. * </pre> @@ -84,8 +58,6 @@ public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_STANDARD_SQL_VALUE = 1; /** - * - * * <pre> * PostgreSQL supported SQL. * </pre> @@ -94,6 +66,7 @@ public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTGRESQL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -118,49 +91,49 @@ public static DatabaseDialect valueOf(int value) { */ public static DatabaseDialect forNumber(int value) { switch (value) { - case 0: - return DATABASE_DIALECT_UNSPECIFIED; - case 1: - return GOOGLE_STANDARD_SQL; - case 2: - return POSTGRESQL; - default: - return null; + case 0: return DATABASE_DIALECT_UNSPECIFIED; + case 1: return GOOGLE_STANDARD_SQL; + case 2: return POSTGRESQL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<DatabaseDialect> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<DatabaseDialect> + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap<DatabaseDialect> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<DatabaseDialect>() { - public DatabaseDialect findValueByNumber(int number) { - return DatabaseDialect.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DatabaseDialect> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<DatabaseDialect>() { + public DatabaseDialect findValueByNumber(int number) { + return DatabaseDialect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.spanner.admin.database.v1.CommonProto.getDescriptor().getEnumTypes().get(0); } private static final DatabaseDialect[] VALUES = values(); - public static DatabaseDialect valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseDialect valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -176,3 +149,4 @@ private DatabaseDialect(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.database.v1.DatabaseDialect) } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java similarity index 100% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java similarity index 74% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java index 860ac8d9d73..cfdefdabfe5 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface DatabaseOrBuilder - extends +public interface DatabaseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.Database) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -35,13 +17,10 @@ public interface DatabaseOrBuilder * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, @@ -51,125 +30,88 @@ public interface DatabaseOrBuilder * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * * <pre> * Output only. The current database state. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ com.google.spanner.admin.database.v1.Database.State getState(); /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * * <pre> * Output only. If exists, the time at which the database creation started. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the restoreInfo field is set. */ boolean hasRestoreInfo(); /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The restoreInfo. */ com.google.spanner.admin.database.v1.RestoreInfo getRestoreInfo(); /** - * - * * <pre> * Output only. Applicable only for restored databases. Contains information * about the restore source. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.spanner.admin.database.v1.RestoreInfoOrBuilder getRestoreInfoOrBuilder(); /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -177,16 +119,11 @@ public interface DatabaseOrBuilder * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -194,16 +131,11 @@ public interface DatabaseOrBuilder * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionConfig. */ com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig(); /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption configuration for the database. @@ -211,15 +143,11 @@ public interface DatabaseOrBuilder * this field is empty. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -232,14 +160,11 @@ public interface DatabaseOrBuilder * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo> getEncryptionInfoList(); + java.util.List<com.google.spanner.admin.database.v1.EncryptionInfo> + getEncryptionInfoList(); /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -252,14 +177,10 @@ public interface DatabaseOrBuilder * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(int index); /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -272,14 +193,10 @@ public interface DatabaseOrBuilder * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ int getEncryptionInfoCount(); /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -292,15 +209,11 @@ public interface DatabaseOrBuilder * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - java.util.List<? extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> + java.util.List<? extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder> getEncryptionInfoOrBuilderList(); /** - * - * * <pre> * Output only. For databases that are using customer managed encryption, this * field contains the encryption information for the database, such as @@ -313,16 +226,12 @@ public interface DatabaseOrBuilder * from when a key version is being used and when it appears in this field. * </pre> * - * <code> - * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder( int index); /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -332,13 +241,10 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * </pre> * * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The versionRetentionPeriod. */ java.lang.String getVersionRetentionPeriod(); /** - * - * * <pre> * Output only. The period in which Cloud Spanner retains all versions of data * for the database. This is the same as the value of version_retention_period @@ -348,14 +254,12 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * </pre> * * <code>string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The bytes for versionRetentionPeriod. */ - com.google.protobuf.ByteString getVersionRetentionPeriodBytes(); + com.google.protobuf.ByteString + getVersionRetentionPeriodBytes(); /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -364,16 +268,11 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the earliestVersionTime field is set. */ boolean hasEarliestVersionTime(); /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -382,16 +281,11 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The earliestVersionTime. */ com.google.protobuf.Timestamp getEarliestVersionTime(); /** - * - * * <pre> * Output only. Earliest timestamp at which older versions of the data can be * read. This value is continuously updated by Cloud Spanner and becomes stale @@ -400,15 +294,11 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * the moment when you initiate the recovery. * </pre> * - * <code> - * .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder(); /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -419,13 +309,10 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The defaultLeader. */ java.lang.String getDefaultLeader(); /** - * - * * <pre> * Output only. The read-write region which contains the database's leader * replicas. @@ -436,64 +323,48 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * </pre> * * <code>string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The bytes for defaultLeader. */ - com.google.protobuf.ByteString getDefaultLeaderBytes(); + com.google.protobuf.ByteString + getDefaultLeaderBytes(); /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for databaseDialect. */ int getDatabaseDialectValue(); /** - * - * * <pre> * Output only. The dialect of the Cloud Spanner Database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The databaseDialect. */ com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect(); /** - * - * * <pre> * Whether drop protection is enabled for this database. Defaults to false, * if not set. * </pre> * * <code>bool enable_drop_protection = 11;</code> - * * @return The enableDropProtection. */ boolean getEnableDropProtection(); /** - * - * * <pre> * Output only. If true, the database is being updated. If false, there are no * ongoing update operations for the database. * </pre> * * <code>bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The reconciling. */ boolean getReconciling(); diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java similarity index 69% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java index 8518141cf47..de20f8558c8 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java @@ -1,74 +1,52 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * A Cloud Spanner database role. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.DatabaseRole} */ -public final class DatabaseRole extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DatabaseRole extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.DatabaseRole) DatabaseRoleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DatabaseRole.newBuilder() to construct. private DatabaseRole(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private DatabaseRole() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DatabaseRole(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DatabaseRole_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DatabaseRole_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.DatabaseRole.class, - com.google.spanner.admin.database.v1.DatabaseRole.Builder.class); + com.google.spanner.admin.database.v1.DatabaseRole.class, com.google.spanner.admin.database.v1.DatabaseRole.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The name. */ @java.lang.Override @@ -87,15 +64,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -105,15 +81,16 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -158,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.DatabaseRole)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.DatabaseRole other = - (com.google.spanner.admin.database.v1.DatabaseRole) obj; + com.google.spanner.admin.database.v1.DatabaseRole other = (com.google.spanner.admin.database.v1.DatabaseRole) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,135 +163,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DatabaseRole 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.admin.database.v1.DatabaseRole parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DatabaseRole parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.DatabaseRole parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.DatabaseRole parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.DatabaseRole parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.database.v1.DatabaseRole prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * A Cloud Spanner database role. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.DatabaseRole} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.DatabaseRole) com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DatabaseRole_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DatabaseRole_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.DatabaseRole.class, - com.google.spanner.admin.database.v1.DatabaseRole.Builder.class); + com.google.spanner.admin.database.v1.DatabaseRole.class, com.google.spanner.admin.database.v1.DatabaseRole.Builder.class); } // Construct using com.google.spanner.admin.database.v1.DatabaseRole.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor; } @java.lang.Override @@ -345,11 +318,8 @@ public com.google.spanner.admin.database.v1.DatabaseRole build() { @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseRole buildPartial() { - com.google.spanner.admin.database.v1.DatabaseRole result = - new com.google.spanner.admin.database.v1.DatabaseRole(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.DatabaseRole result = new com.google.spanner.admin.database.v1.DatabaseRole(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +335,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.DatabaseRole res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.DatabaseRole) { - return mergeFrom((com.google.spanner.admin.database.v1.DatabaseRole) other); + return mergeFrom((com.google.spanner.admin.database.v1.DatabaseRole)other); } else { super.mergeFrom(other); return this; @@ -405,8 +374,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.DatabaseRole other) { - if (other == com.google.spanner.admin.database.v1.DatabaseRole.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.DatabaseRole.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -438,19 +406,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,13 +426,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -476,13 +439,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,8 +454,6 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -502,14 +463,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -517,8 +479,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -528,22 +488,18 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -553,7 +509,6 @@ public Builder setName(java.lang.String value) { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -563,8 +518,6 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -574,23 +527,21 @@ public Builder clearName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,12 +551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.DatabaseRole) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.DatabaseRole) private static final com.google.spanner.admin.database.v1.DatabaseRole DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.DatabaseRole(); } @@ -614,27 +565,27 @@ public static com.google.spanner.admin.database.v1.DatabaseRole getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DatabaseRole> PARSER = - new com.google.protobuf.AbstractParser<DatabaseRole>() { - @java.lang.Override - public DatabaseRole parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DatabaseRole> + PARSER = new com.google.protobuf.AbstractParser<DatabaseRole>() { + @java.lang.Override + public DatabaseRole parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DatabaseRole> parser() { return PARSER; @@ -649,4 +600,6 @@ public com.google.protobuf.Parser<DatabaseRole> getParserForType() { public com.google.spanner.admin.database.v1.DatabaseRole getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java similarity index 64% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java index cc15677e0dd..44df2a12eed 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface DatabaseRoleOrBuilder - extends +public interface DatabaseRoleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.DatabaseRole) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -35,13 +17,10 @@ public interface DatabaseRoleOrBuilder * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Required. The name of the database role. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ @@ -51,8 +30,8 @@ public interface DatabaseRoleOrBuilder * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java similarity index 73% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java index 0c5e9ceea38..4d6a650f6c1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Action information extracted from a DDL statement. This proto is used to * display the brief info of the DDL statement for the operation @@ -29,57 +12,52 @@ * * Protobuf type {@code google.spanner.admin.database.v1.DdlStatementActionInfo} */ -public final class DdlStatementActionInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DdlStatementActionInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.DdlStatementActionInfo) DdlStatementActionInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DdlStatementActionInfo.newBuilder() to construct. private DdlStatementActionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private DdlStatementActionInfo() { action_ = ""; entityType_ = ""; - entityNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + entityNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DdlStatementActionInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.DdlStatementActionInfo.class, - com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder.class); + com.google.spanner.admin.database.v1.DdlStatementActionInfo.class, com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder.class); } public static final int ACTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object action_ = ""; /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @return The action. */ @java.lang.Override @@ -88,30 +66,30 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -120,12 +98,9 @@ public com.google.protobuf.ByteString getActionBytes() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object entityType_ = ""; /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -133,7 +108,6 @@ public com.google.protobuf.ByteString getActionBytes() { * </pre> * * <code>string entity_type = 2;</code> - * * @return The entityType. */ @java.lang.Override @@ -142,15 +116,14 @@ public java.lang.String getEntityType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityType_ = s; return s; } } /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -158,15 +131,16 @@ public java.lang.String getEntityType() { * </pre> * * <code>string entity_type = 2;</code> - * * @return The bytes for entityType. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityTypeBytes() { + public com.google.protobuf.ByteString + getEntityTypeBytes() { java.lang.Object ref = entityType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityType_ = b; return b; } else { @@ -175,13 +149,10 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int ENTITY_NAMES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList entityNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -191,15 +162,13 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @return A list containing the entityNames. */ - public com.google.protobuf.ProtocolStringList getEntityNamesList() { + public com.google.protobuf.ProtocolStringList + getEntityNamesList() { return entityNames_; } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -209,15 +178,12 @@ public com.google.protobuf.ProtocolStringList getEntityNamesList() { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @return The count of entityNames. */ public int getEntityNamesCount() { return entityNames_.size(); } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -227,7 +193,6 @@ public int getEntityNamesCount() { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param index The index of the element to return. * @return The entityNames at the given index. */ @@ -235,8 +200,6 @@ public java.lang.String getEntityNames(int index) { return entityNames_.get(index); } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -246,16 +209,15 @@ public java.lang.String getEntityNames(int index) { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param index The index of the value to return. * @return The bytes of the entityNames at the given index. */ - public com.google.protobuf.ByteString getEntityNamesBytes(int index) { + public com.google.protobuf.ByteString + getEntityNamesBytes(int index) { return entityNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, action_); } @@ -308,17 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.DdlStatementActionInfo)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.DdlStatementActionInfo other = - (com.google.spanner.admin.database.v1.DdlStatementActionInfo) obj; - - if (!getAction().equals(other.getAction())) return false; - if (!getEntityType().equals(other.getEntityType())) return false; - if (!getEntityNamesList().equals(other.getEntityNamesList())) return false; + com.google.spanner.admin.database.v1.DdlStatementActionInfo other = (com.google.spanner.admin.database.v1.DdlStatementActionInfo) obj; + + if (!getAction() + .equals(other.getAction())) return false; + if (!getEntityType() + .equals(other.getEntityType())) return false; + if (!getEntityNamesList() + .equals(other.getEntityNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,104 +309,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo 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.admin.database.v1.DdlStatementActionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.DdlStatementActionInfo prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.DdlStatementActionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action information extracted from a DDL statement. This proto is used to * display the brief info of the DDL statement for the operation @@ -450,46 +409,48 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.DdlStatementActionInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.DdlStatementActionInfo) com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.DdlStatementActionInfo.class, - com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder.class); + com.google.spanner.admin.database.v1.DdlStatementActionInfo.class, com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder.class); } // Construct using com.google.spanner.admin.database.v1.DdlStatementActionInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; action_ = ""; entityType_ = ""; - entityNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + entityNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; } @java.lang.Override @@ -508,11 +469,8 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfo build() { @java.lang.Override public com.google.spanner.admin.database.v1.DdlStatementActionInfo buildPartial() { - com.google.spanner.admin.database.v1.DdlStatementActionInfo result = - new com.google.spanner.admin.database.v1.DdlStatementActionInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.DdlStatementActionInfo result = new com.google.spanner.admin.database.v1.DdlStatementActionInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -535,39 +493,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.DdlStatementActi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.DdlStatementActionInfo) { - return mergeFrom((com.google.spanner.admin.database.v1.DdlStatementActionInfo) other); + return mergeFrom((com.google.spanner.admin.database.v1.DdlStatementActionInfo)other); } else { super.mergeFrom(other); return this; @@ -575,8 +532,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.DdlStatementActionInfo other) { - if (other == com.google.spanner.admin.database.v1.DdlStatementActionInfo.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.DdlStatementActionInfo.getDefaultInstance()) return this; if (!other.getAction().isEmpty()) { action_ = other.action_; bitField0_ |= 0x00000001; @@ -623,32 +579,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - entityType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureEntityNamesIsMutable(); - entityNames_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + entityType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureEntityNamesIsMutable(); + entityNames_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -658,26 +610,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object action_ = ""; /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -686,22 +635,21 @@ public java.lang.String getAction() { } } /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @return The bytes for action. */ - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -709,37 +657,30 @@ public com.google.protobuf.ByteString getActionBytes() { } } /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } action_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @return This builder for chaining. */ public Builder clearAction() { @@ -749,22 +690,18 @@ public Builder clearAction() { return this; } /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @param value The bytes for action to set. * @return This builder for chaining. */ - public Builder setActionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); action_ = value; bitField0_ |= 0x00000001; @@ -774,8 +711,6 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityType_ = ""; /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -783,13 +718,13 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string entity_type = 2;</code> - * * @return The entityType. */ public java.lang.String getEntityType() { java.lang.Object ref = entityType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityType_ = s; return s; @@ -798,8 +733,6 @@ public java.lang.String getEntityType() { } } /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -807,14 +740,15 @@ public java.lang.String getEntityType() { * </pre> * * <code>string entity_type = 2;</code> - * * @return The bytes for entityType. */ - public com.google.protobuf.ByteString getEntityTypeBytes() { + public com.google.protobuf.ByteString + getEntityTypeBytes() { java.lang.Object ref = entityType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityType_ = b; return b; } else { @@ -822,8 +756,6 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } } /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -831,22 +763,18 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { * </pre> * * <code>string entity_type = 2;</code> - * * @param value The entityType to set. * @return This builder for chaining. */ - public Builder setEntityType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -854,7 +782,6 @@ public Builder setEntityType(java.lang.String value) { * </pre> * * <code>string entity_type = 2;</code> - * * @return This builder for chaining. */ public Builder clearEntityType() { @@ -864,8 +791,6 @@ public Builder clearEntityType() { return this; } /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -873,14 +798,12 @@ public Builder clearEntityType() { * </pre> * * <code>string entity_type = 2;</code> - * * @param value The bytes for entityType to set. * @return This builder for chaining. */ - public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityType_ = value; bitField0_ |= 0x00000002; @@ -890,7 +813,6 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList entityNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureEntityNamesIsMutable() { if (!entityNames_.isModifiable()) { entityNames_ = new com.google.protobuf.LazyStringArrayList(entityNames_); @@ -898,8 +820,6 @@ private void ensureEntityNamesIsMutable() { bitField0_ |= 0x00000004; } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -909,16 +829,14 @@ private void ensureEntityNamesIsMutable() { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @return A list containing the entityNames. */ - public com.google.protobuf.ProtocolStringList getEntityNamesList() { + public com.google.protobuf.ProtocolStringList + getEntityNamesList() { entityNames_.makeImmutable(); return entityNames_; } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -928,15 +846,12 @@ public com.google.protobuf.ProtocolStringList getEntityNamesList() { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @return The count of entityNames. */ public int getEntityNamesCount() { return entityNames_.size(); } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -946,7 +861,6 @@ public int getEntityNamesCount() { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param index The index of the element to return. * @return The entityNames at the given index. */ @@ -954,8 +868,6 @@ public java.lang.String getEntityNames(int index) { return entityNames_.get(index); } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -965,16 +877,14 @@ public java.lang.String getEntityNames(int index) { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param index The index of the value to return. * @return The bytes of the entityNames at the given index. */ - public com.google.protobuf.ByteString getEntityNamesBytes(int index) { + public com.google.protobuf.ByteString + getEntityNamesBytes(int index) { return entityNames_.getByteString(index); } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -984,15 +894,13 @@ public com.google.protobuf.ByteString getEntityNamesBytes(int index) { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param index The index to set the value at. * @param value The entityNames to set. * @return This builder for chaining. */ - public Builder setEntityNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEntityNamesIsMutable(); entityNames_.set(index, value); bitField0_ |= 0x00000004; @@ -1000,8 +908,6 @@ public Builder setEntityNames(int index, java.lang.String value) { return this; } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -1011,14 +917,12 @@ public Builder setEntityNames(int index, java.lang.String value) { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param value The entityNames to add. * @return This builder for chaining. */ - public Builder addEntityNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEntityNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEntityNamesIsMutable(); entityNames_.add(value); bitField0_ |= 0x00000004; @@ -1026,8 +930,6 @@ public Builder addEntityNames(java.lang.String value) { return this; } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -1037,20 +939,19 @@ public Builder addEntityNames(java.lang.String value) { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param values The entityNames to add. * @return This builder for chaining. */ - public Builder addAllEntityNames(java.lang.Iterable<java.lang.String> values) { + public Builder addAllEntityNames( + java.lang.Iterable<java.lang.String> values) { ensureEntityNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityNames_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -1060,19 +961,16 @@ public Builder addAllEntityNames(java.lang.Iterable<java.lang.String> values) { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @return This builder for chaining. */ public Builder clearEntityNames() { - entityNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + entityNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -1082,14 +980,12 @@ public Builder clearEntityNames() { * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param value The bytes of the entityNames to add. * @return This builder for chaining. */ - public Builder addEntityNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEntityNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEntityNamesIsMutable(); entityNames_.add(value); @@ -1097,9 +993,9 @@ public Builder addEntityNamesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1109,12 +1005,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.DdlStatementActionInfo) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.DdlStatementActionInfo) private static final com.google.spanner.admin.database.v1.DdlStatementActionInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.DdlStatementActionInfo(); } @@ -1123,27 +1019,27 @@ public static com.google.spanner.admin.database.v1.DdlStatementActionInfo getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DdlStatementActionInfo> PARSER = - new com.google.protobuf.AbstractParser<DdlStatementActionInfo>() { - @java.lang.Override - public DdlStatementActionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DdlStatementActionInfo> + PARSER = new com.google.protobuf.AbstractParser<DdlStatementActionInfo>() { + @java.lang.Override + public DdlStatementActionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DdlStatementActionInfo> parser() { return PARSER; @@ -1158,4 +1054,6 @@ public com.google.protobuf.Parser<DdlStatementActionInfo> getParserForType() { public com.google.spanner.admin.database.v1.DdlStatementActionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java similarity index 76% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java index 5e9ad55d53b..12e4c105f5d 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java @@ -1,58 +1,35 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface DdlStatementActionInfoOrBuilder - extends +public interface DdlStatementActionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.DdlStatementActionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @return The action. */ java.lang.String getAction(); /** - * - * * <pre> * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. * This field is a non-empty string. * </pre> * * <code>string action = 1;</code> - * * @return The bytes for action. */ - com.google.protobuf.ByteString getActionBytes(); + com.google.protobuf.ByteString + getActionBytes(); /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -60,13 +37,10 @@ public interface DdlStatementActionInfoOrBuilder * </pre> * * <code>string entity_type = 2;</code> - * * @return The entityType. */ java.lang.String getEntityType(); /** - * - * * <pre> * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. * This field can be empty string for some DDL statement, @@ -74,14 +48,12 @@ public interface DdlStatementActionInfoOrBuilder * </pre> * * <code>string entity_type = 2;</code> - * * @return The bytes for entityType. */ - com.google.protobuf.ByteString getEntityTypeBytes(); + com.google.protobuf.ByteString + getEntityTypeBytes(); /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -91,13 +63,11 @@ public interface DdlStatementActionInfoOrBuilder * </pre> * * <code>repeated string entity_names = 3;</code> - * * @return A list containing the entityNames. */ - java.util.List<java.lang.String> getEntityNamesList(); + java.util.List<java.lang.String> + getEntityNamesList(); /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -107,13 +77,10 @@ public interface DdlStatementActionInfoOrBuilder * </pre> * * <code>repeated string entity_names = 3;</code> - * * @return The count of entityNames. */ int getEntityNamesCount(); /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -123,14 +90,11 @@ public interface DdlStatementActionInfoOrBuilder * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param index The index of the element to return. * @return The entityNames at the given index. */ java.lang.String getEntityNames(int index); /** - * - * * <pre> * The entity name(s) being operated on the DDL statement. * E.g. @@ -140,9 +104,9 @@ public interface DdlStatementActionInfoOrBuilder * </pre> * * <code>repeated string entity_names = 3;</code> - * * @param index The index of the value to return. * @return The bytes of the entityNames at the given index. */ - com.google.protobuf.ByteString getEntityNamesBytes(int index); + com.google.protobuf.ByteString + getEntityNamesBytes(int index); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java similarity index 63% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java index ba8a0bad913..f9227129016 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java @@ -1,84 +1,59 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.DeleteBackupRequest} */ -public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.DeleteBackupRequest) DeleteBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBackupRequest.newBuilder() to construct. private DeleteBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private DeleteBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBackupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.DeleteBackupRequest.class, - com.google.spanner.admin.database.v1.DeleteBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.DeleteBackupRequest.class, com.google.spanner.admin.database.v1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. Name of the backup to delete. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. Name of the backup to delete. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.DeleteBackupRequest other = - (com.google.spanner.admin.database.v1.DeleteBackupRequest) obj; + com.google.spanner.admin.database.v1.DeleteBackupRequest other = (com.google.spanner.admin.database.v1.DeleteBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DeleteBackupRequest 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.admin.database.v1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.DeleteBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.DeleteBackupRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.DeleteBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.DeleteBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.DeleteBackupRequest) com.google.spanner.admin.database.v1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.DeleteBackupRequest.class, - com.google.spanner.admin.database.v1.DeleteBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.DeleteBackupRequest.class, com.google.spanner.admin.database.v1.DeleteBackupRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.DeleteBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -346,11 +314,8 @@ public com.google.spanner.admin.database.v1.DeleteBackupRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.DeleteBackupRequest buildPartial() { - com.google.spanner.admin.database.v1.DeleteBackupRequest result = - new com.google.spanner.admin.database.v1.DeleteBackupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.DeleteBackupRequest result = new com.google.spanner.admin.database.v1.DeleteBackupRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +331,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.DeleteBackupRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.DeleteBackupRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.DeleteBackupRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.DeleteBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.DeleteBackupRequest other) { - if (other == com.google.spanner.admin.database.v1.DeleteBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.DeleteBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. Name of the backup to delete. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -492,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. Name of the backup to delete. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -518,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. Name of the backup to delete. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. Name of the backup to delete. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearName() { @@ -564,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. Name of the backup to delete. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.DeleteBackupRequest) private static final com.google.spanner.admin.database.v1.DeleteBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.DeleteBackupRequest(); } @@ -615,27 +551,27 @@ public static com.google.spanner.admin.database.v1.DeleteBackupRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DeleteBackupRequest> PARSER = - new com.google.protobuf.AbstractParser<DeleteBackupRequest>() { - @java.lang.Override - public DeleteBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DeleteBackupRequest> + PARSER = new com.google.protobuf.AbstractParser<DeleteBackupRequest>() { + @java.lang.Override + public DeleteBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DeleteBackupRequest> parser() { return PARSER; @@ -650,4 +586,6 @@ public com.google.protobuf.Parser<DeleteBackupRequest> getParserForType() { public com.google.spanner.admin.database.v1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 00000000000..1711c4afd92 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/backup.proto + +package com.google.spanner.admin.database.v1; + +public interface DeleteBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. Name of the backup to delete. + * Values are of the form + * `projects/<project>/instances/<instance>/backups/<backup>`. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The name. + */ + java.lang.String getName(); + /** + * <pre> + * Required. Name of the backup to delete. + * Values are of the form + * `projects/<project>/instances/<instance>/backups/<backup>`. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java similarity index 63% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java index f5708ef9c41..89447669d22 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java @@ -1,82 +1,57 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.DropDatabaseRequest} */ -public final class DropDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DropDatabaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.DropDatabaseRequest) DropDatabaseRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DropDatabaseRequest.newBuilder() to construct. private DropDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private DropDatabaseRequest() { database_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DropDatabaseRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.DropDatabaseRequest.class, - com.google.spanner.admin.database.v1.DropDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.DropDatabaseRequest.class, com.google.spanner.admin.database.v1.DropDatabaseRequest.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * * <pre> * Required. The database to be dropped. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The database. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * * <pre> * Required. The database to be dropped. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -154,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.DropDatabaseRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.DropDatabaseRequest other = - (com.google.spanner.admin.database.v1.DropDatabaseRequest) obj; + com.google.spanner.admin.database.v1.DropDatabaseRequest other = (com.google.spanner.admin.database.v1.DropDatabaseRequest) obj; - if (!getDatabase().equals(other.getDatabase())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DropDatabaseRequest 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.admin.database.v1.DropDatabaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.DropDatabaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.DropDatabaseRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.DropDatabaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.DropDatabaseRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.DropDatabaseRequest) com.google.spanner.admin.database.v1.DropDatabaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.DropDatabaseRequest.class, - com.google.spanner.admin.database.v1.DropDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.DropDatabaseRequest.class, com.google.spanner.admin.database.v1.DropDatabaseRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.DropDatabaseRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor; } @java.lang.Override @@ -342,11 +310,8 @@ public com.google.spanner.admin.database.v1.DropDatabaseRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.DropDatabaseRequest buildPartial() { - com.google.spanner.admin.database.v1.DropDatabaseRequest result = - new com.google.spanner.admin.database.v1.DropDatabaseRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.DropDatabaseRequest result = new com.google.spanner.admin.database.v1.DropDatabaseRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +327,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.DropDatabaseRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.DropDatabaseRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.DropDatabaseRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.DropDatabaseRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.DropDatabaseRequest other) { - if (other == com.google.spanner.admin.database.v1.DropDatabaseRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.DropDatabaseRequest.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; bitField0_ |= 0x00000001; @@ -435,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object database_ = ""; /** - * - * * <pre> * Required. The database to be dropped. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -486,23 +442,20 @@ public java.lang.String getDatabase() { } } /** - * - * * <pre> * Required. The database to be dropped. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -510,39 +463,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * * <pre> * Required. The database to be dropped. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The database to be dropped. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearDatabase() { @@ -552,32 +494,26 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * Required. The database to be dropped. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.DropDatabaseRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.DropDatabaseRequest) private static final com.google.spanner.admin.database.v1.DropDatabaseRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.DropDatabaseRequest(); } @@ -601,27 +537,27 @@ public static com.google.spanner.admin.database.v1.DropDatabaseRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DropDatabaseRequest> PARSER = - new com.google.protobuf.AbstractParser<DropDatabaseRequest>() { - @java.lang.Override - public DropDatabaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DropDatabaseRequest> + PARSER = new com.google.protobuf.AbstractParser<DropDatabaseRequest>() { + @java.lang.Override + public DropDatabaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DropDatabaseRequest> parser() { return PARSER; @@ -636,4 +572,6 @@ public com.google.protobuf.Parser<DropDatabaseRequest> getParserForType() { public com.google.spanner.admin.database.v1.DropDatabaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequestOrBuilder.java new file mode 100644 index 00000000000..b2863aba0e0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/spanner_database_admin.proto + +package com.google.spanner.admin.database.v1; + +public interface DropDatabaseRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.DropDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. The database to be dropped. + * </pre> + * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The database. + */ + java.lang.String getDatabase(); + /** + * <pre> + * Required. The database to be dropped. + * </pre> + * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for database. + */ + com.google.protobuf.ByteString + getDatabaseBytes(); +} diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java similarity index 67% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java index 7413956be14..7fddedc9b56 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java @@ -1,74 +1,52 @@ -/* - * 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/admin/database/v1/common.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Encryption configuration for a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.EncryptionConfig} */ -public final class EncryptionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EncryptionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.EncryptionConfig) EncryptionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EncryptionConfig.newBuilder() to construct. private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private EncryptionConfig() { kmsKeyName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EncryptionConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionConfig_fieldAccessorTable + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.EncryptionConfig.class, - com.google.spanner.admin.database.v1.EncryptionConfig.Builder.class); + com.google.spanner.admin.database.v1.EncryptionConfig.class, com.google.spanner.admin.database.v1.EncryptionConfig.Builder.class); } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The kmsKeyName. */ @java.lang.Override @@ -85,15 +62,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -101,15 +77,16 @@ public java.lang.String getKmsKeyName() { * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -118,7 +95,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_); } @@ -154,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.EncryptionConfig)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.EncryptionConfig other = - (com.google.spanner.admin.database.v1.EncryptionConfig) obj; + com.google.spanner.admin.database.v1.EncryptionConfig other = (com.google.spanner.admin.database.v1.EncryptionConfig) obj; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +159,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.EncryptionConfig 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.admin.database.v1.EncryptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.EncryptionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.EncryptionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.EncryptionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.EncryptionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.EncryptionConfig prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.EncryptionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Encryption configuration for a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.EncryptionConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.EncryptionConfig) com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionConfig_fieldAccessorTable + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.EncryptionConfig.class, - com.google.spanner.admin.database.v1.EncryptionConfig.Builder.class); + com.google.spanner.admin.database.v1.EncryptionConfig.class, com.google.spanner.admin.database.v1.EncryptionConfig.Builder.class); } // Construct using com.google.spanner.admin.database.v1.EncryptionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor; } @java.lang.Override @@ -342,11 +314,8 @@ public com.google.spanner.admin.database.v1.EncryptionConfig build() { @java.lang.Override public com.google.spanner.admin.database.v1.EncryptionConfig buildPartial() { - com.google.spanner.admin.database.v1.EncryptionConfig result = - new com.google.spanner.admin.database.v1.EncryptionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.EncryptionConfig result = new com.google.spanner.admin.database.v1.EncryptionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +331,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.EncryptionConfig public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.EncryptionConfig) { - return mergeFrom((com.google.spanner.admin.database.v1.EncryptionConfig) other); + return mergeFrom((com.google.spanner.admin.database.v1.EncryptionConfig)other); } else { super.mergeFrom(other); return this; @@ -402,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.EncryptionConfig other) { - if (other == com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()) return this; if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; bitField0_ |= 0x00000001; @@ -435,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,13 +422,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object kmsKeyName_ = ""; /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -471,13 +433,13 @@ public Builder mergeFrom( * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -486,8 +448,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -495,14 +455,15 @@ public java.lang.String getKmsKeyName() { * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -510,8 +471,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -519,22 +478,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -542,7 +497,6 @@ public Builder setKmsKeyName(java.lang.String value) { * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -552,8 +506,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -561,23 +513,21 @@ public Builder clearKmsKeyName() { * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.EncryptionConfig) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.EncryptionConfig) private static final com.google.spanner.admin.database.v1.EncryptionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.EncryptionConfig(); } @@ -601,27 +551,27 @@ public static com.google.spanner.admin.database.v1.EncryptionConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<EncryptionConfig> PARSER = - new com.google.protobuf.AbstractParser<EncryptionConfig>() { - @java.lang.Override - public EncryptionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<EncryptionConfig> + PARSER = new com.google.protobuf.AbstractParser<EncryptionConfig>() { + @java.lang.Override + public EncryptionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<EncryptionConfig> parser() { return PARSER; @@ -636,4 +586,6 @@ public com.google.protobuf.Parser<EncryptionConfig> getParserForType() { public com.google.spanner.admin.database.v1.EncryptionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java similarity index 60% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java index 34b1811b5c5..561389b55d0 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/common.proto package com.google.spanner.admin.database.v1; -public interface EncryptionConfigOrBuilder - extends +public interface EncryptionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.EncryptionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -33,13 +15,10 @@ public interface EncryptionConfigOrBuilder * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * * <pre> * The Cloud KMS key to be used for encrypting and decrypting * the database. Values are of the form @@ -47,8 +26,8 @@ public interface EncryptionConfigOrBuilder * </pre> * * <code>string kms_key_name = 2 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java similarity index 65% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java index 6f7ff1958d5..cff60b6789a 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/common.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Encryption information for a Cloud Spanner database or backup. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.EncryptionInfo} */ -public final class EncryptionInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EncryptionInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.EncryptionInfo) EncryptionInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EncryptionInfo.newBuilder() to construct. private EncryptionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private EncryptionInfo() { encryptionType_ = 0; kmsKeyVersion_ = ""; @@ -44,38 +26,34 @@ private EncryptionInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EncryptionInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionInfo_fieldAccessorTable + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.EncryptionInfo.class, - com.google.spanner.admin.database.v1.EncryptionInfo.Builder.class); + com.google.spanner.admin.database.v1.EncryptionInfo.class, com.google.spanner.admin.database.v1.EncryptionInfo.Builder.class); } /** - * - * * <pre> * Possible encryption types. * </pre> * * Protobuf enum {@code google.spanner.admin.database.v1.EncryptionInfo.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Encryption type was not specified, though data at rest remains encrypted. * </pre> @@ -84,8 +62,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * * <pre> * The data is encrypted at rest with a key that is * fully managed by Google. No key version or status will be populated. @@ -96,8 +72,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ GOOGLE_DEFAULT_ENCRYPTION(1), /** - * - * * <pre> * The data is encrypted at rest with a key that is * managed by the customer. The active version of the key. `kms_key_version` @@ -111,8 +85,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Encryption type was not specified, though data at rest remains encrypted. * </pre> @@ -121,8 +93,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * The data is encrypted at rest with a key that is * fully managed by Google. No key version or status will be populated. @@ -133,8 +103,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_DEFAULT_ENCRYPTION_VALUE = 1; /** - * - * * <pre> * The data is encrypted at rest with a key that is * managed by the customer. The active version of the key. `kms_key_version` @@ -145,6 +113,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOMER_MANAGED_ENCRYPTION_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -169,51 +138,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return GOOGLE_DEFAULT_ENCRYPTION; - case 2: - return CUSTOMER_MANAGED_ENCRYPTION; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return GOOGLE_DEFAULT_ENCRYPTION; + case 2: return CUSTOMER_MANAGED_ENCRYPTION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<Type> + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Type>() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<Type>() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.database.v1.EncryptionInfo.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.EncryptionInfo.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -233,58 +200,39 @@ private Type(int value) { public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 3; private int encryptionType_ = 0; /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for encryptionType. */ - @java.lang.Override - public int getEncryptionTypeValue() { + @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionType. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.EncryptionInfo.Type getEncryptionType() { - com.google.spanner.admin.database.v1.EncryptionInfo.Type result = - com.google.spanner.admin.database.v1.EncryptionInfo.Type.forNumber(encryptionType_); - return result == null - ? com.google.spanner.admin.database.v1.EncryptionInfo.Type.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.EncryptionInfo.Type getEncryptionType() { + com.google.spanner.admin.database.v1.EncryptionInfo.Type result = com.google.spanner.admin.database.v1.EncryptionInfo.Type.forNumber(encryptionType_); + return result == null ? com.google.spanner.admin.database.v1.EncryptionInfo.Type.UNRECOGNIZED : result; } public static final int ENCRYPTION_STATUS_FIELD_NUMBER = 4; private com.google.rpc.Status encryptionStatus_; /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionStatus field is set. */ @java.lang.Override @@ -292,60 +240,43 @@ public boolean hasEncryptionStatus() { return encryptionStatus_ != null; } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionStatus. */ @java.lang.Override public com.google.rpc.Status getEncryptionStatus() { - return encryptionStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : encryptionStatus_; + return encryptionStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : encryptionStatus_; } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() { - return encryptionStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : encryptionStatus_; + return encryptionStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : encryptionStatus_; } public static final int KMS_KEY_VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersion_ = ""; /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyVersion. */ @java.lang.Override @@ -354,32 +285,30 @@ public java.lang.String getKmsKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersion_ = s; return s; } } /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionBytes() { java.lang.Object ref = kmsKeyVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyVersion_ = b; return b; } else { @@ -388,7 +317,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,12 +328,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyVersion_); } - if (encryptionType_ - != com.google.spanner.admin.database.v1.EncryptionInfo.Type.TYPE_UNSPECIFIED.getNumber()) { + if (encryptionType_ != com.google.spanner.admin.database.v1.EncryptionInfo.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, encryptionType_); } if (encryptionStatus_ != null) { @@ -423,12 +351,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyVersion_); } - if (encryptionType_ - != com.google.spanner.admin.database.v1.EncryptionInfo.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, encryptionType_); + if (encryptionType_ != com.google.spanner.admin.database.v1.EncryptionInfo.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, encryptionType_); } if (encryptionStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEncryptionStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEncryptionStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -438,20 +367,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.EncryptionInfo)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.EncryptionInfo other = - (com.google.spanner.admin.database.v1.EncryptionInfo) obj; + com.google.spanner.admin.database.v1.EncryptionInfo other = (com.google.spanner.admin.database.v1.EncryptionInfo) obj; if (encryptionType_ != other.encryptionType_) return false; if (hasEncryptionStatus() != other.hasEncryptionStatus()) return false; if (hasEncryptionStatus()) { - if (!getEncryptionStatus().equals(other.getEncryptionStatus())) return false; + if (!getEncryptionStatus() + .equals(other.getEncryptionStatus())) return false; } - if (!getKmsKeyVersion().equals(other.getKmsKeyVersion())) return false; + if (!getKmsKeyVersion() + .equals(other.getKmsKeyVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -477,135 +407,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.EncryptionInfo 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.admin.database.v1.EncryptionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.EncryptionInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.EncryptionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.EncryptionInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.EncryptionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.database.v1.EncryptionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Encryption information for a Cloud Spanner database or backup. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.EncryptionInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.EncryptionInfo) com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionInfo_fieldAccessorTable + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.EncryptionInfo.class, - com.google.spanner.admin.database.v1.EncryptionInfo.Builder.class); + com.google.spanner.admin.database.v1.EncryptionInfo.class, com.google.spanner.admin.database.v1.EncryptionInfo.Builder.class); } // Construct using com.google.spanner.admin.database.v1.EncryptionInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -621,9 +547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor; } @java.lang.Override @@ -642,11 +568,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfo build() { @java.lang.Override public com.google.spanner.admin.database.v1.EncryptionInfo buildPartial() { - com.google.spanner.admin.database.v1.EncryptionInfo result = - new com.google.spanner.admin.database.v1.EncryptionInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.EncryptionInfo result = new com.google.spanner.admin.database.v1.EncryptionInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -657,8 +580,9 @@ private void buildPartial0(com.google.spanner.admin.database.v1.EncryptionInfo r result.encryptionType_ = encryptionType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.encryptionStatus_ = - encryptionStatusBuilder_ == null ? encryptionStatus_ : encryptionStatusBuilder_.build(); + result.encryptionStatus_ = encryptionStatusBuilder_ == null + ? encryptionStatus_ + : encryptionStatusBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.kmsKeyVersion_ = kmsKeyVersion_; @@ -669,39 +593,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.EncryptionInfo r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.EncryptionInfo) { - return mergeFrom((com.google.spanner.admin.database.v1.EncryptionInfo) other); + return mergeFrom((com.google.spanner.admin.database.v1.EncryptionInfo)other); } else { super.mergeFrom(other); return this; @@ -709,8 +632,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.EncryptionInfo other) { - if (other == com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance()) return this; if (other.encryptionType_ != 0) { setEncryptionTypeValue(other.getEncryptionTypeValue()); } @@ -748,32 +670,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - kmsKeyVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: - { - encryptionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 24 - case 34: - { - input.readMessage( - getEncryptionStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + kmsKeyVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: { + encryptionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 34: { + input.readMessage( + getEncryptionStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -783,38 +702,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int encryptionType_ = 0; /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for encryptionType. */ - @java.lang.Override - public int getEncryptionTypeValue() { + @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The enum numeric value on the wire for encryptionType to set. * @return This builder for chaining. */ @@ -825,42 +732,28 @@ public Builder setEncryptionTypeValue(int value) { return this; } /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionType. */ @java.lang.Override public com.google.spanner.admin.database.v1.EncryptionInfo.Type getEncryptionType() { - com.google.spanner.admin.database.v1.EncryptionInfo.Type result = - com.google.spanner.admin.database.v1.EncryptionInfo.Type.forNumber(encryptionType_); - return result == null - ? com.google.spanner.admin.database.v1.EncryptionInfo.Type.UNRECOGNIZED - : result; + com.google.spanner.admin.database.v1.EncryptionInfo.Type result = com.google.spanner.admin.database.v1.EncryptionInfo.Type.forNumber(encryptionType_); + return result == null ? com.google.spanner.admin.database.v1.EncryptionInfo.Type.UNRECOGNIZED : result; } /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The encryptionType to set. * @return This builder for chaining. */ - public Builder setEncryptionType( - com.google.spanner.admin.database.v1.EncryptionInfo.Type value) { + public Builder setEncryptionType(com.google.spanner.admin.database.v1.EncryptionInfo.Type value) { if (value == null) { throw new NullPointerException(); } @@ -870,16 +763,11 @@ public Builder setEncryptionType( return this; } /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearEncryptionType() { @@ -891,59 +779,45 @@ public Builder clearEncryptionType() { private com.google.rpc.Status encryptionStatus_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - encryptionStatusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> encryptionStatusBuilder_; /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionStatus field is set. */ public boolean hasEncryptionStatus() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionStatus. */ public com.google.rpc.Status getEncryptionStatus() { if (encryptionStatusBuilder_ == null) { - return encryptionStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : encryptionStatus_; + return encryptionStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : encryptionStatus_; } else { return encryptionStatusBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setEncryptionStatus(com.google.rpc.Status value) { if (encryptionStatusBuilder_ == null) { @@ -959,18 +833,16 @@ public Builder setEncryptionStatus(com.google.rpc.Status value) { return this; } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setEncryptionStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setEncryptionStatus( + com.google.rpc.Status.Builder builderForValue) { if (encryptionStatusBuilder_ == null) { encryptionStatus_ = builderForValue.build(); } else { @@ -981,22 +853,19 @@ public Builder setEncryptionStatus(com.google.rpc.Status.Builder builderForValue return this; } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeEncryptionStatus(com.google.rpc.Status value) { if (encryptionStatusBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && encryptionStatus_ != null - && encryptionStatus_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + encryptionStatus_ != null && + encryptionStatus_ != com.google.rpc.Status.getDefaultInstance()) { getEncryptionStatusBuilder().mergeFrom(value); } else { encryptionStatus_ = value; @@ -1009,16 +878,13 @@ public Builder mergeEncryptionStatus(com.google.rpc.Status value) { return this; } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearEncryptionStatus() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1031,16 +897,13 @@ public Builder clearEncryptionStatus() { return this; } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.rpc.Status.Builder getEncryptionStatusBuilder() { bitField0_ |= 0x00000002; @@ -1048,48 +911,40 @@ public com.google.rpc.Status.Builder getEncryptionStatusBuilder() { return getEncryptionStatusFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() { if (encryptionStatusBuilder_ != null) { return encryptionStatusBuilder_.getMessageOrBuilder(); } else { - return encryptionStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : encryptionStatus_; + return encryptionStatus_ == null ? + com.google.rpc.Status.getDefaultInstance() : encryptionStatus_; } } /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getEncryptionStatusFieldBuilder() { if (encryptionStatusBuilder_ == null) { - encryptionStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getEncryptionStatus(), getParentForChildren(), isClean()); + encryptionStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getEncryptionStatus(), + getParentForChildren(), + isClean()); encryptionStatus_ = null; } return encryptionStatusBuilder_; @@ -1097,23 +952,19 @@ public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() { private java.lang.Object kmsKeyVersion_ = ""; /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyVersion. */ public java.lang.String getKmsKeyVersion() { java.lang.Object ref = kmsKeyVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersion_ = s; return s; @@ -1122,24 +973,21 @@ public java.lang.String getKmsKeyVersion() { } } /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyVersion. */ - public com.google.protobuf.ByteString getKmsKeyVersionBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionBytes() { java.lang.Object ref = kmsKeyVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyVersion_ = b; return b; } else { @@ -1147,41 +995,30 @@ public com.google.protobuf.ByteString getKmsKeyVersionBytes() { } } /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param value The kmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersion_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearKmsKeyVersion() { @@ -1191,33 +1028,27 @@ public Builder clearKmsKeyVersion() { return this; } /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for kmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersion_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1227,12 +1058,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.EncryptionInfo) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.EncryptionInfo) private static final com.google.spanner.admin.database.v1.EncryptionInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.EncryptionInfo(); } @@ -1241,27 +1072,27 @@ public static com.google.spanner.admin.database.v1.EncryptionInfo getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<EncryptionInfo> PARSER = - new com.google.protobuf.AbstractParser<EncryptionInfo>() { - @java.lang.Override - public EncryptionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<EncryptionInfo> + PARSER = new com.google.protobuf.AbstractParser<EncryptionInfo>() { + @java.lang.Override + public EncryptionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<EncryptionInfo> parser() { return PARSER; @@ -1276,4 +1107,6 @@ public com.google.protobuf.Parser<EncryptionInfo> getParserForType() { public com.google.spanner.admin.database.v1.EncryptionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java similarity index 58% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java index f08cca64b75..dc087afb67a 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java @@ -1,129 +1,83 @@ -/* - * 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/admin/database/v1/common.proto package com.google.spanner.admin.database.v1; -public interface EncryptionInfoOrBuilder - extends +public interface EncryptionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.EncryptionInfo) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for encryptionType. */ int getEncryptionTypeValue(); /** - * - * * <pre> * Output only. The type of encryption. * </pre> * - * <code> - * .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionType. */ com.google.spanner.admin.database.v1.EncryptionInfo.Type getEncryptionType(); /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the encryptionStatus field is set. */ boolean hasEncryptionStatus(); /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The encryptionStatus. */ com.google.rpc.Status getEncryptionStatus(); /** - * - * * <pre> * Output only. If present, the status of a recent encrypt/decrypt call on underlying data * for this database or backup. Regardless of status, data is always encrypted * at rest. * </pre> * - * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder(); /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyVersion. */ java.lang.String getKmsKeyVersion(); /** - * - * * <pre> * Output only. A Cloud KMS key version that is being used to protect the database or * backup. * </pre> * - * <code> - * string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyVersion. */ - com.google.protobuf.ByteString getKmsKeyVersionBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java similarity index 62% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java index 2f42294375e..29557b77858 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java @@ -1,84 +1,59 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.GetBackupRequest} */ -public final class GetBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.GetBackupRequest) GetBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBackupRequest.newBuilder() to construct. private GetBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBackupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_GetBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.GetBackupRequest.class, - com.google.spanner.admin.database.v1.GetBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.GetBackupRequest.class, com.google.spanner.admin.database.v1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. Name of the backup. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. Name of the backup. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.GetBackupRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.GetBackupRequest other = - (com.google.spanner.admin.database.v1.GetBackupRequest) obj; + com.google.spanner.admin.database.v1.GetBackupRequest other = (com.google.spanner.admin.database.v1.GetBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetBackupRequest 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.admin.database.v1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.GetBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.GetBackupRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.GetBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.GetBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.GetBackupRequest) com.google.spanner.admin.database.v1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_GetBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.GetBackupRequest.class, - com.google.spanner.admin.database.v1.GetBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.GetBackupRequest.class, com.google.spanner.admin.database.v1.GetBackupRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.GetBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor; } @java.lang.Override @@ -346,11 +314,8 @@ public com.google.spanner.admin.database.v1.GetBackupRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.GetBackupRequest buildPartial() { - com.google.spanner.admin.database.v1.GetBackupRequest result = - new com.google.spanner.admin.database.v1.GetBackupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.GetBackupRequest result = new com.google.spanner.admin.database.v1.GetBackupRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +331,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.GetBackupRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.GetBackupRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.GetBackupRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.GetBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.GetBackupRequest other) { - if (other == com.google.spanner.admin.database.v1.GetBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.GetBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. Name of the backup. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -492,25 +448,22 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. Name of the backup. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -518,43 +471,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. Name of the backup. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. Name of the backup. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearName() { @@ -564,34 +506,28 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. Name of the backup. * Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetBackupRequest) private static final com.google.spanner.admin.database.v1.GetBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.GetBackupRequest(); } @@ -615,27 +551,27 @@ public static com.google.spanner.admin.database.v1.GetBackupRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetBackupRequest> PARSER = - new com.google.protobuf.AbstractParser<GetBackupRequest>() { - @java.lang.Override - public GetBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetBackupRequest> + PARSER = new com.google.protobuf.AbstractParser<GetBackupRequest>() { + @java.lang.Override + public GetBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetBackupRequest> parser() { return PARSER; @@ -650,4 +586,6 @@ public com.google.protobuf.Parser<GetBackupRequest> getParserForType() { public com.google.spanner.admin.database.v1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 00000000000..c5ef3219dc4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/backup.proto + +package com.google.spanner.admin.database.v1; + +public interface GetBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. Name of the backup. + * Values are of the form + * `projects/<project>/instances/<instance>/backups/<backup>`. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The name. + */ + java.lang.String getName(); + /** + * <pre> + * Required. Name of the backup. + * Values are of the form + * `projects/<project>/instances/<instance>/backups/<backup>`. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java similarity index 64% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java index 3447e8ac1c2..30d006ce192 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java @@ -1,84 +1,59 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseDdlRequest} */ -public final class GetDatabaseDdlRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDatabaseDdlRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.GetDatabaseDdlRequest) GetDatabaseDdlRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDatabaseDdlRequest.newBuilder() to construct. private GetDatabaseDdlRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetDatabaseDdlRequest() { database_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDatabaseDdlRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.class, - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.Builder.class); + com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.class, com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * * <pre> * Required. The database whose schema we wish to get. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>` * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The database. */ @java.lang.Override @@ -87,33 +62,31 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * * <pre> * Required. The database whose schema we wish to get. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>` * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.GetDatabaseDdlRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest other = - (com.google.spanner.admin.database.v1.GetDatabaseDdlRequest) obj; + com.google.spanner.admin.database.v1.GetDatabaseDdlRequest other = (com.google.spanner.admin.database.v1.GetDatabaseDdlRequest) obj; - if (!getDatabase().equals(other.getDatabase())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest 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.admin.database.v1.GetDatabaseDdlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.GetDatabaseDdlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseDdlRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.GetDatabaseDdlRequest) com.google.spanner.admin.database.v1.GetDatabaseDdlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.class, - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.Builder.class); + com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.class, com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor; } @java.lang.Override @@ -346,11 +314,8 @@ public com.google.spanner.admin.database.v1.GetDatabaseDdlRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.GetDatabaseDdlRequest buildPartial() { - com.google.spanner.admin.database.v1.GetDatabaseDdlRequest result = - new com.google.spanner.admin.database.v1.GetDatabaseDdlRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.GetDatabaseDdlRequest result = new com.google.spanner.admin.database.v1.GetDatabaseDdlRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +331,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.GetDatabaseDdlRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.GetDatabaseDdlRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.GetDatabaseDdlRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.GetDatabaseDdlRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.GetDatabaseDdlRequest other) { - if (other == com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; bitField0_ |= 0x00000001; @@ -439,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object database_ = ""; /** - * - * * <pre> * Required. The database whose schema we wish to get. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>` * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -492,25 +448,22 @@ public java.lang.String getDatabase() { } } /** - * - * * <pre> * Required. The database whose schema we wish to get. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>` * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -518,43 +471,32 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * * <pre> * Required. The database whose schema we wish to get. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>` * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The database whose schema we wish to get. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>` * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearDatabase() { @@ -564,34 +506,28 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * Required. The database whose schema we wish to get. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>` * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.GetDatabaseDdlRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseDdlRequest) private static final com.google.spanner.admin.database.v1.GetDatabaseDdlRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.GetDatabaseDdlRequest(); } @@ -615,27 +551,27 @@ public static com.google.spanner.admin.database.v1.GetDatabaseDdlRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetDatabaseDdlRequest> PARSER = - new com.google.protobuf.AbstractParser<GetDatabaseDdlRequest>() { - @java.lang.Override - public GetDatabaseDdlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetDatabaseDdlRequest> + PARSER = new com.google.protobuf.AbstractParser<GetDatabaseDdlRequest>() { + @java.lang.Override + public GetDatabaseDdlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetDatabaseDdlRequest> parser() { return PARSER; @@ -650,4 +586,6 @@ public com.google.protobuf.Parser<GetDatabaseDdlRequest> getParserForType() { public com.google.spanner.admin.database.v1.GetDatabaseDdlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequestOrBuilder.java new file mode 100644 index 00000000000..32a5423e676 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/spanner_database_admin.proto + +package com.google.spanner.admin.database.v1; + +public interface GetDatabaseDdlRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.GetDatabaseDdlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. The database whose schema we wish to get. + * Values are of the form + * `projects/<project>/instances/<instance>/databases/<database>` + * </pre> + * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The database. + */ + java.lang.String getDatabase(); + /** + * <pre> + * Required. The database whose schema we wish to get. + * Values are of the form + * `projects/<project>/instances/<instance>/databases/<database>` + * </pre> + * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for database. + */ + com.google.protobuf.ByteString + getDatabaseBytes(); +} diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java similarity index 61% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java index b35f72c212c..e1566673bb0 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java @@ -1,112 +1,86 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The response for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseDdlResponse} */ -public final class GetDatabaseDdlResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDatabaseDdlResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.GetDatabaseDdlResponse) GetDatabaseDdlResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDatabaseDdlResponse.newBuilder() to construct. private GetDatabaseDdlResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetDatabaseDdlResponse() { - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDatabaseDdlResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.class, - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.Builder.class); + com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.class, com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.Builder.class); } public static final int STATEMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @return A list containing the statements. */ - public com.google.protobuf.ProtocolStringList getStatementsList() { + public com.google.protobuf.ProtocolStringList + getStatementsList() { return statements_; } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @return The count of statements. */ public int getStatementsCount() { return statements_.size(); } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ @@ -114,24 +88,40 @@ public java.lang.String getStatements(int index) { return statements_.get(index); } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - public com.google.protobuf.ByteString getStatementsBytes(int index) { + public com.google.protobuf.ByteString + getStatementsBytes(int index) { return statements_.getByteString(index); } - private byte memoizedIsInitialized = -1; + public static final int PROTO_DESCRIPTORS_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + * Proto descriptors stored in the database. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 2;</code> + * @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; @@ -143,10 +133,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < statements_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, statements_.getRaw(i)); } + if (!protoDescriptors_.isEmpty()) { + output.writeBytes(2, protoDescriptors_); + } getUnknownFields().writeTo(output); } @@ -164,6 +158,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getStatementsList().size(); } + if (!protoDescriptors_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, protoDescriptors_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -172,15 +170,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.GetDatabaseDdlResponse)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse other = - (com.google.spanner.admin.database.v1.GetDatabaseDdlResponse) obj; + com.google.spanner.admin.database.v1.GetDatabaseDdlResponse other = (com.google.spanner.admin.database.v1.GetDatabaseDdlResponse) obj; - if (!getStatementsList().equals(other.getStatementsList())) return false; + if (!getStatementsList() + .equals(other.getStatementsList())) return false; + if (!getProtoDescriptors() + .equals(other.getProtoDescriptors())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -196,154 +196,153 @@ public int hashCode() { hash = (37 * hash) + STATEMENTS_FIELD_NUMBER; hash = (53 * hash) + getStatementsList().hashCode(); } + 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.admin.database.v1.GetDatabaseDdlResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse 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.admin.database.v1.GetDatabaseDdlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.GetDatabaseDdlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseDdlResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.GetDatabaseDdlResponse) com.google.spanner.admin.database.v1.GetDatabaseDdlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.class, - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.Builder.class); + com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.class, com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.Builder.class); } // Construct using com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor; } @java.lang.Override @@ -362,11 +361,8 @@ public com.google.spanner.admin.database.v1.GetDatabaseDdlResponse build() { @java.lang.Override public com.google.spanner.admin.database.v1.GetDatabaseDdlResponse buildPartial() { - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse result = - new com.google.spanner.admin.database.v1.GetDatabaseDdlResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.GetDatabaseDdlResponse result = new com.google.spanner.admin.database.v1.GetDatabaseDdlResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -377,45 +373,47 @@ private void buildPartial0(com.google.spanner.admin.database.v1.GetDatabaseDdlRe statements_.makeImmutable(); result.statements_ = statements_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.protoDescriptors_ = protoDescriptors_; + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.GetDatabaseDdlResponse) { - return mergeFrom((com.google.spanner.admin.database.v1.GetDatabaseDdlResponse) other); + return mergeFrom((com.google.spanner.admin.database.v1.GetDatabaseDdlResponse)other); } else { super.mergeFrom(other); return this; @@ -423,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.GetDatabaseDdlResponse other) { - if (other == com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.getDefaultInstance()) return this; if (!other.statements_.isEmpty()) { if (statements_.isEmpty()) { statements_ = other.statements_; @@ -435,6 +432,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.GetDatabaseDdlResp } onChanged(); } + if (other.getProtoDescriptors() != com.google.protobuf.ByteString.EMPTY) { + setProtoDescriptors(other.getProtoDescriptors()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -461,20 +461,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStatementsIsMutable(); - statements_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStatementsIsMutable(); + statements_.add(s); + break; + } // case 10 + case 18: { + protoDescriptors_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,12 +487,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStatementsIsMutable() { if (!statements_.isModifiable()) { statements_ = new com.google.protobuf.LazyStringArrayList(statements_); @@ -497,46 +498,38 @@ private void ensureStatementsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @return A list containing the statements. */ - public com.google.protobuf.ProtocolStringList getStatementsList() { + public com.google.protobuf.ProtocolStringList + getStatementsList() { statements_.makeImmutable(); return statements_; } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @return The count of statements. */ public int getStatementsCount() { return statements_.size(); } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ @@ -544,39 +537,33 @@ public java.lang.String getStatements(int index) { return statements_.get(index); } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - public com.google.protobuf.ByteString getStatementsBytes(int index) { + public com.google.protobuf.ByteString + getStatementsBytes(int index) { return statements_.getByteString(index); } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param index The index to set the value at. * @param value The statements to set. * @return This builder for chaining. */ - public Builder setStatements(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatements( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.set(index, value); bitField0_ |= 0x00000001; @@ -584,22 +571,18 @@ public Builder setStatements(int index, java.lang.String value) { return this; } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param value The statements to add. * @return This builder for chaining. */ - public Builder addStatements(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStatements( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.add(value); bitField0_ |= 0x00000001; @@ -607,61 +590,53 @@ public Builder addStatements(java.lang.String value) { return this; } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param values The statements to add. * @return This builder for chaining. */ - public Builder addAllStatements(java.lang.Iterable<java.lang.String> values) { + public Builder addAllStatements( + java.lang.Iterable<java.lang.String> values) { ensureStatementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, statements_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @return This builder for chaining. */ public Builder clearStatements() { - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param value The bytes of the statements to add. * @return This builder for chaining. */ - public Builder addStatementsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStatementsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStatementsIsMutable(); statements_.add(value); @@ -670,8 +645,64 @@ public Builder addStatementsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + * Proto descriptors stored in the database. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 2;</code> + * @return The protoDescriptors. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtoDescriptors() { + return protoDescriptors_; + } + /** + * <pre> + * Proto descriptors stored in the database. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 2;</code> + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * <pre> + * Proto descriptors stored in the database. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 2;</code> + * @return This builder for chaining. + */ + public Builder clearProtoDescriptors() { + bitField0_ = (bitField0_ & ~0x00000002); + protoDescriptors_ = getDefaultInstance().getProtoDescriptors(); + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -681,12 +712,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.GetDatabaseDdlResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseDdlResponse) private static final com.google.spanner.admin.database.v1.GetDatabaseDdlResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.GetDatabaseDdlResponse(); } @@ -695,27 +726,27 @@ public static com.google.spanner.admin.database.v1.GetDatabaseDdlResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetDatabaseDdlResponse> PARSER = - new com.google.protobuf.AbstractParser<GetDatabaseDdlResponse>() { - @java.lang.Override - public GetDatabaseDdlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetDatabaseDdlResponse> + PARSER = new com.google.protobuf.AbstractParser<GetDatabaseDdlResponse>() { + @java.lang.Override + public GetDatabaseDdlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetDatabaseDdlResponse> parser() { return PARSER; @@ -730,4 +761,6 @@ public com.google.protobuf.Parser<GetDatabaseDdlResponse> getParserForType() { public com.google.spanner.admin.database.v1.GetDatabaseDdlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java index c436d5c844f..b4ed1bd1b1b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponseOrBuilder.java @@ -1,80 +1,68 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface GetDatabaseDdlResponseOrBuilder - extends +public interface GetDatabaseDdlResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.GetDatabaseDdlResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @return A list containing the statements. */ - java.util.List<java.lang.String> getStatementsList(); + java.util.List<java.lang.String> + getStatementsList(); /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @return The count of statements. */ int getStatementsCount(); /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ java.lang.String getStatements(int index); /** - * - * * <pre> * A list of formatted DDL statements defining the schema of the database * specified in the request. * </pre> * * <code>repeated string statements = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - com.google.protobuf.ByteString getStatementsBytes(int index); + com.google.protobuf.ByteString + getStatementsBytes(int index); + + /** + * <pre> + * Proto descriptors stored in the database. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 2;</code> + * @return The protoDescriptors. + */ + com.google.protobuf.ByteString getProtoDescriptors(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java similarity index 64% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java index 9d8c2aa67f5..491a67e6824 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java @@ -1,83 +1,58 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseRequest} */ -public final class GetDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDatabaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.GetDatabaseRequest) GetDatabaseRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDatabaseRequest.newBuilder() to construct. private GetDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetDatabaseRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDatabaseRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.GetDatabaseRequest.class, - com.google.spanner.admin.database.v1.GetDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.GetDatabaseRequest.class, com.google.spanner.admin.database.v1.GetDatabaseRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the requested database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. The name of the requested database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.GetDatabaseRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.GetDatabaseRequest other = - (com.google.spanner.admin.database.v1.GetDatabaseRequest) obj; + com.google.spanner.admin.database.v1.GetDatabaseRequest other = (com.google.spanner.admin.database.v1.GetDatabaseRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseRequest 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.admin.database.v1.GetDatabaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.GetDatabaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.GetDatabaseRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.GetDatabaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.GetDatabaseRequest) com.google.spanner.admin.database.v1.GetDatabaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.GetDatabaseRequest.class, - com.google.spanner.admin.database.v1.GetDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.GetDatabaseRequest.class, com.google.spanner.admin.database.v1.GetDatabaseRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.GetDatabaseRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.spanner.admin.database.v1.GetDatabaseRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.GetDatabaseRequest buildPartial() { - com.google.spanner.admin.database.v1.GetDatabaseRequest result = - new com.google.spanner.admin.database.v1.GetDatabaseRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.GetDatabaseRequest result = new com.google.spanner.admin.database.v1.GetDatabaseRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.GetDatabaseReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.GetDatabaseRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.GetDatabaseRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.GetDatabaseRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.GetDatabaseRequest other) { - if (other == com.google.spanner.admin.database.v1.GetDatabaseRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.GetDatabaseRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the requested database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. The name of the requested database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. The name of the requested database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the requested database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearName() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. The name of the requested database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.GetDatabaseRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.GetDatabaseRequest) private static final com.google.spanner.admin.database.v1.GetDatabaseRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.GetDatabaseRequest(); } @@ -608,27 +544,27 @@ public static com.google.spanner.admin.database.v1.GetDatabaseRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetDatabaseRequest> PARSER = - new com.google.protobuf.AbstractParser<GetDatabaseRequest>() { - @java.lang.Override - public GetDatabaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetDatabaseRequest> + PARSER = new com.google.protobuf.AbstractParser<GetDatabaseRequest>() { + @java.lang.Override + public GetDatabaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetDatabaseRequest> parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser<GetDatabaseRequest> getParserForType() { public com.google.spanner.admin.database.v1.GetDatabaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequestOrBuilder.java new file mode 100644 index 00000000000..62b63534c76 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/spanner_database_admin.proto + +package com.google.spanner.admin.database.v1; + +public interface GetDatabaseRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.GetDatabaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. The name of the requested database. Values are of the form + * `projects/<project>/instances/<instance>/databases/<database>`. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The name. + */ + java.lang.String getName(); + /** + * <pre> + * Required. The name of the requested database. Values are of the form + * `projects/<project>/instances/<instance>/databases/<database>`. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java similarity index 100% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java similarity index 82% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java index f7a89b62763..d3428939be5 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.database.v1.ListBackupOperationsRequest} */ -public final class ListBackupOperationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupOperationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListBackupOperationsRequest) ListBackupOperationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupOperationsRequest.newBuilder() to construct. private ListBackupOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListBackupOperationsRequest() { parent_ = ""; filter_ = ""; @@ -46,41 +28,34 @@ private ListBackupOperationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupOperationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest.class, - com.google.spanner.admin.database.v1.ListBackupOperationsRequest.Builder.class); + com.google.spanner.admin.database.v1.ListBackupOperationsRequest.class, com.google.spanner.admin.database.v1.ListBackupOperationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -89,32 +64,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -199,7 +169,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ @java.lang.Override @@ -208,15 +177,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -287,15 +255,16 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -306,15 +275,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -323,12 +289,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -337,7 +300,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ @java.lang.Override @@ -346,15 +308,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -363,15 +324,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -380,7 +342,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,7 +353,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -421,7 +383,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -434,18 +397,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListBackupOperationsRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListBackupOperationsRequest other = - (com.google.spanner.admin.database.v1.ListBackupOperationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.spanner.admin.database.v1.ListBackupOperationsRequest other = (com.google.spanner.admin.database.v1.ListBackupOperationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -471,104 +437,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest 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.admin.database.v1.ListBackupOperationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListBackupOperationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations]. @@ -576,32 +536,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.ListBackupOperationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListBackupOperationsRequest) com.google.spanner.admin.database.v1.ListBackupOperationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest.class, - com.google.spanner.admin.database.v1.ListBackupOperationsRequest.Builder.class); + com.google.spanner.admin.database.v1.ListBackupOperationsRequest.class, com.google.spanner.admin.database.v1.ListBackupOperationsRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.ListBackupOperationsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -614,14 +575,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.ListBackupOperationsRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListBackupOperationsRequest getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.ListBackupOperationsRequest.getDefaultInstance(); } @@ -636,17 +596,13 @@ public com.google.spanner.admin.database.v1.ListBackupOperationsRequest build() @java.lang.Override public com.google.spanner.admin.database.v1.ListBackupOperationsRequest buildPartial() { - com.google.spanner.admin.database.v1.ListBackupOperationsRequest result = - new com.google.spanner.admin.database.v1.ListBackupOperationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.ListBackupOperationsRequest result = new com.google.spanner.admin.database.v1.ListBackupOperationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest result) { + private void buildPartial0(com.google.spanner.admin.database.v1.ListBackupOperationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -666,50 +622,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListBackupOperationsRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.ListBackupOperationsRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListBackupOperationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.database.v1.ListBackupOperationsRequest other) { - if (other - == com.google.spanner.admin.database.v1.ListBackupOperationsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.database.v1.ListBackupOperationsRequest other) { + if (other == com.google.spanner.admin.database.v1.ListBackupOperationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -754,37 +706,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -794,28 +741,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -824,24 +766,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -849,41 +788,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -893,24 +821,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -920,8 +842,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -992,13 +912,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1007,8 +927,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -1079,14 +997,15 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1094,8 +1013,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -1166,22 +1083,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>string filter = 2;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -1252,7 +1165,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>string filter = 2;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1262,8 +1174,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -1334,14 +1244,12 @@ public Builder clearFilter() { * </pre> * * <code>string filter = 2;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1349,17 +1257,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -1367,15 +1272,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1387,15 +1289,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1407,8 +1306,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -1417,13 +1314,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1432,8 +1329,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -1442,14 +1337,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1457,8 +1353,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -1467,22 +1361,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -1491,7 +1381,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1501,8 +1390,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -1511,23 +1398,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1537,43 +1422,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListBackupOperationsRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListBackupOperationsRequest) - private static final com.google.spanner.admin.database.v1.ListBackupOperationsRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.ListBackupOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListBackupOperationsRequest(); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.ListBackupOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListBackupOperationsRequest> PARSER = - new com.google.protobuf.AbstractParser<ListBackupOperationsRequest>() { - @java.lang.Override - public ListBackupOperationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListBackupOperationsRequest> + PARSER = new com.google.protobuf.AbstractParser<ListBackupOperationsRequest>() { + @java.lang.Override + public ListBackupOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListBackupOperationsRequest> parser() { return PARSER; @@ -1585,8 +1468,9 @@ public com.google.protobuf.Parser<ListBackupOperationsRequest> getParserForType( } @java.lang.Override - public com.google.spanner.admin.database.v1.ListBackupOperationsRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListBackupOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java similarity index 89% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java index 4255d075607..4eefaa368d5 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface ListBackupOperationsRequestOrBuilder - extends +public interface ListBackupOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListBackupOperationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The instance of the backup operations. Values are of * the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -127,13 +100,10 @@ public interface ListBackupOperationsRequestOrBuilder * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * An expression that filters the list of returned backup operations. * @@ -204,28 +174,23 @@ public interface ListBackupOperationsRequestOrBuilder * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -234,13 +199,10 @@ public interface ListBackupOperationsRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] @@ -249,8 +211,8 @@ public interface ListBackupOperationsRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java similarity index 77% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java index 119484dffb1..887fa2143d9 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The response for * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.database.v1.ListBackupOperationsResponse} */ -public final class ListBackupOperationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupOperationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListBackupOperationsResponse) ListBackupOperationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupOperationsResponse.newBuilder() to construct. private ListBackupOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListBackupOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListBackupOperationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupOperationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListBackupOperationsResponse.class, - com.google.spanner.admin.database.v1.ListBackupOperationsResponse.Builder.class); + com.google.spanner.admin.database.v1.ListBackupOperationsResponse.class, com.google.spanner.admin.database.v1.ListBackupOperationsResponse.Builder.class); } public static final int OPERATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.longrunning.Operation> operations_; /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -90,8 +68,6 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { return operations_; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -107,13 +83,11 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { * <code>repeated .google.longrunning.Operation operations = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> getOperationsOrBuilderList() { return operations_; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -133,8 +107,6 @@ public int getOperationsCount() { return operations_.size(); } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -154,8 +126,6 @@ public com.google.longrunning.Operation getOperations(int index) { return operations_.get(index); } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -171,17 +141,15 @@ public com.google.longrunning.Operation getOperations(int index) { * <code>repeated .google.longrunning.Operation operations = 1;</code> */ @java.lang.Override - public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -189,7 +157,6 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -198,15 +165,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -214,15 +180,16 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -231,7 +198,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +209,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < operations_.size(); i++) { output.writeMessage(1, operations_.get(i)); } @@ -260,7 +227,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < operations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, operations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -273,16 +241,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListBackupOperationsResponse)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListBackupOperationsResponse other = - (com.google.spanner.admin.database.v1.ListBackupOperationsResponse) obj; + com.google.spanner.admin.database.v1.ListBackupOperationsResponse other = (com.google.spanner.admin.database.v1.ListBackupOperationsResponse) obj; - if (!getOperationsList().equals(other.getOperationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getOperationsList() + .equals(other.getOperationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,105 +275,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse 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.admin.database.v1.ListBackupOperationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse - 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.admin.database.v1.ListBackupOperationsResponse 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.admin.database.v1.ListBackupOperationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListBackupOperationsResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListBackupOperationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations]. @@ -412,33 +374,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.ListBackupOperationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListBackupOperationsResponse) com.google.spanner.admin.database.v1.ListBackupOperationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListBackupOperationsResponse.class, - com.google.spanner.admin.database.v1.ListBackupOperationsResponse.Builder.class); + com.google.spanner.admin.database.v1.ListBackupOperationsResponse.class, com.google.spanner.admin.database.v1.ListBackupOperationsResponse.Builder.class); } - // Construct using - // com.google.spanner.admin.database.v1.ListBackupOperationsResponse.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.database.v1.ListBackupOperationsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -455,14 +417,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.ListBackupOperationsResponse - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListBackupOperationsResponse getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.ListBackupOperationsResponse.getDefaultInstance(); } @@ -477,18 +438,14 @@ public com.google.spanner.admin.database.v1.ListBackupOperationsResponse build() @java.lang.Override public com.google.spanner.admin.database.v1.ListBackupOperationsResponse buildPartial() { - com.google.spanner.admin.database.v1.ListBackupOperationsResponse result = - new com.google.spanner.admin.database.v1.ListBackupOperationsResponse(this); + com.google.spanner.admin.database.v1.ListBackupOperationsResponse result = new com.google.spanner.admin.database.v1.ListBackupOperationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.database.v1.ListBackupOperationsResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.database.v1.ListBackupOperationsResponse result) { if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); @@ -500,8 +457,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.spanner.admin.database.v1.ListBackupOperationsResponse result) { + private void buildPartial0(com.google.spanner.admin.database.v1.ListBackupOperationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -512,50 +468,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListBackupOperationsResponse) { - return mergeFrom((com.google.spanner.admin.database.v1.ListBackupOperationsResponse) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListBackupOperationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.database.v1.ListBackupOperationsResponse other) { - if (other - == com.google.spanner.admin.database.v1.ListBackupOperationsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.database.v1.ListBackupOperationsResponse other) { + if (other == com.google.spanner.admin.database.v1.ListBackupOperationsResponse.getDefaultInstance()) return this; if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { @@ -574,10 +526,9 @@ public Builder mergeFrom( operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); - operationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOperationsFieldBuilder() - : null; + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } @@ -614,31 +565,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.longrunning.Operation m = - input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry); - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.add(m); - } else { - operationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.longrunning.Operation m = + input.readMessage( + com.google.longrunning.Operation.parser(), + extensionRegistry); + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(m); + } else { + operationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,28 +598,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.longrunning.Operation> operations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList<com.google.longrunning.Operation>(operations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> - operationsBuilder_; + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> operationsBuilder_; /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -692,8 +635,6 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { } } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -716,8 +657,6 @@ public int getOperationsCount() { } } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -740,8 +679,6 @@ public com.google.longrunning.Operation getOperations(int index) { } } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -756,7 +693,8 @@ public com.google.longrunning.Operation getOperations(int index) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder setOperations(int index, com.google.longrunning.Operation value) { + public Builder setOperations( + int index, com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -770,8 +708,6 @@ public Builder setOperations(int index, com.google.longrunning.Operation value) return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -798,8 +734,6 @@ public Builder setOperations( return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -828,8 +762,6 @@ public Builder addOperations(com.google.longrunning.Operation value) { return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -844,7 +776,8 @@ public Builder addOperations(com.google.longrunning.Operation value) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder addOperations(int index, com.google.longrunning.Operation value) { + public Builder addOperations( + int index, com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -858,8 +791,6 @@ public Builder addOperations(int index, com.google.longrunning.Operation value) return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -874,7 +805,8 @@ public Builder addOperations(int index, com.google.longrunning.Operation value) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder addOperations(com.google.longrunning.Operation.Builder builderForValue) { + public Builder addOperations( + com.google.longrunning.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); @@ -885,8 +817,6 @@ public Builder addOperations(com.google.longrunning.Operation.Builder builderFor return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -913,8 +843,6 @@ public Builder addOperations( return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -933,7 +861,8 @@ public Builder addAllOperations( java.lang.Iterable<? extends com.google.longrunning.Operation> values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); @@ -941,8 +870,6 @@ public Builder addAllOperations( return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -968,8 +895,6 @@ public Builder clearOperations() { return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -995,8 +920,6 @@ public Builder removeOperations(int index) { return this; } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1011,12 +934,11 @@ public Builder removeOperations(int index) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) { + public com.google.longrunning.Operation.Builder getOperationsBuilder( + int index) { return getOperationsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1031,16 +953,14 @@ public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index) { if (operationsBuilder_ == null) { - return operations_.get(index); - } else { + return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1055,8 +975,8 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> - getOperationsOrBuilderList() { + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { @@ -1064,8 +984,6 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde } } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1081,12 +999,10 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * <code>repeated .google.longrunning.Operation operations = 1;</code> */ public com.google.longrunning.Operation.Builder addOperationsBuilder() { - return getOperationsFieldBuilder() - .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); + return getOperationsFieldBuilder().addBuilder( + com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1101,13 +1017,12 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder() { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) { - return getOperationsFieldBuilder() - .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder().addBuilder( + index, com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1122,22 +1037,20 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBuilderList() { + public java.util.List<com.google.longrunning.Operation.Builder> + getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { - operationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder>( - operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); operations_ = null; } return operationsBuilder_; @@ -1145,8 +1058,6 @@ public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBui private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -1154,13 +1065,13 @@ public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBui * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1169,8 +1080,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -1178,14 +1087,15 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1193,8 +1103,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -1202,22 +1110,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -1225,7 +1129,6 @@ public Builder setNextPageToken(java.lang.String value) { * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1235,8 +1138,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -1244,23 +1145,21 @@ public Builder clearNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1270,43 +1169,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListBackupOperationsResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListBackupOperationsResponse) - private static final com.google.spanner.admin.database.v1.ListBackupOperationsResponse - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.ListBackupOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListBackupOperationsResponse(); } - public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.ListBackupOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListBackupOperationsResponse> PARSER = - new com.google.protobuf.AbstractParser<ListBackupOperationsResponse>() { - @java.lang.Override - public ListBackupOperationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListBackupOperationsResponse> + PARSER = new com.google.protobuf.AbstractParser<ListBackupOperationsResponse>() { + @java.lang.Override + public ListBackupOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListBackupOperationsResponse> parser() { return PARSER; @@ -1318,8 +1215,9 @@ public com.google.protobuf.Parser<ListBackupOperationsResponse> getParserForType } @java.lang.Override - public com.google.spanner.admin.database.v1.ListBackupOperationsResponse - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListBackupOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java similarity index 83% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java index ba6b8352ec7..783e808323e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface ListBackupOperationsResponseOrBuilder - extends +public interface ListBackupOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListBackupOperationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -40,10 +22,9 @@ public interface ListBackupOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - java.util.List<com.google.longrunning.Operation> getOperationsList(); + java.util.List<com.google.longrunning.Operation> + getOperationsList(); /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -60,8 +41,6 @@ public interface ListBackupOperationsResponseOrBuilder */ com.google.longrunning.Operation getOperations(int index); /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -78,8 +57,6 @@ public interface ListBackupOperationsResponseOrBuilder */ int getOperationsCount(); /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -94,10 +71,9 @@ public interface ListBackupOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - java.util.List<? extends com.google.longrunning.OperationOrBuilder> getOperationsOrBuilderList(); + java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getOperationsOrBuilderList(); /** - * - * * <pre> * The list of matching backup [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -112,11 +88,10 @@ public interface ListBackupOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index); + com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -124,13 +99,10 @@ public interface ListBackupOperationsResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] @@ -138,8 +110,8 @@ public interface ListBackupOperationsResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java similarity index 77% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java index ec4724c8267..f898fcbdfc1 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListBackupsRequest} */ -public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListBackupsRequest) ListBackupsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupsRequest.newBuilder() to construct. private ListBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListBackupsRequest() { parent_ = ""; filter_ = ""; @@ -45,41 +27,34 @@ private ListBackupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListBackupsRequest.class, - com.google.spanner.admin.database.v1.ListBackupsRequest.Builder.class); + com.google.spanner.admin.database.v1.ListBackupsRequest.class, com.google.spanner.admin.database.v1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,12 +95,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -167,7 +137,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ @java.lang.Override @@ -176,15 +145,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -224,15 +192,16 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -243,15 +212,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -260,12 +226,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -274,7 +237,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ @java.lang.Override @@ -283,15 +245,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -300,15 +261,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -317,7 +279,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,7 +290,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -358,7 +320,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -371,18 +334,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListBackupsRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListBackupsRequest other = - (com.google.spanner.admin.database.v1.ListBackupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.spanner.admin.database.v1.ListBackupsRequest other = (com.google.spanner.admin.database.v1.ListBackupsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -408,136 +374,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupsRequest 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.admin.database.v1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListBackupsRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListBackupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListBackupsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListBackupsRequest) com.google.spanner.admin.database.v1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListBackupsRequest.class, - com.google.spanner.admin.database.v1.ListBackupsRequest.Builder.class); + com.google.spanner.admin.database.v1.ListBackupsRequest.class, com.google.spanner.admin.database.v1.ListBackupsRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.ListBackupsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -550,9 +511,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -571,11 +532,8 @@ public com.google.spanner.admin.database.v1.ListBackupsRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.ListBackupsRequest buildPartial() { - com.google.spanner.admin.database.v1.ListBackupsRequest result = - new com.google.spanner.admin.database.v1.ListBackupsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.ListBackupsRequest result = new com.google.spanner.admin.database.v1.ListBackupsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -600,39 +558,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.ListBackupsReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListBackupsRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.ListBackupsRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListBackupsRequest)other); } else { super.mergeFrom(other); return this; @@ -640,8 +597,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.ListBackupsRequest other) { - if (other == com.google.spanner.admin.database.v1.ListBackupsRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.ListBackupsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -686,37 +642,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -726,28 +677,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -756,24 +702,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -781,41 +724,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -825,24 +757,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -852,8 +778,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -893,13 +817,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -908,8 +832,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -949,14 +871,15 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -964,8 +887,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -1005,22 +926,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>string filter = 2;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -1060,7 +977,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>string filter = 2;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1070,8 +986,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -1111,14 +1025,12 @@ public Builder clearFilter() { * </pre> * * <code>string filter = 2;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1126,17 +1038,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -1144,15 +1053,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1164,15 +1070,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1184,8 +1087,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -1194,13 +1095,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1209,8 +1110,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -1219,14 +1118,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1234,8 +1134,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -1244,22 +1142,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -1268,7 +1162,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1278,8 +1171,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -1288,23 +1179,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1314,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListBackupsRequest) private static final com.google.spanner.admin.database.v1.ListBackupsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListBackupsRequest(); } @@ -1328,27 +1217,27 @@ public static com.google.spanner.admin.database.v1.ListBackupsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListBackupsRequest> PARSER = - new com.google.protobuf.AbstractParser<ListBackupsRequest>() { - @java.lang.Override - public ListBackupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListBackupsRequest> + PARSER = new com.google.protobuf.AbstractParser<ListBackupsRequest>() { + @java.lang.Override + public ListBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListBackupsRequest> parser() { return PARSER; @@ -1363,4 +1252,6 @@ public com.google.protobuf.Parser<ListBackupsRequest> getParserForType() { public com.google.spanner.admin.database.v1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java similarity index 82% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java index 74def9180b7..2e2508276b0 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface ListBackupsRequestOrBuilder - extends +public interface ListBackupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The instance to list backups from. Values are of the * form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -96,13 +69,10 @@ public interface ListBackupsRequestOrBuilder * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * An expression that filters the list of returned backups. * @@ -142,28 +112,23 @@ public interface ListBackupsRequestOrBuilder * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -172,13 +137,10 @@ public interface ListBackupsRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a @@ -187,8 +149,8 @@ public interface ListBackupsRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java similarity index 73% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java index 368f505e606..2e3d96fb838 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The response for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListBackupsResponse} */ -public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListBackupsResponse) ListBackupsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupsResponse.newBuilder() to construct. private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListBackupsResponse() { backups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListBackupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListBackupsResponse.class, - com.google.spanner.admin.database.v1.ListBackupsResponse.Builder.class); + com.google.spanner.admin.database.v1.ListBackupsResponse.class, com.google.spanner.admin.database.v1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.database.v1.Backup> backups_; /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -82,8 +60,6 @@ public java.util.List<com.google.spanner.admin.database.v1.Backup> getBackupsLis return backups_; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -92,13 +68,11 @@ public java.util.List<com.google.spanner.admin.database.v1.Backup> getBackupsLis * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> + public java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> getBackupsOrBuilderList() { return backups_; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -111,8 +85,6 @@ public int getBackupsCount() { return backups_.size(); } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -125,8 +97,6 @@ public com.google.spanner.admin.database.v1.Backup getBackups(int index) { return backups_.get(index); } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -135,17 +105,15 @@ public com.google.spanner.admin.database.v1.Backup getBackups(int index) { * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ @java.lang.Override - public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder( + int index) { return backups_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -153,7 +121,6 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder( * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -162,15 +129,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -178,15 +144,16 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < backups_.size(); i++) { output.writeMessage(1, backups_.get(i)); } @@ -224,7 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < backups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, backups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListBackupsResponse)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListBackupsResponse other = - (com.google.spanner.admin.database.v1.ListBackupsResponse) obj; + com.google.spanner.admin.database.v1.ListBackupsResponse other = (com.google.spanner.admin.database.v1.ListBackupsResponse) obj; - if (!getBackupsList().equals(other.getBackupsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBackupsList() + .equals(other.getBackupsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +239,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupsResponse 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.admin.database.v1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListBackupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListBackupsResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListBackupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListBackupsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListBackupsResponse) com.google.spanner.admin.database.v1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListBackupsResponse.class, - com.google.spanner.admin.database.v1.ListBackupsResponse.Builder.class); + com.google.spanner.admin.database.v1.ListBackupsResponse.class, com.google.spanner.admin.database.v1.ListBackupsResponse.Builder.class); } // Construct using com.google.spanner.admin.database.v1.ListBackupsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -437,18 +401,14 @@ public com.google.spanner.admin.database.v1.ListBackupsResponse build() { @java.lang.Override public com.google.spanner.admin.database.v1.ListBackupsResponse buildPartial() { - com.google.spanner.admin.database.v1.ListBackupsResponse result = - new com.google.spanner.admin.database.v1.ListBackupsResponse(this); + com.google.spanner.admin.database.v1.ListBackupsResponse result = new com.google.spanner.admin.database.v1.ListBackupsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.database.v1.ListBackupsResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.database.v1.ListBackupsResponse result) { if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { backups_ = java.util.Collections.unmodifiableList(backups_); @@ -471,39 +431,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.ListBackupsRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListBackupsResponse) { - return mergeFrom((com.google.spanner.admin.database.v1.ListBackupsResponse) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListBackupsResponse)other); } else { super.mergeFrom(other); return this; @@ -511,8 +470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.ListBackupsResponse other) { - if (other == com.google.spanner.admin.database.v1.ListBackupsResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.ListBackupsResponse.getDefaultInstance()) return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -531,10 +489,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.ListBackupsRespons backupsBuilder_ = null; backups_ = other.backups_; bitField0_ = (bitField0_ & ~0x00000001); - backupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBackupsFieldBuilder() - : null; + backupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBackupsFieldBuilder() : null; } else { backupsBuilder_.addAllMessages(other.backups_); } @@ -571,32 +528,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.database.v1.Backup m = - input.readMessage( - com.google.spanner.admin.database.v1.Backup.parser(), extensionRegistry); - if (backupsBuilder_ == null) { - ensureBackupsIsMutable(); - backups_.add(m); - } else { - backupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.database.v1.Backup m = + input.readMessage( + com.google.spanner.admin.database.v1.Backup.parser(), + extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,28 +561,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.admin.database.v1.Backup> backups_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBackupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { backups_ = new java.util.ArrayList<com.google.spanner.admin.database.v1.Backup>(backups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Backup, - com.google.spanner.admin.database.v1.Backup.Builder, - com.google.spanner.admin.database.v1.BackupOrBuilder> - backupsBuilder_; + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder> backupsBuilder_; /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -643,8 +591,6 @@ public java.util.List<com.google.spanner.admin.database.v1.Backup> getBackupsLis } } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -660,8 +606,6 @@ public int getBackupsCount() { } } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -677,8 +621,6 @@ public com.google.spanner.admin.database.v1.Backup getBackups(int index) { } } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -686,7 +628,8 @@ public com.google.spanner.admin.database.v1.Backup getBackups(int index) { * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - public Builder setBackups(int index, com.google.spanner.admin.database.v1.Backup value) { + public Builder setBackups( + int index, com.google.spanner.admin.database.v1.Backup value) { if (backupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,8 +643,6 @@ public Builder setBackups(int index, com.google.spanner.admin.database.v1.Backup return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -721,8 +662,6 @@ public Builder setBackups( return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -744,8 +683,6 @@ public Builder addBackups(com.google.spanner.admin.database.v1.Backup value) { return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -753,7 +690,8 @@ public Builder addBackups(com.google.spanner.admin.database.v1.Backup value) { * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - public Builder addBackups(int index, com.google.spanner.admin.database.v1.Backup value) { + public Builder addBackups( + int index, com.google.spanner.admin.database.v1.Backup value) { if (backupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -767,8 +705,6 @@ public Builder addBackups(int index, com.google.spanner.admin.database.v1.Backup return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -776,7 +712,8 @@ public Builder addBackups(int index, com.google.spanner.admin.database.v1.Backup * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - public Builder addBackups(com.google.spanner.admin.database.v1.Backup.Builder builderForValue) { + public Builder addBackups( + com.google.spanner.admin.database.v1.Backup.Builder builderForValue) { if (backupsBuilder_ == null) { ensureBackupsIsMutable(); backups_.add(builderForValue.build()); @@ -787,8 +724,6 @@ public Builder addBackups(com.google.spanner.admin.database.v1.Backup.Builder bu return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -808,8 +743,6 @@ public Builder addBackups( return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -821,7 +754,8 @@ public Builder addAllBackups( java.lang.Iterable<? extends com.google.spanner.admin.database.v1.Backup> values) { if (backupsBuilder_ == null) { ensureBackupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, backups_); onChanged(); } else { backupsBuilder_.addAllMessages(values); @@ -829,8 +763,6 @@ public Builder addAllBackups( return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -849,8 +781,6 @@ public Builder clearBackups() { return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -869,8 +799,6 @@ public Builder removeBackups(int index) { return this; } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -878,12 +806,11 @@ public Builder removeBackups(int index) { * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - public com.google.spanner.admin.database.v1.Backup.Builder getBackupsBuilder(int index) { + public com.google.spanner.admin.database.v1.Backup.Builder getBackupsBuilder( + int index) { return getBackupsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -891,16 +818,14 @@ public com.google.spanner.admin.database.v1.Backup.Builder getBackupsBuilder(int * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder( + int index) { if (backupsBuilder_ == null) { - return backups_.get(index); - } else { + return backups_.get(index); } else { return backupsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -908,8 +833,8 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder( * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> - getBackupsOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> + getBackupsOrBuilderList() { if (backupsBuilder_ != null) { return backupsBuilder_.getMessageOrBuilderList(); } else { @@ -917,8 +842,6 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder( } } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -927,12 +850,10 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder( * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ public com.google.spanner.admin.database.v1.Backup.Builder addBackupsBuilder() { - return getBackupsFieldBuilder() - .addBuilder(com.google.spanner.admin.database.v1.Backup.getDefaultInstance()); + return getBackupsFieldBuilder().addBuilder( + com.google.spanner.admin.database.v1.Backup.getDefaultInstance()); } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -940,13 +861,12 @@ public com.google.spanner.admin.database.v1.Backup.Builder addBackupsBuilder() { * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - public com.google.spanner.admin.database.v1.Backup.Builder addBackupsBuilder(int index) { - return getBackupsFieldBuilder() - .addBuilder(index, com.google.spanner.admin.database.v1.Backup.getDefaultInstance()); + public com.google.spanner.admin.database.v1.Backup.Builder addBackupsBuilder( + int index) { + return getBackupsFieldBuilder().addBuilder( + index, com.google.spanner.admin.database.v1.Backup.getDefaultInstance()); } /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -954,23 +874,20 @@ public com.google.spanner.admin.database.v1.Backup.Builder addBackupsBuilder(int * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.Backup.Builder> - getBackupsBuilderList() { + public java.util.List<com.google.spanner.admin.database.v1.Backup.Builder> + getBackupsBuilderList() { return getBackupsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Backup, - com.google.spanner.admin.database.v1.Backup.Builder, - com.google.spanner.admin.database.v1.BackupOrBuilder> + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder> getBackupsFieldBuilder() { if (backupsBuilder_ == null) { - backupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Backup, - com.google.spanner.admin.database.v1.Backup.Builder, - com.google.spanner.admin.database.v1.BackupOrBuilder>( - backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder>( + backups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); backups_ = null; } return backupsBuilder_; @@ -978,8 +895,6 @@ public com.google.spanner.admin.database.v1.Backup.Builder addBackupsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -987,13 +902,13 @@ public com.google.spanner.admin.database.v1.Backup.Builder addBackupsBuilder(int * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1002,8 +917,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -1011,14 +924,15 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1026,8 +940,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -1035,22 +947,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -1058,7 +966,6 @@ public Builder setNextPageToken(java.lang.String value) { * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1068,8 +975,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -1077,23 +982,21 @@ public Builder clearNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1006,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListBackupsResponse) private static final com.google.spanner.admin.database.v1.ListBackupsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListBackupsResponse(); } @@ -1117,27 +1020,27 @@ public static com.google.spanner.admin.database.v1.ListBackupsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListBackupsResponse> PARSER = - new com.google.protobuf.AbstractParser<ListBackupsResponse>() { - @java.lang.Override - public ListBackupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListBackupsResponse> + PARSER = new com.google.protobuf.AbstractParser<ListBackupsResponse>() { + @java.lang.Override + public ListBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListBackupsResponse> parser() { return PARSER; @@ -1152,4 +1055,6 @@ public com.google.protobuf.Parser<ListBackupsResponse> getParserForType() { public com.google.spanner.admin.database.v1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java index 9c1ccadf998..ed99d72751d 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface ListBackupsResponseOrBuilder - extends +public interface ListBackupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -33,10 +15,9 @@ public interface ListBackupsResponseOrBuilder * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - java.util.List<com.google.spanner.admin.database.v1.Backup> getBackupsList(); + java.util.List<com.google.spanner.admin.database.v1.Backup> + getBackupsList(); /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -46,8 +27,6 @@ public interface ListBackupsResponseOrBuilder */ com.google.spanner.admin.database.v1.Backup getBackups(int index); /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -57,8 +36,6 @@ public interface ListBackupsResponseOrBuilder */ int getBackupsCount(); /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -66,11 +43,9 @@ public interface ListBackupsResponseOrBuilder * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> + java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> getBackupsOrBuilderList(); /** - * - * * <pre> * The list of matching backups. Backups returned are ordered by `create_time` * in descending order, starting from the most recent `create_time`. @@ -78,11 +53,10 @@ public interface ListBackupsResponseOrBuilder * * <code>repeated .google.spanner.admin.database.v1.Backup backups = 1;</code> */ - com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder(int index); + com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder( + int index); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -90,13 +64,10 @@ public interface ListBackupsResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more @@ -104,8 +75,8 @@ public interface ListBackupsResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java similarity index 77% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java index 37d86fbdedb..4a17160ddc3 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseOperationsRequest} */ -public final class ListDatabaseOperationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatabaseOperationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListDatabaseOperationsRequest) ListDatabaseOperationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatabaseOperationsRequest.newBuilder() to construct. private ListDatabaseOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListDatabaseOperationsRequest() { parent_ = ""; filter_ = ""; @@ -46,41 +28,34 @@ private ListDatabaseOperationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatabaseOperationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.class, - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.Builder.class); + com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.class, com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -89,32 +64,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -175,7 +145,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ @java.lang.Override @@ -184,15 +153,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -239,15 +207,16 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -258,15 +227,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -275,12 +241,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -289,7 +252,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ @java.lang.Override @@ -298,15 +260,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -315,15 +276,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -332,7 +294,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +305,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -373,7 +335,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -386,18 +349,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest other = - (com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest other = (com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -423,105 +389,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest 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.admin.database.v1.ListDatabaseOperationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - 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.admin.database.v1.ListDatabaseOperationsRequest 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.admin.database.v1.ListDatabaseOperationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations]. @@ -529,33 +488,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseOperationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListDatabaseOperationsRequest) com.google.spanner.admin.database.v1.ListDatabaseOperationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.class, - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.Builder.class); + com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.class, com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.Builder.class); } - // Construct using - // com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -568,16 +527,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - getDefaultInstanceForType() { - return com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - .getDefaultInstance(); + public com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest getDefaultInstanceForType() { + return com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.getDefaultInstance(); } @java.lang.Override @@ -591,17 +548,13 @@ public com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest build( @java.lang.Override public com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest buildPartial() { - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest result = - new com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest result = new com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest result) { + private void buildPartial0(com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -621,51 +574,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest) { - return mergeFrom( - (com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest other) { - if (other - == com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest other) { + if (other == com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -710,37 +658,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -750,28 +693,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -780,24 +718,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -805,41 +740,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -849,24 +773,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -876,8 +794,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -924,13 +840,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -939,8 +855,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -987,14 +901,15 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1002,8 +917,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -1050,22 +963,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>string filter = 2;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -1112,7 +1021,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>string filter = 2;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1122,8 +1030,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -1170,14 +1076,12 @@ public Builder clearFilter() { * </pre> * * <code>string filter = 2;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1185,17 +1089,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -1203,15 +1104,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1223,15 +1121,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1243,8 +1138,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -1253,13 +1146,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1268,8 +1161,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -1278,14 +1169,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1293,8 +1185,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -1303,22 +1193,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -1327,7 +1213,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1337,8 +1222,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -1347,23 +1230,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1373,43 +1254,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListDatabaseOperationsRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabaseOperationsRequest) - private static final com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest(); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListDatabaseOperationsRequest> PARSER = - new com.google.protobuf.AbstractParser<ListDatabaseOperationsRequest>() { - @java.lang.Override - public ListDatabaseOperationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListDatabaseOperationsRequest> + PARSER = new com.google.protobuf.AbstractParser<ListDatabaseOperationsRequest>() { + @java.lang.Override + public ListDatabaseOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListDatabaseOperationsRequest> parser() { return PARSER; @@ -1421,8 +1300,9 @@ public com.google.protobuf.Parser<ListDatabaseOperationsRequest> getParserForTyp } @java.lang.Override - public com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListDatabaseOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java similarity index 85% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java index 9f67dc38b95..3e7d089ed51 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface ListDatabaseOperationsRequestOrBuilder - extends +public interface ListDatabaseOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListDatabaseOperationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The instance of the database operations. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -103,13 +76,10 @@ public interface ListDatabaseOperationsRequestOrBuilder * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -156,28 +126,23 @@ public interface ListDatabaseOperationsRequestOrBuilder * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -186,13 +151,10 @@ public interface ListDatabaseOperationsRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] @@ -201,8 +163,8 @@ public interface ListDatabaseOperationsRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java similarity index 74% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java index 9331109f4bb..f66313f6386 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The response for * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations]. @@ -28,17 +11,15 @@ * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseOperationsResponse} */ -public final class ListDatabaseOperationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatabaseOperationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListDatabaseOperationsResponse) ListDatabaseOperationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatabaseOperationsResponse.newBuilder() to construct. - private ListDatabaseOperationsResponse( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private ListDatabaseOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListDatabaseOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,32 +27,28 @@ private ListDatabaseOperationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatabaseOperationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.class, - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.Builder.class); + com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.class, com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.Builder.class); } public static final int OPERATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.longrunning.Operation> operations_; /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -87,8 +64,6 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { return operations_; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -100,13 +75,11 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { * <code>repeated .google.longrunning.Operation operations = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> getOperationsOrBuilderList() { return operations_; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -122,8 +95,6 @@ public int getOperationsCount() { return operations_.size(); } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -139,8 +110,6 @@ public com.google.longrunning.Operation getOperations(int index) { return operations_.get(index); } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -152,17 +121,15 @@ public com.google.longrunning.Operation getOperations(int index) { * <code>repeated .google.longrunning.Operation operations = 1;</code> */ @java.lang.Override - public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -170,7 +137,6 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -179,15 +145,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -195,15 +160,16 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -212,7 +178,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < operations_.size(); i++) { output.writeMessage(1, operations_.get(i)); } @@ -241,7 +207,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < operations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, operations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -254,16 +221,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse other = - (com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse) obj; + com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse other = (com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse) obj; - if (!getOperationsList().equals(other.getOperationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getOperationsList() + .equals(other.getOperationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,105 +255,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse 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.admin.database.v1.ListDatabaseOperationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - 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.admin.database.v1.ListDatabaseOperationsResponse 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.admin.database.v1.ListDatabaseOperationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations]. @@ -393,33 +354,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseOperationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListDatabaseOperationsResponse) com.google.spanner.admin.database.v1.ListDatabaseOperationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.class, - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.Builder.class); + com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.class, com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.Builder.class); } - // Construct using - // com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -436,16 +397,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - getDefaultInstanceForType() { - return com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - .getDefaultInstance(); + public com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse getDefaultInstanceForType() { + return com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.getDefaultInstance(); } @java.lang.Override @@ -459,18 +418,14 @@ public com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse build @java.lang.Override public com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse buildPartial() { - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse result = - new com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse(this); + com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse result = new com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse result) { if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); @@ -482,8 +437,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse result) { + private void buildPartial0(com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -494,51 +448,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse) { - return mergeFrom( - (com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse other) { - if (other - == com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse other) { + if (other == com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.getDefaultInstance()) return this; if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { @@ -557,10 +506,9 @@ public Builder mergeFrom( operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); - operationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOperationsFieldBuilder() - : null; + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } @@ -597,31 +545,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.longrunning.Operation m = - input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry); - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.add(m); - } else { - operationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.longrunning.Operation m = + input.readMessage( + com.google.longrunning.Operation.parser(), + extensionRegistry); + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(m); + } else { + operationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -631,28 +578,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.longrunning.Operation> operations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList<com.google.longrunning.Operation>(operations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> - operationsBuilder_; + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> operationsBuilder_; /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -671,8 +611,6 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { } } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -691,8 +629,6 @@ public int getOperationsCount() { } } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -711,8 +647,6 @@ public com.google.longrunning.Operation getOperations(int index) { } } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -723,7 +657,8 @@ public com.google.longrunning.Operation getOperations(int index) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder setOperations(int index, com.google.longrunning.Operation value) { + public Builder setOperations( + int index, com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -737,8 +672,6 @@ public Builder setOperations(int index, com.google.longrunning.Operation value) return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -761,8 +694,6 @@ public Builder setOperations( return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -787,8 +718,6 @@ public Builder addOperations(com.google.longrunning.Operation value) { return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -799,7 +728,8 @@ public Builder addOperations(com.google.longrunning.Operation value) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder addOperations(int index, com.google.longrunning.Operation value) { + public Builder addOperations( + int index, com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -813,8 +743,6 @@ public Builder addOperations(int index, com.google.longrunning.Operation value) return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -825,7 +753,8 @@ public Builder addOperations(int index, com.google.longrunning.Operation value) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder addOperations(com.google.longrunning.Operation.Builder builderForValue) { + public Builder addOperations( + com.google.longrunning.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); @@ -836,8 +765,6 @@ public Builder addOperations(com.google.longrunning.Operation.Builder builderFor return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -860,8 +787,6 @@ public Builder addOperations( return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -876,7 +801,8 @@ public Builder addAllOperations( java.lang.Iterable<? extends com.google.longrunning.Operation> values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); @@ -884,8 +810,6 @@ public Builder addAllOperations( return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -907,8 +831,6 @@ public Builder clearOperations() { return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -930,8 +852,6 @@ public Builder removeOperations(int index) { return this; } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -942,12 +862,11 @@ public Builder removeOperations(int index) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) { + public com.google.longrunning.Operation.Builder getOperationsBuilder( + int index) { return getOperationsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -958,16 +877,14 @@ public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index) { if (operationsBuilder_ == null) { - return operations_.get(index); - } else { + return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -978,8 +895,8 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> - getOperationsOrBuilderList() { + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { @@ -987,8 +904,6 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde } } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1000,12 +915,10 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * <code>repeated .google.longrunning.Operation operations = 1;</code> */ public com.google.longrunning.Operation.Builder addOperationsBuilder() { - return getOperationsFieldBuilder() - .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); + return getOperationsFieldBuilder().addBuilder( + com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1016,13 +929,12 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder() { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) { - return getOperationsFieldBuilder() - .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder().addBuilder( + index, com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1033,22 +945,20 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBuilderList() { + public java.util.List<com.google.longrunning.Operation.Builder> + getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { - operationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder>( - operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); operations_ = null; } return operationsBuilder_; @@ -1056,8 +966,6 @@ public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBui private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -1065,13 +973,13 @@ public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBui * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1080,8 +988,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -1089,14 +995,15 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1104,8 +1011,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -1113,22 +1018,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -1136,7 +1037,6 @@ public Builder setNextPageToken(java.lang.String value) { * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1146,8 +1046,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -1155,23 +1053,21 @@ public Builder clearNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1181,43 +1077,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListDatabaseOperationsResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabaseOperationsResponse) - private static final com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse(); } - public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListDatabaseOperationsResponse> PARSER = - new com.google.protobuf.AbstractParser<ListDatabaseOperationsResponse>() { - @java.lang.Override - public ListDatabaseOperationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListDatabaseOperationsResponse> + PARSER = new com.google.protobuf.AbstractParser<ListDatabaseOperationsResponse>() { + @java.lang.Override + public ListDatabaseOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListDatabaseOperationsResponse> parser() { return PARSER; @@ -1229,8 +1123,9 @@ public com.google.protobuf.Parser<ListDatabaseOperationsResponse> getParserForTy } @java.lang.Override - public com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListDatabaseOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java index 97a577e30ef..fee7430e1b8 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface ListDatabaseOperationsResponseOrBuilder - extends +public interface ListDatabaseOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListDatabaseOperationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -36,10 +18,9 @@ public interface ListDatabaseOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - java.util.List<com.google.longrunning.Operation> getOperationsList(); + java.util.List<com.google.longrunning.Operation> + getOperationsList(); /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -52,8 +33,6 @@ public interface ListDatabaseOperationsResponseOrBuilder */ com.google.longrunning.Operation getOperations(int index); /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -66,8 +45,6 @@ public interface ListDatabaseOperationsResponseOrBuilder */ int getOperationsCount(); /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -78,10 +55,9 @@ public interface ListDatabaseOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - java.util.List<? extends com.google.longrunning.OperationOrBuilder> getOperationsOrBuilderList(); + java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getOperationsOrBuilderList(); /** - * - * * <pre> * The list of matching database [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -92,11 +68,10 @@ public interface ListDatabaseOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index); + com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -104,13 +79,10 @@ public interface ListDatabaseOperationsResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations] @@ -118,8 +90,8 @@ public interface ListDatabaseOperationsResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java similarity index 68% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java index 679e8885de8..916b4f81d1e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseRolesRequest} */ -public final class ListDatabaseRolesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatabaseRolesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListDatabaseRolesRequest) ListDatabaseRolesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatabaseRolesRequest.newBuilder() to construct. private ListDatabaseRolesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListDatabaseRolesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,42 +26,35 @@ private ListDatabaseRolesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatabaseRolesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.class, - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.Builder.class); + com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.class, com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,15 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * * <pre> * Number of database roles to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -155,7 +122,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ @java.lang.Override @@ -164,15 +130,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -180,15 +145,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -197,7 +163,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -232,7 +198,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -245,17 +212,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListDatabaseRolesRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest other = - (com.google.spanner.admin.database.v1.ListDatabaseRolesRequest) obj; + com.google.spanner.admin.database.v1.ListDatabaseRolesRequest other = (com.google.spanner.admin.database.v1.ListDatabaseRolesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,136 +248,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest 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.admin.database.v1.ListDatabaseRolesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListDatabaseRolesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseRolesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListDatabaseRolesRequest) com.google.spanner.admin.database.v1.ListDatabaseRolesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.class, - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.Builder.class); + com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.class, com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,14 +384,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.ListDatabaseRolesRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListDatabaseRolesRequest getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.getDefaultInstance(); } @@ -442,17 +405,13 @@ public com.google.spanner.admin.database.v1.ListDatabaseRolesRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.ListDatabaseRolesRequest buildPartial() { - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest result = - new com.google.spanner.admin.database.v1.ListDatabaseRolesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.ListDatabaseRolesRequest result = new com.google.spanner.admin.database.v1.ListDatabaseRolesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.ListDatabaseRolesRequest result) { + private void buildPartial0(com.google.spanner.admin.database.v1.ListDatabaseRolesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -469,39 +428,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListDatabaseRolesRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.ListDatabaseRolesRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListDatabaseRolesRequest)other); } else { super.mergeFrom(other); return this; @@ -509,9 +467,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.ListDatabaseRolesRequest other) { - if (other - == com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.ListDatabaseRolesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -551,31 +507,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,29 +537,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -616,25 +563,22 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -642,43 +586,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -688,25 +621,19 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -714,17 +641,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of database roles to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ @java.lang.Override @@ -732,15 +656,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of database roles to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -752,15 +673,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of database roles to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -772,8 +690,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -781,13 +697,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -796,8 +712,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -805,14 +719,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -820,8 +735,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -829,22 +742,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 3;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -852,7 +761,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -862,8 +770,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -871,23 +777,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -897,13 +801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListDatabaseRolesRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabaseRolesRequest) - private static final com.google.spanner.admin.database.v1.ListDatabaseRolesRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.ListDatabaseRolesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListDatabaseRolesRequest(); } @@ -912,27 +815,27 @@ public static com.google.spanner.admin.database.v1.ListDatabaseRolesRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListDatabaseRolesRequest> PARSER = - new com.google.protobuf.AbstractParser<ListDatabaseRolesRequest>() { - @java.lang.Override - public ListDatabaseRolesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListDatabaseRolesRequest> + PARSER = new com.google.protobuf.AbstractParser<ListDatabaseRolesRequest>() { + @java.lang.Override + public ListDatabaseRolesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListDatabaseRolesRequest> parser() { return PARSER; @@ -947,4 +850,6 @@ public com.google.protobuf.Parser<ListDatabaseRolesRequest> getParserForType() { public com.google.spanner.admin.database.v1.ListDatabaseRolesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java index b465a2a2625..68535413a63 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java @@ -1,78 +1,48 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface ListDatabaseRolesRequestOrBuilder - extends +public interface ListDatabaseRolesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListDatabaseRolesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The database whose roles should be listed. * Values are of the form * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Number of database roles to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -80,13 +50,10 @@ public interface ListDatabaseRolesRequestOrBuilder * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a @@ -94,8 +61,8 @@ public interface ListDatabaseRolesRequestOrBuilder * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java similarity index 72% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java index 7ba8415ac39..936c412365c 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The response for [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseRolesResponse} */ -public final class ListDatabaseRolesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatabaseRolesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListDatabaseRolesResponse) ListDatabaseRolesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatabaseRolesResponse.newBuilder() to construct. private ListDatabaseRolesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListDatabaseRolesResponse() { databaseRoles_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListDatabaseRolesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatabaseRolesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.class, - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.Builder.class); + com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.class, com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.Builder.class); } public static final int DATABASE_ROLES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.database.v1.DatabaseRole> databaseRoles_; /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -81,8 +59,6 @@ public java.util.List<com.google.spanner.admin.database.v1.DatabaseRole> getData return databaseRoles_; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -90,13 +66,11 @@ public java.util.List<com.google.spanner.admin.database.v1.DatabaseRole> getData * <code>repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> + public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> getDatabaseRolesOrBuilderList() { return databaseRoles_; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -108,8 +82,6 @@ public int getDatabaseRolesCount() { return databaseRoles_.size(); } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -121,8 +93,6 @@ public com.google.spanner.admin.database.v1.DatabaseRole getDatabaseRoles(int in return databaseRoles_.get(index); } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -136,12 +106,9 @@ public com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder getDatabaseRol } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -149,7 +116,6 @@ public com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder getDatabaseRol * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -174,15 +139,16 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < databaseRoles_.size(); i++) { output.writeMessage(1, databaseRoles_.get(i)); } @@ -220,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < databaseRoles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, databaseRoles_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, databaseRoles_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListDatabaseRolesResponse)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse other = - (com.google.spanner.admin.database.v1.ListDatabaseRolesResponse) obj; + com.google.spanner.admin.database.v1.ListDatabaseRolesResponse other = (com.google.spanner.admin.database.v1.ListDatabaseRolesResponse) obj; - if (!getDatabaseRolesList().equals(other.getDatabaseRolesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDatabaseRolesList() + .equals(other.getDatabaseRolesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,136 +234,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse 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.admin.database.v1.ListDatabaseRolesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListDatabaseRolesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseRolesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListDatabaseRolesResponse) com.google.spanner.admin.database.v1.ListDatabaseRolesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.class, - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.Builder.class); + com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.class, com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.Builder.class); } // Construct using com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,14 +375,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.getDefaultInstance(); } @@ -434,18 +396,14 @@ public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse build() { @java.lang.Override public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse buildPartial() { - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse result = - new com.google.spanner.admin.database.v1.ListDatabaseRolesResponse(this); + com.google.spanner.admin.database.v1.ListDatabaseRolesResponse result = new com.google.spanner.admin.database.v1.ListDatabaseRolesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.database.v1.ListDatabaseRolesResponse result) { if (databaseRolesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { databaseRoles_ = java.util.Collections.unmodifiableList(databaseRoles_); @@ -457,8 +415,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.spanner.admin.database.v1.ListDatabaseRolesResponse result) { + private void buildPartial0(com.google.spanner.admin.database.v1.ListDatabaseRolesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -469,39 +426,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListDatabaseRolesResponse) { - return mergeFrom((com.google.spanner.admin.database.v1.ListDatabaseRolesResponse) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListDatabaseRolesResponse)other); } else { super.mergeFrom(other); return this; @@ -509,9 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.ListDatabaseRolesResponse other) { - if (other - == com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.ListDatabaseRolesResponse.getDefaultInstance()) return this; if (databaseRolesBuilder_ == null) { if (!other.databaseRoles_.isEmpty()) { if (databaseRoles_.isEmpty()) { @@ -530,10 +484,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.ListDatabaseRolesR databaseRolesBuilder_ = null; databaseRoles_ = other.databaseRoles_; bitField0_ = (bitField0_ & ~0x00000001); - databaseRolesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDatabaseRolesFieldBuilder() - : null; + databaseRolesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDatabaseRolesFieldBuilder() : null; } else { databaseRolesBuilder_.addAllMessages(other.databaseRoles_); } @@ -570,33 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.database.v1.DatabaseRole m = - input.readMessage( - com.google.spanner.admin.database.v1.DatabaseRole.parser(), - extensionRegistry); - if (databaseRolesBuilder_ == null) { - ensureDatabaseRolesIsMutable(); - databaseRoles_.add(m); - } else { - databaseRolesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.database.v1.DatabaseRole m = + input.readMessage( + com.google.spanner.admin.database.v1.DatabaseRole.parser(), + extensionRegistry); + if (databaseRolesBuilder_ == null) { + ensureDatabaseRolesIsMutable(); + databaseRoles_.add(m); + } else { + databaseRolesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,38 +556,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.admin.database.v1.DatabaseRole> databaseRoles_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDatabaseRolesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - databaseRoles_ = - new java.util.ArrayList<com.google.spanner.admin.database.v1.DatabaseRole>( - databaseRoles_); + databaseRoles_ = new java.util.ArrayList<com.google.spanner.admin.database.v1.DatabaseRole>(databaseRoles_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.DatabaseRole, - com.google.spanner.admin.database.v1.DatabaseRole.Builder, - com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> - databaseRolesBuilder_; + com.google.spanner.admin.database.v1.DatabaseRole, com.google.spanner.admin.database.v1.DatabaseRole.Builder, com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> databaseRolesBuilder_; /** - * - * * <pre> * Database roles that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.DatabaseRole> - getDatabaseRolesList() { + public java.util.List<com.google.spanner.admin.database.v1.DatabaseRole> getDatabaseRolesList() { if (databaseRolesBuilder_ == null) { return java.util.Collections.unmodifiableList(databaseRoles_); } else { @@ -645,8 +585,6 @@ private void ensureDatabaseRolesIsMutable() { } } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -661,8 +599,6 @@ public int getDatabaseRolesCount() { } } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -677,8 +613,6 @@ public com.google.spanner.admin.database.v1.DatabaseRole getDatabaseRoles(int in } } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -700,8 +634,6 @@ public Builder setDatabaseRoles( return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -720,8 +652,6 @@ public Builder setDatabaseRoles( return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -742,8 +672,6 @@ public Builder addDatabaseRoles(com.google.spanner.admin.database.v1.DatabaseRol return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -765,8 +693,6 @@ public Builder addDatabaseRoles( return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -785,8 +711,6 @@ public Builder addDatabaseRoles( return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -805,8 +729,6 @@ public Builder addDatabaseRoles( return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -817,7 +739,8 @@ public Builder addAllDatabaseRoles( java.lang.Iterable<? extends com.google.spanner.admin.database.v1.DatabaseRole> values) { if (databaseRolesBuilder_ == null) { ensureDatabaseRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, databaseRoles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, databaseRoles_); onChanged(); } else { databaseRolesBuilder_.addAllMessages(values); @@ -825,8 +748,6 @@ public Builder addAllDatabaseRoles( return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -844,8 +765,6 @@ public Builder clearDatabaseRoles() { return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -863,8 +782,6 @@ public Builder removeDatabaseRoles(int index) { return this; } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -876,8 +793,6 @@ public com.google.spanner.admin.database.v1.DatabaseRole.Builder getDatabaseRole return getDatabaseRolesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -887,22 +802,19 @@ public com.google.spanner.admin.database.v1.DatabaseRole.Builder getDatabaseRole public com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder getDatabaseRolesOrBuilder( int index) { if (databaseRolesBuilder_ == null) { - return databaseRoles_.get(index); - } else { + return databaseRoles_.get(index); } else { return databaseRolesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Database roles that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> - getDatabaseRolesOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> + getDatabaseRolesOrBuilderList() { if (databaseRolesBuilder_ != null) { return databaseRolesBuilder_.getMessageOrBuilderList(); } else { @@ -910,8 +822,6 @@ public com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder getDatabaseRol } } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -919,12 +829,10 @@ public com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder getDatabaseRol * <code>repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;</code> */ public com.google.spanner.admin.database.v1.DatabaseRole.Builder addDatabaseRolesBuilder() { - return getDatabaseRolesFieldBuilder() - .addBuilder(com.google.spanner.admin.database.v1.DatabaseRole.getDefaultInstance()); + return getDatabaseRolesFieldBuilder().addBuilder( + com.google.spanner.admin.database.v1.DatabaseRole.getDefaultInstance()); } /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -933,35 +841,26 @@ public com.google.spanner.admin.database.v1.DatabaseRole.Builder addDatabaseRole */ public com.google.spanner.admin.database.v1.DatabaseRole.Builder addDatabaseRolesBuilder( int index) { - return getDatabaseRolesFieldBuilder() - .addBuilder( - index, com.google.spanner.admin.database.v1.DatabaseRole.getDefaultInstance()); + return getDatabaseRolesFieldBuilder().addBuilder( + index, com.google.spanner.admin.database.v1.DatabaseRole.getDefaultInstance()); } /** - * - * * <pre> * Database roles that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.DatabaseRole.Builder> - getDatabaseRolesBuilderList() { + public java.util.List<com.google.spanner.admin.database.v1.DatabaseRole.Builder> + getDatabaseRolesBuilderList() { return getDatabaseRolesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.DatabaseRole, - com.google.spanner.admin.database.v1.DatabaseRole.Builder, - com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> + com.google.spanner.admin.database.v1.DatabaseRole, com.google.spanner.admin.database.v1.DatabaseRole.Builder, com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> getDatabaseRolesFieldBuilder() { if (databaseRolesBuilder_ == null) { - databaseRolesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.DatabaseRole, - com.google.spanner.admin.database.v1.DatabaseRole.Builder, - com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder>( + databaseRolesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.DatabaseRole, com.google.spanner.admin.database.v1.DatabaseRole.Builder, com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder>( databaseRoles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -973,8 +872,6 @@ public com.google.spanner.admin.database.v1.DatabaseRole.Builder addDatabaseRole private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -982,13 +879,13 @@ public com.google.spanner.admin.database.v1.DatabaseRole.Builder addDatabaseRole * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -997,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -1006,14 +901,15 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1021,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -1030,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -1053,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) { * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1063,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -1072,23 +959,21 @@ public Builder clearNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1098,43 +983,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListDatabaseRolesResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabaseRolesResponse) - private static final com.google.spanner.admin.database.v1.ListDatabaseRolesResponse - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.ListDatabaseRolesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListDatabaseRolesResponse(); } - public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.ListDatabaseRolesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListDatabaseRolesResponse> PARSER = - new com.google.protobuf.AbstractParser<ListDatabaseRolesResponse>() { - @java.lang.Override - public ListDatabaseRolesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListDatabaseRolesResponse> + PARSER = new com.google.protobuf.AbstractParser<ListDatabaseRolesResponse>() { + @java.lang.Override + public ListDatabaseRolesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListDatabaseRolesResponse> parser() { return PARSER; @@ -1146,8 +1029,9 @@ public com.google.protobuf.Parser<ListDatabaseRolesResponse> getParserForType() } @java.lang.Override - public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java index 93d63bfefad..9e8beb567f3 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface ListDatabaseRolesResponseOrBuilder - extends +public interface ListDatabaseRolesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListDatabaseRolesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Database roles that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;</code> */ - java.util.List<com.google.spanner.admin.database.v1.DatabaseRole> getDatabaseRolesList(); + java.util.List<com.google.spanner.admin.database.v1.DatabaseRole> + getDatabaseRolesList(); /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -44,8 +25,6 @@ public interface ListDatabaseRolesResponseOrBuilder */ com.google.spanner.admin.database.v1.DatabaseRole getDatabaseRoles(int index); /** - * - * * <pre> * Database roles that matched the request. * </pre> @@ -54,30 +33,25 @@ public interface ListDatabaseRolesResponseOrBuilder */ int getDatabaseRolesCount(); /** - * - * * <pre> * Database roles that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> + java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder> getDatabaseRolesOrBuilderList(); /** - * - * * <pre> * Database roles that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1;</code> */ - com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder getDatabaseRolesOrBuilder(int index); + com.google.spanner.admin.database.v1.DatabaseRoleOrBuilder getDatabaseRolesOrBuilder( + int index); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -85,13 +59,10 @@ public interface ListDatabaseRolesResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles] @@ -99,8 +70,8 @@ public interface ListDatabaseRolesResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java similarity index 68% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java index 6d281f2ad5a..66f15a5adde 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabasesRequest} */ -public final class ListDatabasesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatabasesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListDatabasesRequest) ListDatabasesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatabasesRequest.newBuilder() to construct. private ListDatabasesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListDatabasesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,41 +26,34 @@ private ListDatabasesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatabasesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabasesRequest.class, - com.google.spanner.admin.database.v1.ListDatabasesRequest.Builder.class); + com.google.spanner.admin.database.v1.ListDatabasesRequest.class, com.google.spanner.admin.database.v1.ListDatabasesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -87,32 +62,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,15 +96,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -140,12 +110,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -153,7 +120,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ @java.lang.Override @@ -162,15 +128,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -178,15 +143,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -195,7 +161,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -230,7 +196,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -243,17 +210,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListDatabasesRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListDatabasesRequest other = - (com.google.spanner.admin.database.v1.ListDatabasesRequest) obj; + com.google.spanner.admin.database.v1.ListDatabasesRequest other = (com.google.spanner.admin.database.v1.ListDatabasesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,136 +246,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabasesRequest 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.admin.database.v1.ListDatabasesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabasesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListDatabasesRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListDatabasesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabasesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListDatabasesRequest) com.google.spanner.admin.database.v1.ListDatabasesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabasesRequest.class, - com.google.spanner.admin.database.v1.ListDatabasesRequest.Builder.class); + com.google.spanner.admin.database.v1.ListDatabasesRequest.class, com.google.spanner.admin.database.v1.ListDatabasesRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.ListDatabasesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor; } @java.lang.Override @@ -439,11 +403,8 @@ public com.google.spanner.admin.database.v1.ListDatabasesRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.ListDatabasesRequest buildPartial() { - com.google.spanner.admin.database.v1.ListDatabasesRequest result = - new com.google.spanner.admin.database.v1.ListDatabasesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.ListDatabasesRequest result = new com.google.spanner.admin.database.v1.ListDatabasesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -465,39 +426,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.ListDatabasesReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListDatabasesRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.ListDatabasesRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListDatabasesRequest)other); } else { super.mergeFrom(other); return this; @@ -505,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.ListDatabasesRequest other) { - if (other == com.google.spanner.admin.database.v1.ListDatabasesRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.ListDatabasesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -546,31 +505,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,28 +535,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -610,24 +560,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -635,41 +582,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -679,24 +615,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -704,17 +634,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -722,15 +649,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -742,15 +666,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -762,8 +683,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -771,13 +690,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -786,8 +705,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -795,14 +712,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -810,8 +728,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -819,22 +735,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -842,7 +754,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -852,8 +763,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -861,23 +770,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +794,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListDatabasesRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabasesRequest) private static final com.google.spanner.admin.database.v1.ListDatabasesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListDatabasesRequest(); } @@ -901,27 +808,27 @@ public static com.google.spanner.admin.database.v1.ListDatabasesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListDatabasesRequest> PARSER = - new com.google.protobuf.AbstractParser<ListDatabasesRequest>() { - @java.lang.Override - public ListDatabasesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListDatabasesRequest> + PARSER = new com.google.protobuf.AbstractParser<ListDatabasesRequest>() { + @java.lang.Override + public ListDatabasesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListDatabasesRequest> parser() { return PARSER; @@ -936,4 +843,6 @@ public com.google.protobuf.Parser<ListDatabasesRequest> getParserForType() { public com.google.spanner.admin.database.v1.ListDatabasesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java index b8cd5819beb..68aa03254af 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java @@ -1,76 +1,46 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface ListDatabasesRequestOrBuilder - extends +public interface ListDatabasesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListDatabasesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The instance whose databases should be listed. * Values are of the form `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or less, * defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -78,13 +48,10 @@ public interface ListDatabasesRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a @@ -92,8 +59,8 @@ public interface ListDatabasesRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java similarity index 72% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java index 76505b943fc..b9992cc3709 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java @@ -1,42 +1,24 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The response for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabasesResponse} */ -public final class ListDatabasesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDatabasesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.ListDatabasesResponse) ListDatabasesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDatabasesResponse.newBuilder() to construct. private ListDatabasesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListDatabasesResponse() { databases_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListDatabasesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDatabasesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabasesResponse.class, - com.google.spanner.admin.database.v1.ListDatabasesResponse.Builder.class); + com.google.spanner.admin.database.v1.ListDatabasesResponse.class, com.google.spanner.admin.database.v1.ListDatabasesResponse.Builder.class); } public static final int DATABASES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.database.v1.Database> databases_; /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -81,8 +59,6 @@ public java.util.List<com.google.spanner.admin.database.v1.Database> getDatabase return databases_; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -90,13 +66,11 @@ public java.util.List<com.google.spanner.admin.database.v1.Database> getDatabase * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> + public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> getDatabasesOrBuilderList() { return databases_; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -108,8 +82,6 @@ public int getDatabasesCount() { return databases_.size(); } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -121,8 +93,6 @@ public com.google.spanner.admin.database.v1.Database getDatabases(int index) { return databases_.get(index); } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -130,17 +100,15 @@ public com.google.spanner.admin.database.v1.Database getDatabases(int index) { * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ @java.lang.Override - public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index) { + public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuilder( + int index) { return databases_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -148,7 +116,6 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuil * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < databases_.size(); i++) { output.writeMessage(1, databases_.get(i)); } @@ -219,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < databases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, databases_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, databases_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.ListDatabasesResponse)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.ListDatabasesResponse other = - (com.google.spanner.admin.database.v1.ListDatabasesResponse) obj; + com.google.spanner.admin.database.v1.ListDatabasesResponse other = (com.google.spanner.admin.database.v1.ListDatabasesResponse) obj; - if (!getDatabasesList().equals(other.getDatabasesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDatabasesList() + .equals(other.getDatabasesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +234,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabasesResponse 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.admin.database.v1.ListDatabasesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.ListDatabasesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.ListDatabasesResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.ListDatabasesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.ListDatabasesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.ListDatabasesResponse) com.google.spanner.admin.database.v1.ListDatabasesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.ListDatabasesResponse.class, - com.google.spanner.admin.database.v1.ListDatabasesResponse.Builder.class); + com.google.spanner.admin.database.v1.ListDatabasesResponse.class, com.google.spanner.admin.database.v1.ListDatabasesResponse.Builder.class); } // Construct using com.google.spanner.admin.database.v1.ListDatabasesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor; } @java.lang.Override @@ -432,18 +396,14 @@ public com.google.spanner.admin.database.v1.ListDatabasesResponse build() { @java.lang.Override public com.google.spanner.admin.database.v1.ListDatabasesResponse buildPartial() { - com.google.spanner.admin.database.v1.ListDatabasesResponse result = - new com.google.spanner.admin.database.v1.ListDatabasesResponse(this); + com.google.spanner.admin.database.v1.ListDatabasesResponse result = new com.google.spanner.admin.database.v1.ListDatabasesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.database.v1.ListDatabasesResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.database.v1.ListDatabasesResponse result) { if (databasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { databases_ = java.util.Collections.unmodifiableList(databases_); @@ -466,39 +426,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.ListDatabasesRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.ListDatabasesResponse) { - return mergeFrom((com.google.spanner.admin.database.v1.ListDatabasesResponse) other); + return mergeFrom((com.google.spanner.admin.database.v1.ListDatabasesResponse)other); } else { super.mergeFrom(other); return this; @@ -506,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.ListDatabasesResponse other) { - if (other == com.google.spanner.admin.database.v1.ListDatabasesResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.ListDatabasesResponse.getDefaultInstance()) return this; if (databasesBuilder_ == null) { if (!other.databases_.isEmpty()) { if (databases_.isEmpty()) { @@ -526,10 +484,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.ListDatabasesRespo databasesBuilder_ = null; databases_ = other.databases_; bitField0_ = (bitField0_ & ~0x00000001); - databasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDatabasesFieldBuilder() - : null; + databasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDatabasesFieldBuilder() : null; } else { databasesBuilder_.addAllMessages(other.databases_); } @@ -566,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.database.v1.Database m = - input.readMessage( - com.google.spanner.admin.database.v1.Database.parser(), extensionRegistry); - if (databasesBuilder_ == null) { - ensureDatabasesIsMutable(); - databases_.add(m); - } else { - databasesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.database.v1.Database m = + input.readMessage( + com.google.spanner.admin.database.v1.Database.parser(), + extensionRegistry); + if (databasesBuilder_ == null) { + ensureDatabasesIsMutable(); + databases_.add(m); + } else { + databasesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,29 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.admin.database.v1.Database> databases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDatabasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - databases_ = - new java.util.ArrayList<com.google.spanner.admin.database.v1.Database>(databases_); + databases_ = new java.util.ArrayList<com.google.spanner.admin.database.v1.Database>(databases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Database, - com.google.spanner.admin.database.v1.Database.Builder, - com.google.spanner.admin.database.v1.DatabaseOrBuilder> - databasesBuilder_; + com.google.spanner.admin.database.v1.Database, com.google.spanner.admin.database.v1.Database.Builder, com.google.spanner.admin.database.v1.DatabaseOrBuilder> databasesBuilder_; /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -638,8 +585,6 @@ public java.util.List<com.google.spanner.admin.database.v1.Database> getDatabase } } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -654,8 +599,6 @@ public int getDatabasesCount() { } } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -670,15 +613,14 @@ public com.google.spanner.admin.database.v1.Database getDatabases(int index) { } } /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - public Builder setDatabases(int index, com.google.spanner.admin.database.v1.Database value) { + public Builder setDatabases( + int index, com.google.spanner.admin.database.v1.Database value) { if (databasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,8 +634,6 @@ public Builder setDatabases(int index, com.google.spanner.admin.database.v1.Data return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -712,8 +652,6 @@ public Builder setDatabases( return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -734,15 +672,14 @@ public Builder addDatabases(com.google.spanner.admin.database.v1.Database value) return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - public Builder addDatabases(int index, com.google.spanner.admin.database.v1.Database value) { + public Builder addDatabases( + int index, com.google.spanner.admin.database.v1.Database value) { if (databasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,8 +693,6 @@ public Builder addDatabases(int index, com.google.spanner.admin.database.v1.Data return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -776,8 +711,6 @@ public Builder addDatabases( return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -796,8 +729,6 @@ public Builder addDatabases( return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -808,7 +739,8 @@ public Builder addAllDatabases( java.lang.Iterable<? extends com.google.spanner.admin.database.v1.Database> values) { if (databasesBuilder_ == null) { ensureDatabasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, databases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, databases_); onChanged(); } else { databasesBuilder_.addAllMessages(values); @@ -816,8 +748,6 @@ public Builder addAllDatabases( return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -835,8 +765,6 @@ public Builder clearDatabases() { return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -854,44 +782,39 @@ public Builder removeDatabases(int index) { return this; } /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - public com.google.spanner.admin.database.v1.Database.Builder getDatabasesBuilder(int index) { + public com.google.spanner.admin.database.v1.Database.Builder getDatabasesBuilder( + int index) { return getDatabasesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index) { + public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuilder( + int index) { if (databasesBuilder_ == null) { - return databases_.get(index); - } else { + return databases_.get(index); } else { return databasesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> - getDatabasesOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> + getDatabasesOrBuilderList() { if (databasesBuilder_ != null) { return databasesBuilder_.getMessageOrBuilderList(); } else { @@ -899,8 +822,6 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuil } } /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -908,48 +829,42 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuil * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ public com.google.spanner.admin.database.v1.Database.Builder addDatabasesBuilder() { - return getDatabasesFieldBuilder() - .addBuilder(com.google.spanner.admin.database.v1.Database.getDefaultInstance()); + return getDatabasesFieldBuilder().addBuilder( + com.google.spanner.admin.database.v1.Database.getDefaultInstance()); } /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - public com.google.spanner.admin.database.v1.Database.Builder addDatabasesBuilder(int index) { - return getDatabasesFieldBuilder() - .addBuilder(index, com.google.spanner.admin.database.v1.Database.getDefaultInstance()); + public com.google.spanner.admin.database.v1.Database.Builder addDatabasesBuilder( + int index) { + return getDatabasesFieldBuilder().addBuilder( + index, com.google.spanner.admin.database.v1.Database.getDefaultInstance()); } /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.Database.Builder> - getDatabasesBuilderList() { + public java.util.List<com.google.spanner.admin.database.v1.Database.Builder> + getDatabasesBuilderList() { return getDatabasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Database, - com.google.spanner.admin.database.v1.Database.Builder, - com.google.spanner.admin.database.v1.DatabaseOrBuilder> + com.google.spanner.admin.database.v1.Database, com.google.spanner.admin.database.v1.Database.Builder, com.google.spanner.admin.database.v1.DatabaseOrBuilder> getDatabasesFieldBuilder() { if (databasesBuilder_ == null) { - databasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Database, - com.google.spanner.admin.database.v1.Database.Builder, - com.google.spanner.admin.database.v1.DatabaseOrBuilder>( - databases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + databasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.Database, com.google.spanner.admin.database.v1.Database.Builder, com.google.spanner.admin.database.v1.DatabaseOrBuilder>( + databases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); databases_ = null; } return databasesBuilder_; @@ -957,8 +872,6 @@ public com.google.spanner.admin.database.v1.Database.Builder addDatabasesBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -966,13 +879,13 @@ public com.google.spanner.admin.database.v1.Database.Builder addDatabasesBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -981,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -990,14 +901,15 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1005,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -1014,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -1037,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) { * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1047,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -1056,23 +959,21 @@ public Builder clearNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1082,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.ListDatabasesResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.ListDatabasesResponse) private static final com.google.spanner.admin.database.v1.ListDatabasesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.ListDatabasesResponse(); } @@ -1096,27 +997,27 @@ public static com.google.spanner.admin.database.v1.ListDatabasesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListDatabasesResponse> PARSER = - new com.google.protobuf.AbstractParser<ListDatabasesResponse>() { - @java.lang.Override - public ListDatabasesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListDatabasesResponse> + PARSER = new com.google.protobuf.AbstractParser<ListDatabasesResponse>() { + @java.lang.Override + public ListDatabasesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListDatabasesResponse> parser() { return PARSER; @@ -1131,4 +1032,6 @@ public com.google.protobuf.Parser<ListDatabasesResponse> getParserForType() { public com.google.spanner.admin.database.v1.ListDatabasesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java index 6c09054c001..89cf2e809a2 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface ListDatabasesResponseOrBuilder - extends +public interface ListDatabasesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.ListDatabasesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - java.util.List<com.google.spanner.admin.database.v1.Database> getDatabasesList(); + java.util.List<com.google.spanner.admin.database.v1.Database> + getDatabasesList(); /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -44,8 +25,6 @@ public interface ListDatabasesResponseOrBuilder */ com.google.spanner.admin.database.v1.Database getDatabases(int index); /** - * - * * <pre> * Databases that matched the request. * </pre> @@ -54,30 +33,25 @@ public interface ListDatabasesResponseOrBuilder */ int getDatabasesCount(); /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> + java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> getDatabasesOrBuilderList(); /** - * - * * <pre> * Databases that matched the request. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database databases = 1;</code> */ - com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuilder(int index); + com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuilder( + int index); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -85,13 +59,10 @@ public interface ListDatabasesResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more @@ -99,8 +70,8 @@ public interface ListDatabasesResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java similarity index 70% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java index 11c77e5af17..4211f0e76ce 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/common.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Encapsulates progress related information for a Cloud Spanner long * running operation. @@ -28,51 +11,47 @@ * * Protobuf type {@code google.spanner.admin.database.v1.OperationProgress} */ -public final class OperationProgress extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationProgress extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.OperationProgress) OperationProgressOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationProgress.newBuilder() to construct. private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private OperationProgress() {} + private OperationProgress() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationProgress(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_OperationProgress_fieldAccessorTable + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_OperationProgress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.OperationProgress.class, - com.google.spanner.admin.database.v1.OperationProgress.Builder.class); + com.google.spanner.admin.database.v1.OperationProgress.class, com.google.spanner.admin.database.v1.OperationProgress.Builder.class); } public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1; private int progressPercent_ = 0; /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @return The progressPercent. */ @java.lang.Override @@ -83,14 +62,11 @@ public int getProgressPercent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -98,14 +74,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ @java.lang.Override @@ -113,8 +86,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * * <pre> * Time the request was received. * </pre> @@ -129,15 +100,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -145,15 +113,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ @java.lang.Override @@ -161,8 +126,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -176,7 +139,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -208,13 +171,16 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -224,22 +190,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.OperationProgress)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.OperationProgress other = - (com.google.spanner.admin.database.v1.OperationProgress) obj; + com.google.spanner.admin.database.v1.OperationProgress other = (com.google.spanner.admin.database.v1.OperationProgress) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,104 +236,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.OperationProgress parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.OperationProgress parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.OperationProgress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.OperationProgress 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.admin.database.v1.OperationProgress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.OperationProgress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.OperationProgress parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.OperationProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.OperationProgress parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.OperationProgress parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.OperationProgress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.OperationProgress parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.OperationProgress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.OperationProgress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.OperationProgress prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.OperationProgress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Encapsulates progress related information for a Cloud Spanner long * running operation. @@ -373,32 +335,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.OperationProgress} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.OperationProgress) com.google.spanner.admin.database.v1.OperationProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_OperationProgress_fieldAccessorTable + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_OperationProgress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.OperationProgress.class, - com.google.spanner.admin.database.v1.OperationProgress.Builder.class); + com.google.spanner.admin.database.v1.OperationProgress.class, com.google.spanner.admin.database.v1.OperationProgress.Builder.class); } // Construct using com.google.spanner.admin.database.v1.OperationProgress.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.CommonProto - .internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.CommonProto.internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor; } @java.lang.Override @@ -439,11 +402,8 @@ public com.google.spanner.admin.database.v1.OperationProgress build() { @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgress buildPartial() { - com.google.spanner.admin.database.v1.OperationProgress result = - new com.google.spanner.admin.database.v1.OperationProgress(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.OperationProgress result = new com.google.spanner.admin.database.v1.OperationProgress(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -454,10 +414,14 @@ private void buildPartial0(com.google.spanner.admin.database.v1.OperationProgres result.progressPercent_ = progressPercent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } } @@ -465,39 +429,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.OperationProgres public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.OperationProgress) { - return mergeFrom((com.google.spanner.admin.database.v1.OperationProgress) other); + return mergeFrom((com.google.spanner.admin.database.v1.OperationProgress)other); } else { super.mergeFrom(other); return this; @@ -505,8 +468,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.OperationProgress other) { - if (other == com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) return this; if (other.getProgressPercent() != 0) { setProgressPercent(other.getProgressPercent()); } @@ -542,31 +504,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - progressPercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,20 +538,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int progressPercent_; + private int progressPercent_ ; /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @return The progressPercent. */ @java.lang.Override @@ -597,15 +555,12 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -617,15 +572,12 @@ public Builder setProgressPercent(int value) { return this; } /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -637,33 +589,24 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -674,8 +617,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * * <pre> * Time the request was received. * </pre> @@ -696,15 +637,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -715,8 +655,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * * <pre> * Time the request was received. * </pre> @@ -725,9 +663,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -740,8 +678,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Time the request was received. * </pre> @@ -759,8 +695,6 @@ public Builder clearStartTime() { return this; } /** - * - * * <pre> * Time the request was received. * </pre> @@ -773,8 +707,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Time the request was received. * </pre> @@ -785,12 +717,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * * <pre> * Time the request was received. * </pre> @@ -798,17 +729,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * <code>.google.protobuf.Timestamp start_time = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -816,35 +744,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -855,8 +774,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -878,8 +795,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -887,7 +802,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp end_time = 3;</code> */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -898,8 +814,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -909,9 +823,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -924,8 +838,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -944,8 +856,6 @@ public Builder clearEndTime() { return this; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -959,8 +869,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -972,12 +880,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -986,24 +893,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * <code>.google.protobuf.Timestamp end_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1013,12 +917,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.OperationProgress) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.OperationProgress) private static final com.google.spanner.admin.database.v1.OperationProgress DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.OperationProgress(); } @@ -1027,27 +931,27 @@ public static com.google.spanner.admin.database.v1.OperationProgress getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<OperationProgress> PARSER = - new com.google.protobuf.AbstractParser<OperationProgress>() { - @java.lang.Override - public OperationProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<OperationProgress> + PARSER = new com.google.protobuf.AbstractParser<OperationProgress>() { + @java.lang.Override + public OperationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<OperationProgress> parser() { return PARSER; @@ -1062,4 +966,6 @@ public com.google.protobuf.Parser<OperationProgress> getParserForType() { public com.google.spanner.admin.database.v1.OperationProgress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java similarity index 72% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java index 2636bad9ba3..cc929a5437a 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgressOrBuilder.java @@ -1,69 +1,42 @@ -/* - * 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/admin/database/v1/common.proto package com.google.spanner.admin.database.v1; -public interface OperationProgressOrBuilder - extends +public interface OperationProgressOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.OperationProgress) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * * <pre> * Time the request was received. * </pre> @@ -73,34 +46,26 @@ public interface OperationProgressOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java similarity index 65% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java index 08529ae165f..4b5c8b1a57f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Metadata type for the long-running operation used to track the progress * of optimizations performed on a newly restored database. This long-running @@ -30,55 +13,48 @@ * * Protobuf type {@code google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata} */ -public final class OptimizeRestoredDatabaseMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OptimizeRestoredDatabaseMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) OptimizeRestoredDatabaseMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OptimizeRestoredDatabaseMetadata.newBuilder() to construct. - private OptimizeRestoredDatabaseMetadata( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private OptimizeRestoredDatabaseMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private OptimizeRestoredDatabaseMetadata() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OptimizeRestoredDatabaseMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.class, - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.Builder.class); + com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.class, com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The name. */ @java.lang.Override @@ -87,29 +63,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,14 +96,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROGRESS_FIELD_NUMBER = 2; private com.google.spanner.admin.database.v1.OperationProgress progress_; /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ @java.lang.Override @@ -135,25 +108,18 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> @@ -162,13 +128,10 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,7 +143,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgress()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -210,18 +175,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata other = - (com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) obj; + com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata other = (com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -246,105 +212,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata 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.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata - 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.admin.database.v1.OptimizeRestoredDatabaseMetadata 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.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the long-running operation used to track the progress * of optimizations performed on a newly restored database. This long-running @@ -354,33 +313,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.class, - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.Builder.class); + com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.class, com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.Builder.class); } - // Construct using - // com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -395,16 +354,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata - getDefaultInstanceForType() { - return com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata - .getDefaultInstance(); + public com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata getDefaultInstanceForType() { + return com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.getDefaultInstance(); } @java.lang.Override @@ -418,23 +375,21 @@ public com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata bui @java.lang.Override public com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata buildPartial() { - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata result = - new com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata result = new com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata result) { + private void buildPartial0(com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } } @@ -442,51 +397,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) { - return mergeFrom( - (com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) other); + return mergeFrom((com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata other) { - if (other - == com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata other) { + if (other == com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -521,25 +471,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -549,25 +498,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -576,21 +522,20 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -598,35 +543,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -636,21 +574,17 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -660,47 +594,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.spanner.admin.database.v1.OperationProgress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> - progressBuilder_; + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> progressBuilder_; /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> @@ -721,8 +642,6 @@ public Builder setProgress(com.google.spanner.admin.database.v1.OperationProgres return this; } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> @@ -741,8 +660,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> @@ -751,10 +668,9 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && progress_ != null - && progress_ - != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + progress_ != null && + progress_ != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -767,8 +683,6 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr return this; } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> @@ -786,8 +700,6 @@ public Builder clearProgress() { return this; } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> @@ -800,8 +712,6 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres return getProgressFieldBuilder().getBuilder(); } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> @@ -812,14 +722,11 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } } /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> @@ -827,24 +734,21 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -854,43 +758,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) - private static final com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata(); } - public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<OptimizeRestoredDatabaseMetadata> PARSER = - new com.google.protobuf.AbstractParser<OptimizeRestoredDatabaseMetadata>() { - @java.lang.Override - public OptimizeRestoredDatabaseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<OptimizeRestoredDatabaseMetadata> + PARSER = new com.google.protobuf.AbstractParser<OptimizeRestoredDatabaseMetadata>() { + @java.lang.Override + public OptimizeRestoredDatabaseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<OptimizeRestoredDatabaseMetadata> parser() { return PARSER; @@ -902,8 +804,9 @@ public com.google.protobuf.Parser<OptimizeRestoredDatabaseMetadata> getParserFor } @java.lang.Override - public com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java index 1ef0a9fbae9..615d387a94e 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadataOrBuilder.java @@ -1,80 +1,51 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface OptimizeRestoredDatabaseMetadataOrBuilder - extends +public interface OptimizeRestoredDatabaseMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Name of the restored database being optimized. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ com.google.spanner.admin.database.v1.OperationProgress getProgress(); /** - * - * * <pre> * The progress of the post-restore optimizations. * </pre> diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java similarity index 61% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java index 12df82b01d7..5da7219e5ec 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java @@ -1,43 +1,24 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Encryption configuration for the restored database. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig} */ -public final class RestoreDatabaseEncryptionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RestoreDatabaseEncryptionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) RestoreDatabaseEncryptionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RestoreDatabaseEncryptionConfig.newBuilder() to construct. - private RestoreDatabaseEncryptionConfig( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private RestoreDatabaseEncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private RestoreDatabaseEncryptionConfig() { encryptionType_ = 0; kmsKeyName_ = ""; @@ -45,39 +26,34 @@ private RestoreDatabaseEncryptionConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RestoreDatabaseEncryptionConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.class, - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder.class); + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.class, com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder.class); } /** - * - * * <pre> * Encryption types for the database to be restored. * </pre> * - * Protobuf enum {@code - * google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType} + * Protobuf enum {@code google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType} */ - public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { + public enum EncryptionType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Unspecified. Do not use. * </pre> @@ -86,8 +62,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_TYPE_UNSPECIFIED(0), /** - * - * * <pre> * This is the default option when * [encryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig] is not specified. @@ -97,8 +71,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION(1), /** - * - * * <pre> * Use Google default encryption. * </pre> @@ -107,8 +79,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ GOOGLE_DEFAULT_ENCRYPTION(2), /** - * - * * <pre> * Use customer managed encryption. If specified, `kms_key_name` must * must contain a valid Cloud KMS key. @@ -121,8 +91,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Unspecified. Do not use. * </pre> @@ -131,8 +99,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCRYPTION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * This is the default option when * [encryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig] is not specified. @@ -142,8 +108,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION_VALUE = 1; /** - * - * * <pre> * Use Google default encryption. * </pre> @@ -152,8 +116,6 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_DEFAULT_ENCRYPTION_VALUE = 2; /** - * - * * <pre> * Use customer managed encryption. If specified, `kms_key_name` must * must contain a valid Cloud KMS key. @@ -163,6 +125,7 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOMER_MANAGED_ENCRYPTION_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,53 +150,50 @@ public static EncryptionType valueOf(int value) { */ public static EncryptionType forNumber(int value) { switch (value) { - case 0: - return ENCRYPTION_TYPE_UNSPECIFIED; - case 1: - return USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION; - case 2: - return GOOGLE_DEFAULT_ENCRYPTION; - case 3: - return CUSTOMER_MANAGED_ENCRYPTION; - default: - return null; + case 0: return ENCRYPTION_TYPE_UNSPECIFIED; + case 1: return USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION; + case 2: return GOOGLE_DEFAULT_ENCRYPTION; + case 3: return CUSTOMER_MANAGED_ENCRYPTION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<EncryptionType> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<EncryptionType> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + EncryptionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<EncryptionType>() { + public EncryptionType findValueByNumber(int number) { + return EncryptionType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<EncryptionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<EncryptionType>() { - public EncryptionType findValueByNumber(int number) { - return EncryptionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDescriptor().getEnumTypes().get(0); } private static final EncryptionType[] VALUES = values(); - public static EncryptionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EncryptionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -253,54 +213,33 @@ private EncryptionType(int value) { public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 1; private int encryptionType_ = 0; /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ - @java.lang.Override - public int getEncryptionTypeValue() { + @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - getEncryptionType() { - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType result = - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - .forNumber(encryptionType_); - return result == null - ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType getEncryptionType() { + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType result = com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType.forNumber(encryptionType_); + return result == null ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType.UNRECOGNIZED : result; } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -309,10 +248,7 @@ public int getEncryptionTypeValue() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ @java.lang.Override @@ -321,15 +257,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -338,18 +273,17 @@ public java.lang.String getKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -358,7 +292,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -370,11 +303,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (encryptionType_ - != com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - .ENCRYPTION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (encryptionType_ != com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, encryptionType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { @@ -389,11 +320,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encryptionType_ - != com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - .ENCRYPTION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encryptionType_); + if (encryptionType_ != com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, encryptionType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); @@ -406,16 +335,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig other = - (com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) obj; + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig other = (com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) obj; if (encryptionType_ != other.encryptionType_) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,138 +366,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig 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.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - 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.admin.database.v1.RestoreDatabaseEncryptionConfig 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.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Encryption configuration for the restored database. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.class, - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder.class); + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.class, com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder.class); } - // Construct using - // com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -579,16 +501,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - getDefaultInstanceForType() { - return com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - .getDefaultInstance(); + public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig getDefaultInstanceForType() { + return com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance(); } @java.lang.Override @@ -602,17 +522,13 @@ public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig buil @java.lang.Override public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig buildPartial() { - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig result = - new com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig result = new com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig result) { + private void buildPartial0(com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.encryptionType_ = encryptionType_; @@ -626,51 +542,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) { - return mergeFrom( - (com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) other); + return mergeFrom((com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig other) { - if (other - == com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig other) { + if (other == com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance()) return this; if (other.encryptionType_ != 0) { setEncryptionTypeValue(other.getEncryptionTypeValue()); } @@ -705,25 +616,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - encryptionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + encryptionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,38 +641,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int encryptionType_ = 0; /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ - @java.lang.Override - public int getEncryptionTypeValue() { + @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param value The enum numeric value on the wire for encryptionType to set. * @return This builder for chaining. */ @@ -775,45 +671,28 @@ public Builder setEncryptionTypeValue(int value) { return this; } /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - getEncryptionType() { - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType result = - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - .forNumber(encryptionType_); - return result == null - ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - .UNRECOGNIZED - : result; + public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType getEncryptionType() { + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType result = com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType.forNumber(encryptionType_); + return result == null ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType.UNRECOGNIZED : result; } /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param value The encryptionType to set. * @return This builder for chaining. */ - public Builder setEncryptionType( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType value) { + public Builder setEncryptionType(com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType value) { if (value == null) { throw new NullPointerException(); } @@ -823,16 +702,11 @@ public Builder setEncryptionType( return this; } /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return This builder for chaining. */ public Builder clearEncryptionType() { @@ -844,8 +718,6 @@ public Builder clearEncryptionType() { private java.lang.Object kmsKeyName_ = ""; /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -854,16 +726,14 @@ public Builder clearEncryptionType() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -872,8 +742,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -882,17 +750,16 @@ public java.lang.String getKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -900,8 +767,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -910,25 +775,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -937,10 +796,7 @@ public Builder setKmsKeyName(java.lang.String value) { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -950,8 +806,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -960,26 +814,22 @@ public Builder clearKmsKeyName() { * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,43 +839,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) - private static final com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig(); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<RestoreDatabaseEncryptionConfig> PARSER = - new com.google.protobuf.AbstractParser<RestoreDatabaseEncryptionConfig>() { - @java.lang.Override - public RestoreDatabaseEncryptionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<RestoreDatabaseEncryptionConfig> + PARSER = new com.google.protobuf.AbstractParser<RestoreDatabaseEncryptionConfig>() { + @java.lang.Override + public RestoreDatabaseEncryptionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<RestoreDatabaseEncryptionConfig> parser() { return PARSER; @@ -1037,8 +885,9 @@ public com.google.protobuf.Parser<RestoreDatabaseEncryptionConfig> getParserForT } @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java similarity index 54% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java index 03e5beb45fa..7ee03fbb6fa 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java @@ -1,61 +1,32 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface RestoreDatabaseEncryptionConfigOrBuilder - extends +public interface RestoreDatabaseEncryptionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The enum numeric value on the wire for encryptionType. */ int getEncryptionTypeValue(); /** - * - * * <pre> * Required. The encryption type of the restored database. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The encryptionType. */ - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType - getEncryptionType(); + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType getEncryptionType(); /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -64,16 +35,11 @@ public interface RestoreDatabaseEncryptionConfigOrBuilder * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * * <pre> * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored * database. This field should be set only when @@ -82,11 +48,9 @@ public interface RestoreDatabaseEncryptionConfigOrBuilder * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. * </pre> * - * <code> - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }</code> * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java similarity index 77% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java index 427be919b66..f2d36ddd177 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Metadata type for the long-running operation returned by * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.database.v1.RestoreDatabaseMetadata} */ -public final class RestoreDatabaseMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RestoreDatabaseMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.RestoreDatabaseMetadata) RestoreDatabaseMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RestoreDatabaseMetadata.newBuilder() to construct. private RestoreDatabaseMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private RestoreDatabaseMetadata() { name_ = ""; sourceType_ = 0; @@ -46,38 +28,33 @@ private RestoreDatabaseMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RestoreDatabaseMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.class, - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.Builder.class); + com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.class, com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.Builder.class); } private int sourceInfoCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object sourceInfo_; - public enum SourceInfoCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKUP_INFO(3), SOURCEINFO_NOT_SET(0); private final int value; - private SourceInfoCase(int value) { this.value = value; } @@ -93,37 +70,31 @@ public static SourceInfoCase valueOf(int value) { public static SourceInfoCase forNumber(int value) { switch (value) { - case 3: - return BACKUP_INFO; - case 0: - return SOURCEINFO_NOT_SET; - default: - return null; + case 3: return BACKUP_INFO; + case 0: return SOURCEINFO_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceInfoCase getSourceInfoCase() { - return SourceInfoCase.forNumber(sourceInfoCase_); + public SourceInfoCase + getSourceInfoCase() { + return SourceInfoCase.forNumber( + sourceInfoCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The name. */ @java.lang.Override @@ -132,29 +103,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,50 +136,36 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SOURCE_TYPE_FIELD_NUMBER = 2; private int sourceType_ = 0; /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @return The enum numeric value on the wire for sourceType. */ - @java.lang.Override - public int getSourceTypeValue() { + @java.lang.Override public int getSourceTypeValue() { return sourceType_; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @return The sourceType. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreSourceType getSourceType() { - com.google.spanner.admin.database.v1.RestoreSourceType result = - com.google.spanner.admin.database.v1.RestoreSourceType.forNumber(sourceType_); - return result == null - ? com.google.spanner.admin.database.v1.RestoreSourceType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.RestoreSourceType getSourceType() { + com.google.spanner.admin.database.v1.RestoreSourceType result = com.google.spanner.admin.database.v1.RestoreSourceType.forNumber(sourceType_); + return result == null ? com.google.spanner.admin.database.v1.RestoreSourceType.UNRECOGNIZED : result; } public static final int BACKUP_INFO_FIELD_NUMBER = 3; /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 3;</code> - * * @return Whether the backupInfo field is set. */ @java.lang.Override @@ -216,26 +173,21 @@ public boolean hasBackupInfo() { return sourceInfoCase_ == 3; } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 3;</code> - * * @return The backupInfo. */ @java.lang.Override public com.google.spanner.admin.database.v1.BackupInfo getBackupInfo() { if (sourceInfoCase_ == 3) { - return (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_; + return (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_; } return com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance(); } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -245,7 +197,7 @@ public com.google.spanner.admin.database.v1.BackupInfo getBackupInfo() { @java.lang.Override public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrBuilder() { if (sourceInfoCase_ == 3) { - return (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_; + return (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_; } return com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance(); } @@ -253,8 +205,6 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB public static final int PROGRESS_FIELD_NUMBER = 4; private com.google.spanner.admin.database.v1.OperationProgress progress_; /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -262,7 +212,6 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 4;</code> - * * @return Whether the progress field is set. */ @java.lang.Override @@ -270,8 +219,6 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -279,18 +226,13 @@ public boolean hasProgress() { * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 4;</code> - * * @return The progress. */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -301,16 +243,12 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } public static final int CANCEL_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp cancelTime_; /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -326,7 +264,6 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 5;</code> - * * @return Whether the cancelTime field is set. */ @java.lang.Override @@ -334,8 +271,6 @@ public boolean hasCancelTime() { return cancelTime_ != null; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -351,7 +286,6 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 5;</code> - * * @return The cancelTime. */ @java.lang.Override @@ -359,8 +293,6 @@ public com.google.protobuf.Timestamp getCancelTime() { return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -383,12 +315,9 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { } public static final int OPTIMIZE_DATABASE_OPERATION_NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object optimizeDatabaseOperationName_ = ""; /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -404,7 +333,6 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @return The optimizeDatabaseOperationName. */ @java.lang.Override @@ -413,15 +341,14 @@ public java.lang.String getOptimizeDatabaseOperationName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); optimizeDatabaseOperationName_ = s; return s; } } /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -437,15 +364,16 @@ public java.lang.String getOptimizeDatabaseOperationName() { * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @return The bytes for optimizeDatabaseOperationName. */ @java.lang.Override - public com.google.protobuf.ByteString getOptimizeDatabaseOperationNameBytes() { + public com.google.protobuf.ByteString + getOptimizeDatabaseOperationNameBytes() { java.lang.Object ref = optimizeDatabaseOperationName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); optimizeDatabaseOperationName_ = b; return b; } else { @@ -454,7 +382,6 @@ public com.google.protobuf.ByteString getOptimizeDatabaseOperationNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -466,12 +393,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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 (sourceType_ - != com.google.spanner.admin.database.v1.RestoreSourceType.TYPE_UNSPECIFIED.getNumber()) { + if (sourceType_ != com.google.spanner.admin.database.v1.RestoreSourceType.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, sourceType_); } if (sourceInfoCase_ == 3) { @@ -498,25 +425,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (sourceType_ - != com.google.spanner.admin.database.v1.RestoreSourceType.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, sourceType_); + if (sourceType_ != com.google.spanner.admin.database.v1.RestoreSourceType.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, sourceType_); } if (sourceInfoCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getProgress()); } if (cancelTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCancelTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCancelTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optimizeDatabaseOperationName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 6, optimizeDatabaseOperationName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, optimizeDatabaseOperationName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -526,30 +452,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.RestoreDatabaseMetadata)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata other = - (com.google.spanner.admin.database.v1.RestoreDatabaseMetadata) obj; + com.google.spanner.admin.database.v1.RestoreDatabaseMetadata other = (com.google.spanner.admin.database.v1.RestoreDatabaseMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (sourceType_ != other.sourceType_) return false; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (hasCancelTime() != other.hasCancelTime()) return false; if (hasCancelTime()) { - if (!getCancelTime().equals(other.getCancelTime())) return false; + if (!getCancelTime() + .equals(other.getCancelTime())) return false; } - if (!getOptimizeDatabaseOperationName().equals(other.getOptimizeDatabaseOperationName())) - return false; + if (!getOptimizeDatabaseOperationName() + .equals(other.getOptimizeDatabaseOperationName())) return false; if (!getSourceInfoCase().equals(other.getSourceInfoCase())) return false; switch (sourceInfoCase_) { case 3: - if (!getBackupInfo().equals(other.getBackupInfo())) return false; + if (!getBackupInfo() + .equals(other.getBackupInfo())) return false; break; case 0: default: @@ -593,104 +522,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata 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.admin.database.v1.RestoreDatabaseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.RestoreDatabaseMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the long-running operation returned by * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase]. @@ -698,32 +621,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.RestoreDatabaseMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.RestoreDatabaseMetadata) com.google.spanner.admin.database.v1.RestoreDatabaseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.class, - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.Builder.class); + com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.class, com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.Builder.class); } // Construct using com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -750,14 +674,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreDatabaseMetadata - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.RestoreDatabaseMetadata getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.getDefaultInstance(); } @@ -772,18 +695,14 @@ public com.google.spanner.admin.database.v1.RestoreDatabaseMetadata build() { @java.lang.Override public com.google.spanner.admin.database.v1.RestoreDatabaseMetadata buildPartial() { - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata result = - new com.google.spanner.admin.database.v1.RestoreDatabaseMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.RestoreDatabaseMetadata result = new com.google.spanner.admin.database.v1.RestoreDatabaseMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata result) { + private void buildPartial0(com.google.spanner.admin.database.v1.RestoreDatabaseMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -792,21 +711,25 @@ private void buildPartial0( result.sourceType_ = sourceType_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + result.cancelTime_ = cancelTimeBuilder_ == null + ? cancelTime_ + : cancelTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.optimizeDatabaseOperationName_ = optimizeDatabaseOperationName_; } } - private void buildPartialOneofs( - com.google.spanner.admin.database.v1.RestoreDatabaseMetadata result) { + private void buildPartialOneofs(com.google.spanner.admin.database.v1.RestoreDatabaseMetadata result) { result.sourceInfoCase_ = sourceInfoCase_; result.sourceInfo_ = this.sourceInfo_; - if (sourceInfoCase_ == 3 && backupInfoBuilder_ != null) { + if (sourceInfoCase_ == 3 && + backupInfoBuilder_ != null) { result.sourceInfo_ = backupInfoBuilder_.build(); } } @@ -815,39 +738,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.RestoreDatabaseMetadata) { - return mergeFrom((com.google.spanner.admin.database.v1.RestoreDatabaseMetadata) other); + return mergeFrom((com.google.spanner.admin.database.v1.RestoreDatabaseMetadata)other); } else { super.mergeFrom(other); return this; @@ -855,9 +777,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.RestoreDatabaseMetadata other) { - if (other - == com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -878,15 +798,13 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.RestoreDatabaseMet onChanged(); } switch (other.getSourceInfoCase()) { - case BACKUP_INFO: - { - mergeBackupInfo(other.getBackupInfo()); - break; - } - case SOURCEINFO_NOT_SET: - { - break; - } + case BACKUP_INFO: { + mergeBackupInfo(other.getBackupInfo()); + break; + } + case SOURCEINFO_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -914,49 +832,48 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - sourceType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getBackupInfoFieldBuilder().getBuilder(), extensionRegistry); - sourceInfoCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getCancelTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - optimizeDatabaseOperationName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + sourceType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getBackupInfoFieldBuilder().getBuilder(), + extensionRegistry); + sourceInfoCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getCancelTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + optimizeDatabaseOperationName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -966,12 +883,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceInfoCase_ = 0; private java.lang.Object sourceInfo_; - - public SourceInfoCase getSourceInfoCase() { - return SourceInfoCase.forNumber(sourceInfoCase_); + public SourceInfoCase + getSourceInfoCase() { + return SourceInfoCase.forNumber( + sourceInfoCase_); } public Builder clearSourceInfo() { @@ -985,20 +902,18 @@ public Builder clearSourceInfo() { private java.lang.Object name_ = ""; /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1007,21 +922,20 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1029,35 +943,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -1067,21 +974,17 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1091,29 +994,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int sourceType_ = 0; /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @return The enum numeric value on the wire for sourceType. */ - @java.lang.Override - public int getSourceTypeValue() { + @java.lang.Override public int getSourceTypeValue() { return sourceType_; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @param value The enum numeric value on the wire for sourceType to set. * @return This builder for chaining. */ @@ -1124,33 +1020,24 @@ public Builder setSourceTypeValue(int value) { return this; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @return The sourceType. */ @java.lang.Override public com.google.spanner.admin.database.v1.RestoreSourceType getSourceType() { - com.google.spanner.admin.database.v1.RestoreSourceType result = - com.google.spanner.admin.database.v1.RestoreSourceType.forNumber(sourceType_); - return result == null - ? com.google.spanner.admin.database.v1.RestoreSourceType.UNRECOGNIZED - : result; + com.google.spanner.admin.database.v1.RestoreSourceType result = com.google.spanner.admin.database.v1.RestoreSourceType.forNumber(sourceType_); + return result == null ? com.google.spanner.admin.database.v1.RestoreSourceType.UNRECOGNIZED : result; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @param value The sourceType to set. * @return This builder for chaining. */ @@ -1164,14 +1051,11 @@ public Builder setSourceType(com.google.spanner.admin.database.v1.RestoreSourceT return this; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @return This builder for chaining. */ public Builder clearSourceType() { @@ -1182,19 +1066,13 @@ public Builder clearSourceType() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.BackupInfo, - com.google.spanner.admin.database.v1.BackupInfo.Builder, - com.google.spanner.admin.database.v1.BackupInfoOrBuilder> - backupInfoBuilder_; + com.google.spanner.admin.database.v1.BackupInfo, com.google.spanner.admin.database.v1.BackupInfo.Builder, com.google.spanner.admin.database.v1.BackupInfoOrBuilder> backupInfoBuilder_; /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 3;</code> - * * @return Whether the backupInfo field is set. */ @java.lang.Override @@ -1202,14 +1080,11 @@ public boolean hasBackupInfo() { return sourceInfoCase_ == 3; } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 3;</code> - * * @return The backupInfo. */ @java.lang.Override @@ -1227,8 +1102,6 @@ public com.google.spanner.admin.database.v1.BackupInfo getBackupInfo() { } } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -1249,8 +1122,6 @@ public Builder setBackupInfo(com.google.spanner.admin.database.v1.BackupInfo val return this; } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -1269,8 +1140,6 @@ public Builder setBackupInfo( return this; } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -1279,14 +1148,10 @@ public Builder setBackupInfo( */ public Builder mergeBackupInfo(com.google.spanner.admin.database.v1.BackupInfo value) { if (backupInfoBuilder_ == null) { - if (sourceInfoCase_ == 3 - && sourceInfo_ - != com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance()) { - sourceInfo_ = - com.google.spanner.admin.database.v1.BackupInfo.newBuilder( - (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_) - .mergeFrom(value) - .buildPartial(); + if (sourceInfoCase_ == 3 && + sourceInfo_ != com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance()) { + sourceInfo_ = com.google.spanner.admin.database.v1.BackupInfo.newBuilder((com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_) + .mergeFrom(value).buildPartial(); } else { sourceInfo_ = value; } @@ -1302,8 +1167,6 @@ public Builder mergeBackupInfo(com.google.spanner.admin.database.v1.BackupInfo v return this; } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -1327,8 +1190,6 @@ public Builder clearBackupInfo() { return this; } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -1339,8 +1200,6 @@ public com.google.spanner.admin.database.v1.BackupInfo.Builder getBackupInfoBuil return getBackupInfoFieldBuilder().getBuilder(); } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -1359,8 +1218,6 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB } } /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -1368,19 +1225,14 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.BackupInfo, - com.google.spanner.admin.database.v1.BackupInfo.Builder, - com.google.spanner.admin.database.v1.BackupInfoOrBuilder> + com.google.spanner.admin.database.v1.BackupInfo, com.google.spanner.admin.database.v1.BackupInfo.Builder, com.google.spanner.admin.database.v1.BackupInfoOrBuilder> getBackupInfoFieldBuilder() { if (backupInfoBuilder_ == null) { if (!(sourceInfoCase_ == 3)) { sourceInfo_ = com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance(); } - backupInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.BackupInfo, - com.google.spanner.admin.database.v1.BackupInfo.Builder, - com.google.spanner.admin.database.v1.BackupInfoOrBuilder>( + backupInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.BackupInfo, com.google.spanner.admin.database.v1.BackupInfo.Builder, com.google.spanner.admin.database.v1.BackupInfoOrBuilder>( (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_, getParentForChildren(), isClean()); @@ -1393,13 +1245,8 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB private com.google.spanner.admin.database.v1.OperationProgress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> - progressBuilder_; + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> progressBuilder_; /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1407,15 +1254,12 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 4;</code> - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1423,21 +1267,16 @@ public boolean hasProgress() { * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 4;</code> - * * @return The progress. */ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1460,8 +1299,6 @@ public Builder setProgress(com.google.spanner.admin.database.v1.OperationProgres return this; } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1482,8 +1319,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1494,10 +1329,9 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && progress_ != null - && progress_ - != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + progress_ != null && + progress_ != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -1510,8 +1344,6 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr return this; } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1531,8 +1363,6 @@ public Builder clearProgress() { return this; } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1547,8 +1377,6 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres return getProgressFieldBuilder().getBuilder(); } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1561,14 +1389,11 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } } /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -1578,17 +1403,14 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * <code>.google.spanner.admin.database.v1.OperationProgress progress = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; @@ -1596,13 +1418,8 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre private com.google.protobuf.Timestamp cancelTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cancelTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelTimeBuilder_; /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1618,15 +1435,12 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 5;</code> - * * @return Whether the cancelTime field is set. */ public boolean hasCancelTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1642,21 +1456,16 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 5;</code> - * * @return The cancelTime. */ public com.google.protobuf.Timestamp getCancelTime() { if (cancelTimeBuilder_ == null) { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } else { return cancelTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1687,8 +1496,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1705,7 +1512,8 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp cancel_time = 5;</code> */ - public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCancelTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelTimeBuilder_ == null) { cancelTime_ = builderForValue.build(); } else { @@ -1716,8 +1524,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1736,9 +1542,9 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { if (cancelTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && cancelTime_ != null - && cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + cancelTime_ != null && + cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelTimeBuilder().mergeFrom(value); } else { cancelTime_ = value; @@ -1751,8 +1557,6 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1780,8 +1584,6 @@ public Builder clearCancelTime() { return this; } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1804,8 +1606,6 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() { return getCancelTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1826,14 +1626,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { if (cancelTimeBuilder_ != null) { return cancelTimeBuilder_.getMessageOrBuilder(); } else { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } } /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -1851,17 +1648,14 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * <code>.google.protobuf.Timestamp cancel_time = 5;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelTimeFieldBuilder() { if (cancelTimeBuilder_ == null) { - cancelTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCancelTime(), getParentForChildren(), isClean()); + cancelTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCancelTime(), + getParentForChildren(), + isClean()); cancelTime_ = null; } return cancelTimeBuilder_; @@ -1869,8 +1663,6 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { private java.lang.Object optimizeDatabaseOperationName_ = ""; /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -1886,13 +1678,13 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @return The optimizeDatabaseOperationName. */ public java.lang.String getOptimizeDatabaseOperationName() { java.lang.Object ref = optimizeDatabaseOperationName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); optimizeDatabaseOperationName_ = s; return s; @@ -1901,8 +1693,6 @@ public java.lang.String getOptimizeDatabaseOperationName() { } } /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -1918,14 +1708,15 @@ public java.lang.String getOptimizeDatabaseOperationName() { * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @return The bytes for optimizeDatabaseOperationName. */ - public com.google.protobuf.ByteString getOptimizeDatabaseOperationNameBytes() { + public com.google.protobuf.ByteString + getOptimizeDatabaseOperationNameBytes() { java.lang.Object ref = optimizeDatabaseOperationName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); optimizeDatabaseOperationName_ = b; return b; } else { @@ -1933,8 +1724,6 @@ public com.google.protobuf.ByteString getOptimizeDatabaseOperationNameBytes() { } } /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -1950,22 +1739,18 @@ public com.google.protobuf.ByteString getOptimizeDatabaseOperationNameBytes() { * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @param value The optimizeDatabaseOperationName to set. * @return This builder for chaining. */ - public Builder setOptimizeDatabaseOperationName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOptimizeDatabaseOperationName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } optimizeDatabaseOperationName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -1981,7 +1766,6 @@ public Builder setOptimizeDatabaseOperationName(java.lang.String value) { * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @return This builder for chaining. */ public Builder clearOptimizeDatabaseOperationName() { @@ -1991,8 +1775,6 @@ public Builder clearOptimizeDatabaseOperationName() { return this; } /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -2008,23 +1790,21 @@ public Builder clearOptimizeDatabaseOperationName() { * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @param value The bytes for optimizeDatabaseOperationName to set. * @return This builder for chaining. */ - public Builder setOptimizeDatabaseOperationNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOptimizeDatabaseOperationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); optimizeDatabaseOperationName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2034,13 +1814,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.RestoreDatabaseMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.RestoreDatabaseMetadata) - private static final com.google.spanner.admin.database.v1.RestoreDatabaseMetadata - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.RestoreDatabaseMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.RestoreDatabaseMetadata(); } @@ -2049,27 +1828,27 @@ public static com.google.spanner.admin.database.v1.RestoreDatabaseMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<RestoreDatabaseMetadata> PARSER = - new com.google.protobuf.AbstractParser<RestoreDatabaseMetadata>() { - @java.lang.Override - public RestoreDatabaseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<RestoreDatabaseMetadata> + PARSER = new com.google.protobuf.AbstractParser<RestoreDatabaseMetadata>() { + @java.lang.Override + public RestoreDatabaseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<RestoreDatabaseMetadata> parser() { return PARSER; @@ -2084,4 +1863,6 @@ public com.google.protobuf.Parser<RestoreDatabaseMetadata> getParserForType() { public com.google.spanner.admin.database.v1.RestoreDatabaseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java similarity index 89% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java index e697cd2438c..8314316b2db 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java @@ -1,105 +1,70 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface RestoreDatabaseMetadataOrBuilder - extends +public interface RestoreDatabaseMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.RestoreDatabaseMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Name of the database being created and restored to. * </pre> * * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @return The enum numeric value on the wire for sourceType. */ int getSourceTypeValue(); /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 2;</code> - * * @return The sourceType. */ com.google.spanner.admin.database.v1.RestoreSourceType getSourceType(); /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 3;</code> - * * @return Whether the backupInfo field is set. */ boolean hasBackupInfo(); /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 3;</code> - * * @return The backupInfo. */ com.google.spanner.admin.database.v1.BackupInfo getBackupInfo(); /** - * - * * <pre> * Information about the backup used to restore the database. * </pre> @@ -109,8 +74,6 @@ public interface RestoreDatabaseMetadataOrBuilder com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrBuilder(); /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -118,13 +81,10 @@ public interface RestoreDatabaseMetadataOrBuilder * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 4;</code> - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -132,13 +92,10 @@ public interface RestoreDatabaseMetadataOrBuilder * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 4;</code> - * * @return The progress. */ com.google.spanner.admin.database.v1.OperationProgress getProgress(); /** - * - * * <pre> * The progress of the * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] @@ -150,8 +107,6 @@ public interface RestoreDatabaseMetadataOrBuilder com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder(); /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -167,13 +122,10 @@ public interface RestoreDatabaseMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 5;</code> - * * @return Whether the cancelTime field is set. */ boolean hasCancelTime(); /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -189,13 +141,10 @@ public interface RestoreDatabaseMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 5;</code> - * * @return The cancelTime. */ com.google.protobuf.Timestamp getCancelTime(); /** - * - * * <pre> * The time at which cancellation of this operation was received. * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] @@ -215,8 +164,6 @@ public interface RestoreDatabaseMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder(); /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -232,13 +179,10 @@ public interface RestoreDatabaseMetadataOrBuilder * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @return The optimizeDatabaseOperationName. */ java.lang.String getOptimizeDatabaseOperationName(); /** - * - * * <pre> * If exists, the name of the long-running operation that will be used to * track the post-restore optimization process to optimize the performance of @@ -254,10 +198,10 @@ public interface RestoreDatabaseMetadataOrBuilder * </pre> * * <code>string optimize_database_operation_name = 6;</code> - * * @return The bytes for optimizeDatabaseOperationName. */ - com.google.protobuf.ByteString getOptimizeDatabaseOperationNameBytes(); + com.google.protobuf.ByteString + getOptimizeDatabaseOperationNameBytes(); com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.SourceInfoCase getSourceInfoCase(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java similarity index 70% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java index 0b2e139f288..c926a10289f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.database.v1.RestoreDatabaseRequest} */ -public final class RestoreDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RestoreDatabaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.RestoreDatabaseRequest) RestoreDatabaseRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RestoreDatabaseRequest.newBuilder() to construct. private RestoreDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private RestoreDatabaseRequest() { parent_ = ""; databaseId_ = ""; @@ -45,38 +27,33 @@ private RestoreDatabaseRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RestoreDatabaseRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.RestoreDatabaseRequest.class, - com.google.spanner.admin.database.v1.RestoreDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.RestoreDatabaseRequest.class, com.google.spanner.admin.database.v1.RestoreDatabaseRequest.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKUP(3), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -92,31 +69,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 3: - return BACKUP; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 3: return BACKUP; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -125,10 +97,7 @@ public SourceCase getSourceCase() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -137,15 +106,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -154,18 +122,17 @@ public java.lang.String getParent() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -174,12 +141,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int DATABASE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -188,7 +152,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The databaseId. */ @java.lang.Override @@ -197,15 +160,14 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -214,15 +176,16 @@ public java.lang.String getDatabaseId() { * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -232,30 +195,24 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { public static final int BACKUP_FIELD_NUMBER = 3; /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return Whether the backup field is set. */ public boolean hasBackup() { return sourceCase_ == 3; } /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The backup. */ public java.lang.String getBackup() { @@ -266,7 +223,8 @@ public java.lang.String getBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -275,25 +233,24 @@ public java.lang.String getBackup() { } } /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for backup. */ - public com.google.protobuf.ByteString getBackupBytes() { + public com.google.protobuf.ByteString + getBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -306,8 +263,6 @@ public com.google.protobuf.ByteString getBackupBytes() { public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 4; private com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryptionConfig_; /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -317,10 +272,7 @@ public com.google.protobuf.ByteString getBackupBytes() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -328,8 +280,6 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -339,22 +289,14 @@ public boolean hasEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - getEncryptionConfig() { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig getEncryptionConfig() { + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance() : encryptionConfig_; } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -364,20 +306,14 @@ public boolean hasEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance() - : encryptionConfig_; + public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance() : encryptionConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,7 +325,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -421,7 +358,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEncryptionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEncryptionConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -431,24 +369,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.RestoreDatabaseRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.RestoreDatabaseRequest other = - (com.google.spanner.admin.database.v1.RestoreDatabaseRequest) obj; + com.google.spanner.admin.database.v1.RestoreDatabaseRequest other = (com.google.spanner.admin.database.v1.RestoreDatabaseRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getDatabaseId() + .equals(other.getDatabaseId())) return false; if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + if (!getEncryptionConfig() + .equals(other.getEncryptionConfig())) return false; } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 3: - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; break; case 0: default: @@ -486,104 +427,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest 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.admin.database.v1.RestoreDatabaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.RestoreDatabaseRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.RestoreDatabaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase]. @@ -591,32 +526,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.RestoreDatabaseRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.RestoreDatabaseRequest) com.google.spanner.admin.database.v1.RestoreDatabaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.RestoreDatabaseRequest.class, - com.google.spanner.admin.database.v1.RestoreDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.RestoreDatabaseRequest.class, com.google.spanner.admin.database.v1.RestoreDatabaseRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.RestoreDatabaseRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -634,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor; } @java.lang.Override @@ -655,11 +591,8 @@ public com.google.spanner.admin.database.v1.RestoreDatabaseRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.RestoreDatabaseRequest buildPartial() { - com.google.spanner.admin.database.v1.RestoreDatabaseRequest result = - new com.google.spanner.admin.database.v1.RestoreDatabaseRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.RestoreDatabaseRequest result = new com.google.spanner.admin.database.v1.RestoreDatabaseRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -674,13 +607,13 @@ private void buildPartial0(com.google.spanner.admin.database.v1.RestoreDatabaseR result.databaseId_ = databaseId_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.encryptionConfig_ = - encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + result.encryptionConfig_ = encryptionConfigBuilder_ == null + ? encryptionConfig_ + : encryptionConfigBuilder_.build(); } } - private void buildPartialOneofs( - com.google.spanner.admin.database.v1.RestoreDatabaseRequest result) { + private void buildPartialOneofs(com.google.spanner.admin.database.v1.RestoreDatabaseRequest result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; } @@ -689,39 +622,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.RestoreDatabaseRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.RestoreDatabaseRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.RestoreDatabaseRequest)other); } else { super.mergeFrom(other); return this; @@ -729,8 +661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.RestoreDatabaseRequest other) { - if (other == com.google.spanner.admin.database.v1.RestoreDatabaseRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.RestoreDatabaseRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -745,17 +676,15 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.RestoreDatabaseReq mergeEncryptionConfig(other.getEncryptionConfig()); } switch (other.getSourceCase()) { - case BACKUP: - { - sourceCase_ = 3; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case BACKUP: { + sourceCase_ = 3; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -783,39 +712,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - databaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 3; - source_ = s; - break; - } // case 26 - case 34: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 3; + source_ = s; + break; + } // case 26 + case 34: { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -825,12 +750,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -844,8 +769,6 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -854,16 +777,14 @@ public Builder clearSource() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -872,8 +793,6 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -882,17 +801,16 @@ public java.lang.String getParent() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -900,8 +818,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -910,25 +826,19 @@ public com.google.protobuf.ByteString getParentBytes() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -937,10 +847,7 @@ public Builder setParent(java.lang.String value) { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -950,8 +857,6 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -960,17 +865,13 @@ public Builder clearParent() { * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -980,8 +881,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseId_ = ""; /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -990,13 +889,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -1005,8 +904,6 @@ public java.lang.String getDatabaseId() { } } /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -1015,14 +912,15 @@ public java.lang.String getDatabaseId() { * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -1030,8 +928,6 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } } /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -1040,22 +936,18 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -1064,7 +956,6 @@ public Builder setDatabaseId(java.lang.String value) { * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearDatabaseId() { @@ -1074,8 +965,6 @@ public Builder clearDatabaseId() { return this; } /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -1084,14 +973,12 @@ public Builder clearDatabaseId() { * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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(); - } + public Builder setDatabaseIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseId_ = value; bitField0_ |= 0x00000002; @@ -1100,15 +987,12 @@ public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { } /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return Whether the backup field is set. */ @java.lang.Override @@ -1116,15 +1000,12 @@ public boolean hasBackup() { return sourceCase_ == 3; } /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The backup. */ @java.lang.Override @@ -1134,7 +1015,8 @@ public java.lang.String getBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -1145,26 +1027,25 @@ public java.lang.String getBackup() { } } /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for backup. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupBytes() { + public com.google.protobuf.ByteString + getBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -1174,37 +1055,30 @@ public com.google.protobuf.ByteString getBackupBytes() { } } /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @param value The backup to set. * @return This builder for chaining. */ - public Builder setBackup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCase_ = 3; source_ = value; onChanged(); return this; } /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearBackup() { @@ -1216,22 +1090,18 @@ public Builder clearBackup() { return this; } /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for backup to set. * @return This builder for chaining. */ - public Builder setBackupBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = value; @@ -1241,13 +1111,8 @@ public Builder setBackupBytes(com.google.protobuf.ByteString value) { private com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryptionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig, - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder> - encryptionConfigBuilder_; + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig, com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder, com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder> encryptionConfigBuilder_; /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1257,18 +1122,13 @@ public Builder setBackupBytes(com.google.protobuf.ByteString value) { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1278,26 +1138,17 @@ public boolean hasEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - getEncryptionConfig() { + public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig getEncryptionConfig() { if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - .getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance() : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1307,12 +1158,9 @@ public boolean hasEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder setEncryptionConfig( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig value) { + public Builder setEncryptionConfig(com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1326,8 +1174,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1337,13 +1183,10 @@ public Builder setEncryptionConfig( * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder setEncryptionConfig( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder - builderForValue) { + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder builderForValue) { if (encryptionConfigBuilder_ == null) { encryptionConfig_ = builderForValue.build(); } else { @@ -1354,8 +1197,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1365,18 +1206,13 @@ public Builder setEncryptionConfig( * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder mergeEncryptionConfig( - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig value) { + public Builder mergeEncryptionConfig(com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig value) { if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && encryptionConfig_ != null - && encryptionConfig_ - != com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + encryptionConfig_ != null && + encryptionConfig_ != com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance()) { getEncryptionConfigBuilder().mergeFrom(value); } else { encryptionConfig_ = value; @@ -1389,8 +1225,6 @@ public Builder mergeEncryptionConfig( return this; } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1400,9 +1234,7 @@ public Builder mergeEncryptionConfig( * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder clearEncryptionConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1415,8 +1247,6 @@ public Builder clearEncryptionConfig() { return this; } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1426,19 +1256,14 @@ public Builder clearEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder - getEncryptionConfigBuilder() { + public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder getEncryptionConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1448,24 +1273,17 @@ public Builder clearEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { + public com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { if (encryptionConfigBuilder_ != null) { return encryptionConfigBuilder_.getMessageOrBuilder(); } else { - return encryptionConfig_ == null - ? com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig - .getDefaultInstance() - : encryptionConfig_; + return encryptionConfig_ == null ? + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.getDefaultInstance() : encryptionConfig_; } } /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -1475,29 +1293,24 @@ public Builder clearEncryptionConfig() { * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig, - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder> + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig, com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder, com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder> getEncryptionConfigFieldBuilder() { if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig, - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder, - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder>( - getEncryptionConfig(), getParentForChildren(), isClean()); + encryptionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig, com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.Builder, com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder>( + getEncryptionConfig(), + getParentForChildren(), + isClean()); encryptionConfig_ = null; } return encryptionConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1507,12 +1320,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.RestoreDatabaseRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.RestoreDatabaseRequest) private static final com.google.spanner.admin.database.v1.RestoreDatabaseRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.RestoreDatabaseRequest(); } @@ -1521,27 +1334,27 @@ public static com.google.spanner.admin.database.v1.RestoreDatabaseRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<RestoreDatabaseRequest> PARSER = - new com.google.protobuf.AbstractParser<RestoreDatabaseRequest>() { - @java.lang.Override - public RestoreDatabaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<RestoreDatabaseRequest> + PARSER = new com.google.protobuf.AbstractParser<RestoreDatabaseRequest>() { + @java.lang.Override + public RestoreDatabaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<RestoreDatabaseRequest> parser() { return PARSER; @@ -1556,4 +1369,6 @@ public com.google.protobuf.Parser<RestoreDatabaseRequest> getParserForType() { public com.google.spanner.admin.database.v1.RestoreDatabaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java index a3a1be382f6..a739e7b604b 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface RestoreDatabaseRequestOrBuilder - extends +public interface RestoreDatabaseRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.RestoreDatabaseRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -34,16 +16,11 @@ public interface RestoreDatabaseRequestOrBuilder * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The name of the instance in which to create the * restored database. This instance must be in the same project and @@ -52,17 +29,13 @@ public interface RestoreDatabaseRequestOrBuilder * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -71,13 +44,10 @@ public interface RestoreDatabaseRequestOrBuilder * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The databaseId. */ java.lang.String getDatabaseId(); /** - * - * * <pre> * Required. The id of the database to create and restore to. This * database must not already exist. The `database_id` appended to @@ -86,54 +56,44 @@ public interface RestoreDatabaseRequestOrBuilder * </pre> * * <code>string database_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString getDatabaseIdBytes(); + com.google.protobuf.ByteString + getDatabaseIdBytes(); /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The backup. */ java.lang.String getBackup(); /** - * - * * <pre> * Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. * </pre> * * <code>string backup = 3 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for backup. */ - com.google.protobuf.ByteString getBackupBytes(); + com.google.protobuf.ByteString + getBackupBytes(); /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -143,16 +103,11 @@ public interface RestoreDatabaseRequestOrBuilder * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -162,16 +117,11 @@ public interface RestoreDatabaseRequestOrBuilder * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The encryptionConfig. */ com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig getEncryptionConfig(); /** - * - * * <pre> * Optional. An encryption configuration describing the encryption type and key * resources in Cloud KMS used to encrypt/decrypt the database to restore to. @@ -181,12 +131,9 @@ public interface RestoreDatabaseRequestOrBuilder * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];</code> */ - com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder - getEncryptionConfigOrBuilder(); + com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); com.google.spanner.admin.database.v1.RestoreDatabaseRequest.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java similarity index 69% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java index 07b08825bcb..6913ed6df65 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java @@ -1,80 +1,57 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Information about the database restore. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.RestoreInfo} */ -public final class RestoreInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RestoreInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.RestoreInfo) RestoreInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RestoreInfo.newBuilder() to construct. private RestoreInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private RestoreInfo() { sourceType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RestoreInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreInfo_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.RestoreInfo.class, - com.google.spanner.admin.database.v1.RestoreInfo.Builder.class); + com.google.spanner.admin.database.v1.RestoreInfo.class, com.google.spanner.admin.database.v1.RestoreInfo.Builder.class); } private int sourceInfoCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object sourceInfo_; - public enum SourceInfoCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKUP_INFO(2), SOURCEINFO_NOT_SET(0); private final int value; - private SourceInfoCase(int value) { this.value = value; } @@ -90,72 +67,56 @@ public static SourceInfoCase valueOf(int value) { public static SourceInfoCase forNumber(int value) { switch (value) { - case 2: - return BACKUP_INFO; - case 0: - return SOURCEINFO_NOT_SET; - default: - return null; + case 2: return BACKUP_INFO; + case 0: return SOURCEINFO_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceInfoCase getSourceInfoCase() { - return SourceInfoCase.forNumber(sourceInfoCase_); + public SourceInfoCase + getSourceInfoCase() { + return SourceInfoCase.forNumber( + sourceInfoCase_); } public static final int SOURCE_TYPE_FIELD_NUMBER = 1; private int sourceType_ = 0; /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @return The enum numeric value on the wire for sourceType. */ - @java.lang.Override - public int getSourceTypeValue() { + @java.lang.Override public int getSourceTypeValue() { return sourceType_; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @return The sourceType. */ - @java.lang.Override - public com.google.spanner.admin.database.v1.RestoreSourceType getSourceType() { - com.google.spanner.admin.database.v1.RestoreSourceType result = - com.google.spanner.admin.database.v1.RestoreSourceType.forNumber(sourceType_); - return result == null - ? com.google.spanner.admin.database.v1.RestoreSourceType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.database.v1.RestoreSourceType getSourceType() { + com.google.spanner.admin.database.v1.RestoreSourceType result = com.google.spanner.admin.database.v1.RestoreSourceType.forNumber(sourceType_); + return result == null ? com.google.spanner.admin.database.v1.RestoreSourceType.UNRECOGNIZED : result; } public static final int BACKUP_INFO_FIELD_NUMBER = 2; /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 2;</code> - * * @return Whether the backupInfo field is set. */ @java.lang.Override @@ -163,27 +124,22 @@ public boolean hasBackupInfo() { return sourceInfoCase_ == 2; } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 2;</code> - * * @return The backupInfo. */ @java.lang.Override public com.google.spanner.admin.database.v1.BackupInfo getBackupInfo() { if (sourceInfoCase_ == 2) { - return (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_; + return (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_; } return com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance(); } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. @@ -194,13 +150,12 @@ public com.google.spanner.admin.database.v1.BackupInfo getBackupInfo() { @java.lang.Override public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrBuilder() { if (sourceInfoCase_ == 2) { - return (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_; + return (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_; } return com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,9 +167,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (sourceType_ - != com.google.spanner.admin.database.v1.RestoreSourceType.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (sourceType_ != com.google.spanner.admin.database.v1.RestoreSourceType.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, sourceType_); } if (sourceInfoCase_ == 2) { @@ -229,14 +184,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (sourceType_ - != com.google.spanner.admin.database.v1.RestoreSourceType.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sourceType_); + if (sourceType_ != com.google.spanner.admin.database.v1.RestoreSourceType.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, sourceType_); } if (sourceInfoCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -246,19 +200,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.RestoreInfo)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.RestoreInfo other = - (com.google.spanner.admin.database.v1.RestoreInfo) obj; + com.google.spanner.admin.database.v1.RestoreInfo other = (com.google.spanner.admin.database.v1.RestoreInfo) obj; if (sourceType_ != other.sourceType_) return false; if (!getSourceInfoCase().equals(other.getSourceInfoCase())) return false; switch (sourceInfoCase_) { case 2: - if (!getBackupInfo().equals(other.getBackupInfo())) return false; + if (!getBackupInfo() + .equals(other.getBackupInfo())) return false; break; case 0: default: @@ -289,136 +243,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreInfo 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.admin.database.v1.RestoreInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.RestoreInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.RestoreInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.RestoreInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.database.v1.RestoreInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Information about the database restore. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.RestoreInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.RestoreInfo) com.google.spanner.admin.database.v1.RestoreInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreInfo_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.RestoreInfo.class, - com.google.spanner.admin.database.v1.RestoreInfo.Builder.class); + com.google.spanner.admin.database.v1.RestoreInfo.class, com.google.spanner.admin.database.v1.RestoreInfo.Builder.class); } // Construct using com.google.spanner.admin.database.v1.RestoreInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -433,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor; } @java.lang.Override @@ -454,11 +404,8 @@ public com.google.spanner.admin.database.v1.RestoreInfo build() { @java.lang.Override public com.google.spanner.admin.database.v1.RestoreInfo buildPartial() { - com.google.spanner.admin.database.v1.RestoreInfo result = - new com.google.spanner.admin.database.v1.RestoreInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.RestoreInfo result = new com.google.spanner.admin.database.v1.RestoreInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -474,7 +421,8 @@ private void buildPartial0(com.google.spanner.admin.database.v1.RestoreInfo resu private void buildPartialOneofs(com.google.spanner.admin.database.v1.RestoreInfo result) { result.sourceInfoCase_ = sourceInfoCase_; result.sourceInfo_ = this.sourceInfo_; - if (sourceInfoCase_ == 2 && backupInfoBuilder_ != null) { + if (sourceInfoCase_ == 2 && + backupInfoBuilder_ != null) { result.sourceInfo_ = backupInfoBuilder_.build(); } } @@ -483,39 +431,38 @@ private void buildPartialOneofs(com.google.spanner.admin.database.v1.RestoreInfo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.RestoreInfo) { - return mergeFrom((com.google.spanner.admin.database.v1.RestoreInfo) other); + return mergeFrom((com.google.spanner.admin.database.v1.RestoreInfo)other); } else { super.mergeFrom(other); return this; @@ -523,21 +470,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.RestoreInfo other) { - if (other == com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.RestoreInfo.getDefaultInstance()) return this; if (other.sourceType_ != 0) { setSourceTypeValue(other.getSourceTypeValue()); } switch (other.getSourceInfoCase()) { - case BACKUP_INFO: - { - mergeBackupInfo(other.getBackupInfo()); - break; - } - case SOURCEINFO_NOT_SET: - { - break; - } + case BACKUP_INFO: { + mergeBackupInfo(other.getBackupInfo()); + break; + } + case SOURCEINFO_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -565,25 +509,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - sourceType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getBackupInfoFieldBuilder().getBuilder(), extensionRegistry); - sourceInfoCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + sourceType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getBackupInfoFieldBuilder().getBuilder(), + extensionRegistry); + sourceInfoCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,12 +536,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceInfoCase_ = 0; private java.lang.Object sourceInfo_; - - public SourceInfoCase getSourceInfoCase() { - return SourceInfoCase.forNumber(sourceInfoCase_); + public SourceInfoCase + getSourceInfoCase() { + return SourceInfoCase.forNumber( + sourceInfoCase_); } public Builder clearSourceInfo() { @@ -612,29 +555,22 @@ public Builder clearSourceInfo() { private int sourceType_ = 0; /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @return The enum numeric value on the wire for sourceType. */ - @java.lang.Override - public int getSourceTypeValue() { + @java.lang.Override public int getSourceTypeValue() { return sourceType_; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @param value The enum numeric value on the wire for sourceType to set. * @return This builder for chaining. */ @@ -645,33 +581,24 @@ public Builder setSourceTypeValue(int value) { return this; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @return The sourceType. */ @java.lang.Override public com.google.spanner.admin.database.v1.RestoreSourceType getSourceType() { - com.google.spanner.admin.database.v1.RestoreSourceType result = - com.google.spanner.admin.database.v1.RestoreSourceType.forNumber(sourceType_); - return result == null - ? com.google.spanner.admin.database.v1.RestoreSourceType.UNRECOGNIZED - : result; + com.google.spanner.admin.database.v1.RestoreSourceType result = com.google.spanner.admin.database.v1.RestoreSourceType.forNumber(sourceType_); + return result == null ? com.google.spanner.admin.database.v1.RestoreSourceType.UNRECOGNIZED : result; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @param value The sourceType to set. * @return This builder for chaining. */ @@ -685,14 +612,11 @@ public Builder setSourceType(com.google.spanner.admin.database.v1.RestoreSourceT return this; } /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @return This builder for chaining. */ public Builder clearSourceType() { @@ -703,20 +627,14 @@ public Builder clearSourceType() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.BackupInfo, - com.google.spanner.admin.database.v1.BackupInfo.Builder, - com.google.spanner.admin.database.v1.BackupInfoOrBuilder> - backupInfoBuilder_; + com.google.spanner.admin.database.v1.BackupInfo, com.google.spanner.admin.database.v1.BackupInfo.Builder, com.google.spanner.admin.database.v1.BackupInfoOrBuilder> backupInfoBuilder_; /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 2;</code> - * * @return Whether the backupInfo field is set. */ @java.lang.Override @@ -724,15 +642,12 @@ public boolean hasBackupInfo() { return sourceInfoCase_ == 2; } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 2;</code> - * * @return The backupInfo. */ @java.lang.Override @@ -750,8 +665,6 @@ public com.google.spanner.admin.database.v1.BackupInfo getBackupInfo() { } } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. @@ -773,8 +686,6 @@ public Builder setBackupInfo(com.google.spanner.admin.database.v1.BackupInfo val return this; } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. @@ -794,8 +705,6 @@ public Builder setBackupInfo( return this; } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. @@ -805,14 +714,10 @@ public Builder setBackupInfo( */ public Builder mergeBackupInfo(com.google.spanner.admin.database.v1.BackupInfo value) { if (backupInfoBuilder_ == null) { - if (sourceInfoCase_ == 2 - && sourceInfo_ - != com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance()) { - sourceInfo_ = - com.google.spanner.admin.database.v1.BackupInfo.newBuilder( - (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_) - .mergeFrom(value) - .buildPartial(); + if (sourceInfoCase_ == 2 && + sourceInfo_ != com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance()) { + sourceInfo_ = com.google.spanner.admin.database.v1.BackupInfo.newBuilder((com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_) + .mergeFrom(value).buildPartial(); } else { sourceInfo_ = value; } @@ -828,8 +733,6 @@ public Builder mergeBackupInfo(com.google.spanner.admin.database.v1.BackupInfo v return this; } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. @@ -854,8 +757,6 @@ public Builder clearBackupInfo() { return this; } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. @@ -867,8 +768,6 @@ public com.google.spanner.admin.database.v1.BackupInfo.Builder getBackupInfoBuil return getBackupInfoFieldBuilder().getBuilder(); } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. @@ -888,8 +787,6 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB } } /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. @@ -898,19 +795,14 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.BackupInfo, - com.google.spanner.admin.database.v1.BackupInfo.Builder, - com.google.spanner.admin.database.v1.BackupInfoOrBuilder> + com.google.spanner.admin.database.v1.BackupInfo, com.google.spanner.admin.database.v1.BackupInfo.Builder, com.google.spanner.admin.database.v1.BackupInfoOrBuilder> getBackupInfoFieldBuilder() { if (backupInfoBuilder_ == null) { if (!(sourceInfoCase_ == 2)) { sourceInfo_ = com.google.spanner.admin.database.v1.BackupInfo.getDefaultInstance(); } - backupInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.BackupInfo, - com.google.spanner.admin.database.v1.BackupInfo.Builder, - com.google.spanner.admin.database.v1.BackupInfoOrBuilder>( + backupInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.BackupInfo, com.google.spanner.admin.database.v1.BackupInfo.Builder, com.google.spanner.admin.database.v1.BackupInfoOrBuilder>( (com.google.spanner.admin.database.v1.BackupInfo) sourceInfo_, getParentForChildren(), isClean()); @@ -920,9 +812,9 @@ public com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrB onChanged(); return backupInfoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -932,12 +824,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.RestoreInfo) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.RestoreInfo) private static final com.google.spanner.admin.database.v1.RestoreInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.RestoreInfo(); } @@ -946,27 +838,27 @@ public static com.google.spanner.admin.database.v1.RestoreInfo getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<RestoreInfo> PARSER = - new com.google.protobuf.AbstractParser<RestoreInfo>() { - @java.lang.Override - public RestoreInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<RestoreInfo> + PARSER = new com.google.protobuf.AbstractParser<RestoreInfo>() { + @java.lang.Override + public RestoreInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<RestoreInfo> parser() { return PARSER; @@ -981,4 +873,6 @@ public com.google.protobuf.Parser<RestoreInfo> getParserForType() { public com.google.spanner.admin.database.v1.RestoreInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java similarity index 72% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java index f36f8bce23b..8c628727cca 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java @@ -1,82 +1,52 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface RestoreInfoOrBuilder - extends +public interface RestoreInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.RestoreInfo) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @return The enum numeric value on the wire for sourceType. */ int getSourceTypeValue(); /** - * - * * <pre> * The type of the restore source. * </pre> * * <code>.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;</code> - * * @return The sourceType. */ com.google.spanner.admin.database.v1.RestoreSourceType getSourceType(); /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 2;</code> - * * @return Whether the backupInfo field is set. */ boolean hasBackupInfo(); /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. * </pre> * * <code>.google.spanner.admin.database.v1.BackupInfo backup_info = 2;</code> - * * @return The backupInfo. */ com.google.spanner.admin.database.v1.BackupInfo getBackupInfo(); /** - * - * * <pre> * Information about the backup used to restore the database. The backup * may no longer exist. diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java similarity index 66% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java index cbd229d2e3c..99287de9d24 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreSourceType.java @@ -1,36 +1,18 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Indicates the type of the restore source. * </pre> * * Protobuf enum {@code google.spanner.admin.database.v1.RestoreSourceType} */ -public enum RestoreSourceType implements com.google.protobuf.ProtocolMessageEnum { +public enum RestoreSourceType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * No restore associated. * </pre> @@ -39,8 +21,6 @@ public enum RestoreSourceType implements com.google.protobuf.ProtocolMessageEnum */ TYPE_UNSPECIFIED(0), /** - * - * * <pre> * A backup was used as the source of the restore. * </pre> @@ -52,8 +32,6 @@ public enum RestoreSourceType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * * <pre> * No restore associated. * </pre> @@ -62,8 +40,6 @@ public enum RestoreSourceType implements com.google.protobuf.ProtocolMessageEnum */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * A backup was used as the source of the restore. * </pre> @@ -72,6 +48,7 @@ public enum RestoreSourceType implements com.google.protobuf.ProtocolMessageEnum */ public static final int BACKUP_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -96,43 +73,39 @@ public static RestoreSourceType valueOf(int value) { */ public static RestoreSourceType forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return BACKUP; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return BACKUP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<RestoreSourceType> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<RestoreSourceType> + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap<RestoreSourceType> - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<RestoreSourceType>() { - public RestoreSourceType findValueByNumber(int number) { - return RestoreSourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + RestoreSourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<RestoreSourceType>() { + public RestoreSourceType findValueByNumber(int number) { + return RestoreSourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.getDescriptor().getEnumTypes().get(0); } private static final RestoreSourceType[] VALUES = values(); @@ -140,7 +113,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static RestoreSourceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -156,3 +130,4 @@ private RestoreSourceType(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.database.v1.RestoreSourceType) } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java new file mode 100644 index 00000000000..268212c223b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java @@ -0,0 +1,601 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/spanner_database_admin.proto + +package com.google.spanner.admin.database.v1; + +public final class SpannerDatabaseAdminProto { + private SpannerDatabaseAdminProto() {} + 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_admin_database_v1_RestoreInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_RestoreInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_Database_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_Database_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_DatabaseRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_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/admin/database/v1/spann" + + "er_database_admin.proto\022 google.spanner." + + "admin.database.v1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032\036google/iam/v1/iam_policy.p" + + "roto\032\032google/iam/v1/policy.proto\032#google" + + "/longrunning/operations.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\032-google/spanner/admin/database/v1/" + + "backup.proto\032-google/spanner/admin/datab" + + "ase/v1/common.proto\"\253\001\n\013RestoreInfo\022H\n\013s" + + "ource_type\030\001 \001(\01623.google.spanner.admin." + + "database.v1.RestoreSourceType\022C\n\013backup_" + + "info\030\002 \001(\0132,.google.spanner.admin.databa" + + "se.v1.BackupInfoH\000B\r\n\013source_info\"\325\006\n\010Da" + + "tabase\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022E\n\005state\030\002 \001(" + + "\01620.google.spanner.admin.database.v1.Dat" + + "abase.StateB\004\342A\001\003\0225\n\013create_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\022I\n\014rest" + + "ore_info\030\004 \001(\0132-.google.spanner.admin.da" + + "tabase.v1.RestoreInfoB\004\342A\001\003\022S\n\021encryptio" + + "n_config\030\005 \001(\01322.google.spanner.admin.da" + + "tabase.v1.EncryptionConfigB\004\342A\001\003\022O\n\017encr" + + "yption_info\030\010 \003(\01320.google.spanner.admin" + + ".database.v1.EncryptionInfoB\004\342A\001\003\022&\n\030ver" + + "sion_retention_period\030\006 \001(\tB\004\342A\001\003\022?\n\025ear" + + "liest_version_time\030\007 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\022\034\n\016default_leader\030\t \001" + + "(\tB\004\342A\001\003\022Q\n\020database_dialect\030\n \001(\01621.goo" + + "gle.spanner.admin.database.v1.DatabaseDi" + + "alectB\004\342A\001\003\022\036\n\026enable_drop_protection\030\013 " + + "\001(\010\022\031\n\013reconciling\030\014 \001(\010B\004\342A\001\003\"M\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005" + + "READY\020\002\022\024\n\020READY_OPTIMIZING\020\003:b\352A_\n\037span" + + "ner.googleapis.com/Database\022<projects/{p" + + "roject}/instances/{instance}/databases/{" + + "database}\"w\n\024ListDatabasesRequest\0228\n\006par" + + "ent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapis.c" + + "om/Instance\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_t" + + "oken\030\004 \001(\t\"o\n\025ListDatabasesResponse\022=\n\td" + + "atabases\030\001 \003(\0132*.google.spanner.admin.da" + + "tabase.v1.Database\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\332\002\n\025CreateDatabaseRequest\0228\n\006parent\030" + + "\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapis.com/I" + + "nstance\022\036\n\020create_statement\030\002 \001(\tB\004\342A\001\002\022" + + "\036\n\020extra_statements\030\003 \003(\tB\004\342A\001\001\022S\n\021encry" + + "ption_config\030\004 \001(\01322.google.spanner.admi" + + "n.database.v1.EncryptionConfigB\004\342A\001\001\022Q\n\020" + + "database_dialect\030\005 \001(\01621.google.spanner." + + "admin.database.v1.DatabaseDialectB\004\342A\001\001\022" + + "\037\n\021proto_descriptors\030\006 \001(\014B\004\342A\001\001\"P\n\026Crea" + + "teDatabaseMetadata\0226\n\010database\030\001 \001(\tB$\372A" + + "!\n\037spanner.googleapis.com/Database\"L\n\022Ge" + + "tDatabaseRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n" + + "\037spanner.googleapis.com/Database\"\222\001\n\025Upd" + + "ateDatabaseRequest\022B\n\010database\030\001 \001(\0132*.g" + + "oogle.spanner.admin.database.v1.Database" + + "B\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\004\342A\001\002\"\332\001\n\026UpdateDatabase" + + "Metadata\022H\n\007request\030\001 \001(\01327.google.spann" + + "er.admin.database.v1.UpdateDatabaseReque" + + "st\022E\n\010progress\030\002 \001(\01323.google.spanner.ad" + + "min.database.v1.OperationProgress\022/\n\013can" + + "cel_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\247\001\n\030UpdateDatabaseDdlRequest\022:\n\010datab" + + "ase\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapis.c" + + "om/Database\022\030\n\nstatements\030\002 \003(\tB\004\342A\001\002\022\024\n" + + "\014operation_id\030\003 \001(\t\022\037\n\021proto_descriptors" + + "\030\004 \001(\014B\004\342A\001\001\"S\n\026DdlStatementActionInfo\022\016" + + "\n\006action\030\001 \001(\t\022\023\n\013entity_type\030\002 \001(\t\022\024\n\014e" + + "ntity_names\030\003 \003(\t\"\311\002\n\031UpdateDatabaseDdlM" + + "etadata\0226\n\010database\030\001 \001(\tB$\372A!\n\037spanner." + + "googleapis.com/Database\022\022\n\nstatements\030\002 " + + "\003(\t\0225\n\021commit_timestamps\030\003 \003(\0132\032.google." + + "protobuf.Timestamp\022\027\n\tthrottled\030\004 \001(\010B\004\342" + + "A\001\003\022E\n\010progress\030\005 \003(\01323.google.spanner.a" + + "dmin.database.v1.OperationProgress\022I\n\007ac" + + "tions\030\006 \003(\01328.google.spanner.admin.datab" + + "ase.v1.DdlStatementActionInfo\"Q\n\023DropDat" + + "abaseRequest\022:\n\010database\030\001 \001(\tB(\342A\001\002\372A!\n" + + "\037spanner.googleapis.com/Database\"S\n\025GetD" + + "atabaseDdlRequest\022:\n\010database\030\001 \001(\tB(\342A\001" + + "\002\372A!\n\037spanner.googleapis.com/Database\"G\n" + + "\026GetDatabaseDdlResponse\022\022\n\nstatements\030\001 " + + "\003(\t\022\031\n\021proto_descriptors\030\002 \001(\014\"\220\001\n\035ListD" + + "atabaseOperationsRequest\0228\n\006parent\030\001 \001(\t" + + "B(\342A\001\002\372A!\n\037spanner.googleapis.com/Instan" + + "ce\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" + + "\npage_token\030\004 \001(\t\"l\n\036ListDatabaseOperati" + + "onsResponse\0221\n\noperations\030\001 \003(\0132\035.google" + + ".longrunning.Operation\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"\221\002\n\026RestoreDatabaseRequest\0228\n\006pa" + + "rent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapis." + + "com/Instance\022\031\n\013database_id\030\002 \001(\tB\004\342A\001\002\022" + + "4\n\006backup\030\003 \001(\tB\"\372A\037\n\035spanner.googleapis" + + ".com/BackupH\000\022b\n\021encryption_config\030\004 \001(\013" + + "2A.google.spanner.admin.database.v1.Rest" + + "oreDatabaseEncryptionConfigB\004\342A\001\001B\010\n\006sou" + + "rce\"\365\002\n\037RestoreDatabaseEncryptionConfig\022" + + "o\n\017encryption_type\030\001 \001(\0162P.google.spanne" + + "r.admin.database.v1.RestoreDatabaseEncry" + + "ptionConfig.EncryptionTypeB\004\342A\001\002\022@\n\014kms_" + + "key_name\030\002 \001(\tB*\342A\001\001\372A#\n!cloudkms.google" + + "apis.com/CryptoKey\"\236\001\n\016EncryptionType\022\037\n" + + "\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022+\n\'USE_CO" + + "NFIG_DEFAULT_OR_BACKUP_ENCRYPTION\020\001\022\035\n\031G" + + "OOGLE_DEFAULT_ENCRYPTION\020\002\022\037\n\033CUSTOMER_M" + + "ANAGED_ENCRYPTION\020\003\"\215\003\n\027RestoreDatabaseM" + + "etadata\0222\n\004name\030\001 \001(\tB$\372A!\n\037spanner.goog" + + "leapis.com/Database\022H\n\013source_type\030\002 \001(\016" + + "23.google.spanner.admin.database.v1.Rest" + + "oreSourceType\022C\n\013backup_info\030\003 \001(\0132,.goo" + + "gle.spanner.admin.database.v1.BackupInfo" + + "H\000\022E\n\010progress\030\004 \001(\01323.google.spanner.ad" + + "min.database.v1.OperationProgress\022/\n\013can" + + "cel_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mp\022(\n optimize_database_operation_name\030\006" + + " \001(\tB\r\n\013source_info\"\235\001\n OptimizeRestored" + + "DatabaseMetadata\0222\n\004name\030\001 \001(\tB$\372A!\n\037spa" + + "nner.googleapis.com/Database\022E\n\010progress" + + "\030\002 \001(\01323.google.spanner.admin.database.v" + + "1.OperationProgress\"\237\001\n\014DatabaseRole\022\022\n\004" + + "name\030\001 \001(\tB\004\342A\001\002:{\352Ax\n#spanner.googleapi" + + "s.com/DatabaseRole\022Qprojects/{project}/i" + + "nstances/{instance}/databases/{database}" + + "/databaseRoles/{role}\"{\n\030ListDatabaseRol" + + "esRequest\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\n\037span" + + "ner.googleapis.com/Database\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"|\n\031ListDataba" + + "seRolesResponse\022F\n\016database_roles\030\001 \003(\0132" + + "..google.spanner.admin.database.v1.Datab" + + "aseRole\022\027\n\017next_page_token\030\002 \001(\t*5\n\021Rest" + + "oreSourceType\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006B" + + "ACKUP\020\0012\356%\n\rDatabaseAdmin\022\300\001\n\rListDataba" + + "ses\0226.google.spanner.admin.database.v1.L" + + "istDatabasesRequest\0327.google.spanner.adm" + + "in.database.v1.ListDatabasesResponse\">\332A" + + "\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/in" + + "stances/*}/databases\022\244\002\n\016CreateDatabase\022" + + "7.google.spanner.admin.database.v1.Creat" + + "eDatabaseRequest\032\035.google.longrunning.Op" + + "eration\"\271\001\312Ad\n)google.spanner.admin.data" + + "base.v1.Database\0227google.spanner.admin.d" + + "atabase.v1.CreateDatabaseMetadata\332A\027pare" + + "nt,create_statement\202\323\344\223\0022\"-/v1/{parent=p" + + "rojects/*/instances/*}/databases:\001*\022\255\001\n\013" + + "GetDatabase\0224.google.spanner.admin.datab" + + "ase.v1.GetDatabaseRequest\032*.google.spann" + + "er.admin.database.v1.Database\"<\332A\004name\202\323" + + "\344\223\002/\022-/v1/{name=projects/*/instances/*/d" + + "atabases/*}\022\357\001\n\016UpdateDatabase\0227.google." + + "spanner.admin.database.v1.UpdateDatabase" + + "Request\032\035.google.longrunning.Operation\"\204" + + "\001\312A\"\n\010Database\022\026UpdateDatabaseMetadata\332A" + + "\024database,update_mask\202\323\344\223\002B26/v1/{databa" + + "se.name=projects/*/instances/*/databases" + + "/*}:\010database\022\235\002\n\021UpdateDatabaseDdl\022:.go" + + "ogle.spanner.admin.database.v1.UpdateDat" + + "abaseDdlRequest\032\035.google.longrunning.Ope" + + "ration\"\254\001\312AS\n\025google.protobuf.Empty\022:goo" + + "gle.spanner.admin.database.v1.UpdateData" + + "baseDdlMetadata\332A\023database,statements\202\323\344" + + "\223\002:25/v1/{database=projects/*/instances/" + + "*/databases/*}/ddl:\001*\022\243\001\n\014DropDatabase\0225" + + ".google.spanner.admin.database.v1.DropDa" + + "tabaseRequest\032\026.google.protobuf.Empty\"D\332" + + "A\010database\202\323\344\223\0023*1/v1/{database=projects" + + "/*/instances/*/databases/*}\022\315\001\n\016GetDatab" + + "aseDdl\0227.google.spanner.admin.database.v" + + "1.GetDatabaseDdlRequest\0328.google.spanner" + + ".admin.database.v1.GetDatabaseDdlRespons" + + "e\"H\332A\010database\202\323\344\223\0027\0225/v1/{database=proj" + + "ects/*/instances/*/databases/*}/ddl\022\353\001\n\014" + + "SetIamPolicy\022\".google.iam.v1.SetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"\237\001\332A\017res" + + "ource,policy\202\323\344\223\002\206\001\">/v1/{resource=proje" + + "cts/*/instances/*/databases/*}:setIamPol" + + "icy:\001*ZA\"</v1/{resource=projects/*/insta" + + "nces/*/backups/*}:setIamPolicy:\001*\022\344\001\n\014Ge" + + "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" + + "equest\032\025.google.iam.v1.Policy\"\230\001\332A\010resou" + + "rce\202\323\344\223\002\206\001\">/v1/{resource=projects/*/ins" + + "tances/*/databases/*}:getIamPolicy:\001*ZA\"" + + "</v1/{resource=projects/*/instances/*/ba" + + "ckups/*}:getIamPolicy:\001*\022\367\002\n\022TestIamPerm" + + "issions\022(.google.iam.v1.TestIamPermissio" + + "nsRequest\032).google.iam.v1.TestIamPermiss" + + "ionsResponse\"\213\002\332A\024resource,permissions\202\323" + + "\344\223\002\355\001\"D/v1/{resource=projects/*/instance" + + "s/*/databases/*}:testIamPermissions:\001*ZG" + + "\"B/v1/{resource=projects/*/instances/*/b" + + "ackups/*}:testIamPermissions:\001*ZY\"T/v1/{" + + "resource=projects/*/instances/*/database" + + "s/*/databaseRoles/*}:testIamPermissions:" + + "\001*\022\237\002\n\014CreateBackup\0225.google.spanner.adm" + + "in.database.v1.CreateBackupRequest\032\035.goo" + + "gle.longrunning.Operation\"\270\001\312A`\n\'google." + + "spanner.admin.database.v1.Backup\0225google" + + ".spanner.admin.database.v1.CreateBackupM" + + "etadata\332A\027parent,backup,backup_id\202\323\344\223\0025\"" + + "+/v1/{parent=projects/*/instances/*}/bac" + + "kups:\006backup\022\254\002\n\nCopyBackup\0223.google.spa" + + "nner.admin.database.v1.CopyBackupRequest" + + "\032\035.google.longrunning.Operation\"\311\001\312A^\n\'g" + + "oogle.spanner.admin.database.v1.Backup\0223" + + "google.spanner.admin.database.v1.CopyBac" + + "kupMetadata\332A*parent,backup_id,source_ba" + + "ckup,expire_time\202\323\344\223\0025\"0/v1/{parent=proj" + + "ects/*/instances/*}/backups:copy:\001*\022\245\001\n\t" + + "GetBackup\0222.google.spanner.admin.databas" + + "e.v1.GetBackupRequest\032(.google.spanner.a" + + "dmin.database.v1.Backup\":\332A\004name\202\323\344\223\002-\022+" + + "/v1/{name=projects/*/instances/*/backups" + + "/*}\022\310\001\n\014UpdateBackup\0225.google.spanner.ad" + + "min.database.v1.UpdateBackupRequest\032(.go" + + "ogle.spanner.admin.database.v1.Backup\"W\332" + + "A\022backup,update_mask\202\323\344\223\002<22/v1/{backup." + + "name=projects/*/instances/*/backups/*}:\006" + + "backup\022\231\001\n\014DeleteBackup\0225.google.spanner" + + ".admin.database.v1.DeleteBackupRequest\032\026" + + ".google.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/" + + "v1/{name=projects/*/instances/*/backups/" + + "*}\022\270\001\n\013ListBackups\0224.google.spanner.admi" + + "n.database.v1.ListBackupsRequest\0325.googl" + + "e.spanner.admin.database.v1.ListBackupsR" + + "esponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=pr" + + "ojects/*/instances/*}/backups\022\261\002\n\017Restor" + + "eDatabase\0228.google.spanner.admin.databas" + + "e.v1.RestoreDatabaseRequest\032\035.google.lon" + + "grunning.Operation\"\304\001\312Ae\n)google.spanner" + + ".admin.database.v1.Database\0228google.span" + + "ner.admin.database.v1.RestoreDatabaseMet" + + "adata\332A\031parent,database_id,backup\202\323\344\223\002:\"" + + "5/v1/{parent=projects/*/instances/*}/dat" + + "abases:restore:\001*\022\344\001\n\026ListDatabaseOperat" + + "ions\022?.google.spanner.admin.database.v1." + + "ListDatabaseOperationsRequest\032@.google.s" + + "panner.admin.database.v1.ListDatabaseOpe" + + "rationsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{p" + + "arent=projects/*/instances/*}/databaseOp" + + "erations\022\334\001\n\024ListBackupOperations\022=.goog" + + "le.spanner.admin.database.v1.ListBackupO" + + "perationsRequest\032>.google.spanner.admin." + + "database.v1.ListBackupOperationsResponse" + + "\"E\332A\006parent\202\323\344\223\0026\0224/v1/{parent=projects/" + + "*/instances/*}/backupOperations\022\334\001\n\021List" + + "DatabaseRoles\022:.google.spanner.admin.dat" + + "abase.v1.ListDatabaseRolesRequest\032;.goog" + + "le.spanner.admin.database.v1.ListDatabas" + + "eRolesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{pa" + + "rent=projects/*/instances/*/databases/*}" + + "/databaseRoles\032x\312A\026spanner.googleapis.co" + + "m\322A\\https://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/spanner.adminB\330\002\n$com.google.spanner." + + "admin.database.v1B\031SpannerDatabaseAdminP" + + "rotoP\001ZFcloud.google.com/go/spanner/admi" + + "n/database/apiv1/databasepb;databasepb\252\002" + + "&Google.Cloud.Spanner.Admin.Database.V1\312" + + "\002&Google\\Cloud\\Spanner\\Admin\\Database\\V1" + + "\352\002+Google::Cloud::Spanner::Admin::Databa" + + "se::V1\352AJ\n\037spanner.googleapis.com/Instan" + + "ce\022\'projects/{project}/instances/{instan" + + "ce}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.spanner.admin.database.v1.BackupProto.getDescriptor(), + com.google.spanner.admin.database.v1.CommonProto.getDescriptor(), + }); + internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_spanner_admin_database_v1_RestoreInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor, + new java.lang.String[] { "SourceType", "BackupInfo", "SourceInfo", }); + internal_static_google_spanner_admin_database_v1_Database_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_spanner_admin_database_v1_Database_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_Database_descriptor, + new java.lang.String[] { "Name", "State", "CreateTime", "RestoreInfo", "EncryptionConfig", "EncryptionInfo", "VersionRetentionPeriod", "EarliestVersionTime", "DefaultLeader", "DatabaseDialect", "EnableDropProtection", "Reconciling", }); + internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor, + new java.lang.String[] { "Databases", "NextPageToken", }); + internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor, + new java.lang.String[] { "Parent", "CreateStatement", "ExtraStatements", "EncryptionConfig", "DatabaseDialect", "ProtoDescriptors", }); + internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor, + new java.lang.String[] { "Database", }); + internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor, + new java.lang.String[] { "Database", "UpdateMask", }); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor, + new java.lang.String[] { "Request", "Progress", "CancelTime", }); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor, + new java.lang.String[] { "Database", "Statements", "OperationId", "ProtoDescriptors", }); + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor, + new java.lang.String[] { "Action", "EntityType", "EntityNames", }); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor, + new java.lang.String[] { "Database", "Statements", "CommitTimestamps", "Throttled", "Progress", "Actions", }); + internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor, + new java.lang.String[] { "Database", }); + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor, + new java.lang.String[] { "Database", }); + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor, + new java.lang.String[] { "Statements", "ProtoDescriptors", }); + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor, + new java.lang.String[] { "Operations", "NextPageToken", }); + internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor, + new java.lang.String[] { "Parent", "DatabaseId", "Backup", "EncryptionConfig", "Source", }); + internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor, + new java.lang.String[] { "EncryptionType", "KmsKeyName", }); + internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor, + new java.lang.String[] { "Name", "SourceType", "BackupInfo", "Progress", "CancelTime", "OptimizeDatabaseOperationName", "SourceInfo", }); + internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor, + new java.lang.String[] { "Name", "Progress", }); + internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_spanner_admin_database_v1_DatabaseRole_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor, + new java.lang.String[] { "DatabaseRoles", "NextPageToken", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.spanner.admin.database.v1.BackupProto.getDescriptor(); + com.google.spanner.admin.database.v1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java similarity index 68% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java index bf34a574996..312eb41620f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java @@ -1,70 +1,50 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.UpdateBackupRequest} */ -public final class UpdateBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.UpdateBackupRequest) UpdateBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBackupRequest.newBuilder() to construct. private UpdateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private UpdateBackupRequest() {} + private UpdateBackupRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBackupRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateBackupRequest.class, - com.google.spanner.admin.database.v1.UpdateBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.UpdateBackupRequest.class, com.google.spanner.admin.database.v1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.spanner.admin.database.v1.Backup backup_; /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -72,10 +52,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the backup field is set. */ @java.lang.Override @@ -83,8 +60,6 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -92,21 +67,14 @@ public boolean hasBackup() { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return backup_ == null ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -114,22 +82,16 @@ public com.google.spanner.admin.database.v1.Backup getBackup() { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() { - return backup_ == null - ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -138,9 +100,7 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ @java.lang.Override @@ -148,8 +108,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -158,9 +116,7 @@ public boolean hasUpdateMask() { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ @java.lang.Override @@ -168,8 +124,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -178,8 +132,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -187,7 +140,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (backup_ != null) { output.writeMessage(1, getBackup()); } @@ -216,10 +169,12 @@ public int getSerializedSize() { size = 0; if (backup_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBackup()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,21 +184,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.UpdateBackupRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.UpdateBackupRequest other = - (com.google.spanner.admin.database.v1.UpdateBackupRequest) obj; + com.google.spanner.admin.database.v1.UpdateBackupRequest other = (com.google.spanner.admin.database.v1.UpdateBackupRequest) obj; if (hasBackup() != other.hasBackup()) return false; if (hasBackup()) { - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -270,136 +226,131 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateBackupRequest 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.admin.database.v1.UpdateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.UpdateBackupRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.UpdateBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]. * </pre> * * Protobuf type {@code google.spanner.admin.database.v1.UpdateBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.UpdateBackupRequest) com.google.spanner.admin.database.v1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateBackupRequest.class, - com.google.spanner.admin.database.v1.UpdateBackupRequest.Builder.class); + com.google.spanner.admin.database.v1.UpdateBackupRequest.class, com.google.spanner.admin.database.v1.UpdateBackupRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.UpdateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +369,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.BackupProto - .internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.BackupProto.internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -439,11 +390,8 @@ public com.google.spanner.admin.database.v1.UpdateBackupRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.UpdateBackupRequest buildPartial() { - com.google.spanner.admin.database.v1.UpdateBackupRequest result = - new com.google.spanner.admin.database.v1.UpdateBackupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.UpdateBackupRequest result = new com.google.spanner.admin.database.v1.UpdateBackupRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -451,10 +399,14 @@ public com.google.spanner.admin.database.v1.UpdateBackupRequest buildPartial() { private void buildPartial0(com.google.spanner.admin.database.v1.UpdateBackupRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.build(); + result.backup_ = backupBuilder_ == null + ? backup_ + : backupBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -462,39 +414,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.UpdateBackupRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.UpdateBackupRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.UpdateBackupRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.UpdateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -502,8 +453,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateBackupRequest other) { - if (other == com.google.spanner.admin.database.v1.UpdateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.UpdateBackupRequest.getDefaultInstance()) return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -536,25 +486,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,18 +515,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_; + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder> backupBuilder_; /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -583,18 +528,13 @@ public Builder mergeFrom( * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the backup field is set. */ public boolean hasBackup() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -602,24 +542,17 @@ public boolean hasBackup() { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return backup_ == null ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -627,9 +560,7 @@ public com.google.spanner.admin.database.v1.Backup getBackup() { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setBackup(com.google.spanner.admin.database.v1.Backup value) { if (backupBuilder_ == null) { @@ -645,8 +576,6 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup value) { return this; } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -654,11 +583,10 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup value) { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.spanner.admin.database.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); } else { @@ -669,8 +597,6 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder bui return this; } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -678,15 +604,13 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder bui * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { if (backupBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && backup_ != null - && backup_ != com.google.spanner.admin.database.v1.Backup.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + backup_ != null && + backup_ != com.google.spanner.admin.database.v1.Backup.getDefaultInstance()) { getBackupBuilder().mergeFrom(value); } else { backup_ = value; @@ -699,8 +623,6 @@ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { return this; } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -708,9 +630,7 @@ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearBackup() { bitField0_ = (bitField0_ & ~0x00000001); @@ -723,8 +643,6 @@ public Builder clearBackup() { return this; } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -732,9 +650,7 @@ public Builder clearBackup() { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.spanner.admin.database.v1.Backup.Builder getBackupBuilder() { bitField0_ |= 0x00000001; @@ -742,8 +658,6 @@ public com.google.spanner.admin.database.v1.Backup.Builder getBackupBuilder() { return getBackupFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -751,22 +665,17 @@ public com.google.spanner.admin.database.v1.Backup.Builder getBackupBuilder() { * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ 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_; + return backup_ == null ? + com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -774,22 +683,17 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ 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> + 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()); + 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_; @@ -797,13 +701,8 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -812,17 +711,13 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -831,23 +726,17 @@ public boolean hasUpdateMask() { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -856,8 +745,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -873,8 +761,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -883,10 +769,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -897,8 +783,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -907,14 +791,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -927,8 +810,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -937,8 +818,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -951,8 +831,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -961,8 +839,7 @@ public Builder clearUpdateMask() { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -970,8 +847,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -980,21 +855,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -1003,28 +874,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1034,12 +901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.UpdateBackupRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateBackupRequest) private static final com.google.spanner.admin.database.v1.UpdateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.UpdateBackupRequest(); } @@ -1048,27 +915,27 @@ public static com.google.spanner.admin.database.v1.UpdateBackupRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateBackupRequest> PARSER = - new com.google.protobuf.AbstractParser<UpdateBackupRequest>() { - @java.lang.Override - public UpdateBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateBackupRequest> + PARSER = new com.google.protobuf.AbstractParser<UpdateBackupRequest>() { + @java.lang.Override + public UpdateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateBackupRequest> parser() { return PARSER; @@ -1083,4 +950,6 @@ public com.google.protobuf.Parser<UpdateBackupRequest> getParserForType() { public com.google.spanner.admin.database.v1.UpdateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java index cffc8d5e4f2..38228c92a89 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/database/v1/backup.proto package com.google.spanner.admin.database.v1; -public interface UpdateBackupRequestOrBuilder - extends +public interface UpdateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.UpdateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -33,16 +15,11 @@ public interface UpdateBackupRequestOrBuilder * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -50,16 +27,11 @@ public interface UpdateBackupRequestOrBuilder * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The backup. */ com.google.spanner.admin.database.v1.Backup getBackup(); /** - * - * * <pre> * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. @@ -67,15 +39,11 @@ public interface UpdateBackupRequestOrBuilder * * `backup.expire_time`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder(); /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -84,15 +52,11 @@ public interface UpdateBackupRequestOrBuilder * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -101,15 +65,11 @@ public interface UpdateBackupRequestOrBuilder * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * * <pre> * Required. A mask specifying which fields (e.g. `expire_time`) in the * Backup resource should be updated. This mask is relative to the Backup @@ -118,8 +78,7 @@ public interface UpdateBackupRequestOrBuilder * by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java similarity index 79% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java index 552455f8175..e05cdb83e93 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Metadata type for the operation returned by * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. @@ -28,19 +11,19 @@ * * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata} */ -public final class UpdateDatabaseDdlMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDatabaseDdlMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) UpdateDatabaseDdlMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDatabaseDdlMetadata.newBuilder() to construct. private UpdateDatabaseDdlMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private UpdateDatabaseDdlMetadata() { database_ = ""; - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); commitTimestamps_ = java.util.Collections.emptyList(); progress_ = java.util.Collections.emptyList(); actions_ = java.util.Collections.emptyList(); @@ -48,38 +31,33 @@ private UpdateDatabaseDdlMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDatabaseDdlMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.class, - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.Builder.class); + com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.class, com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ @java.lang.Override @@ -88,29 +66,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -119,50 +97,41 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } public static final int STATEMENTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @return A list containing the statements. */ - public com.google.protobuf.ProtocolStringList getStatementsList() { + public com.google.protobuf.ProtocolStringList + getStatementsList() { return statements_; } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @return The count of statements. */ public int getStatementsCount() { return statements_.size(); } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ @@ -170,29 +139,24 @@ public java.lang.String getStatements(int index) { return statements_.get(index); } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - public com.google.protobuf.ByteString getStatementsBytes(int index) { + public com.google.protobuf.ByteString + getStatementsBytes(int index) { return statements_.getByteString(index); } public static final int COMMIT_TIMESTAMPS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List<com.google.protobuf.Timestamp> commitTimestamps_; /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -206,8 +170,6 @@ public java.util.List<com.google.protobuf.Timestamp> getCommitTimestampsList() { return commitTimestamps_; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -217,13 +179,11 @@ public java.util.List<com.google.protobuf.Timestamp> getCommitTimestampsList() { * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ @java.lang.Override - public java.util.List<? extends com.google.protobuf.TimestampOrBuilder> + public java.util.List<? extends com.google.protobuf.TimestampOrBuilder> getCommitTimestampsOrBuilderList() { return commitTimestamps_; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -237,8 +197,6 @@ public int getCommitTimestampsCount() { return commitTimestamps_.size(); } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -252,8 +210,6 @@ public com.google.protobuf.Timestamp getCommitTimestamps(int index) { return commitTimestamps_.get(index); } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -263,15 +219,14 @@ public com.google.protobuf.Timestamp getCommitTimestamps(int index) { * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder(int index) { + public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder( + int index) { return commitTimestamps_.get(index); } public static final int THROTTLED_FIELD_NUMBER = 4; private boolean throttled_ = false; /** - * - * * <pre> * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation @@ -279,7 +234,6 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder(int i * </pre> * * <code>bool throttled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The throttled. */ @java.lang.Override @@ -288,12 +242,9 @@ public boolean getThrottled() { } public static final int PROGRESS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.database.v1.OperationProgress> progress_; /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -311,8 +262,6 @@ public java.util.List<com.google.spanner.admin.database.v1.OperationProgress> ge return progress_; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -326,13 +275,11 @@ public java.util.List<com.google.spanner.admin.database.v1.OperationProgress> ge * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + public java.util.List<? extends com.google.spanner.admin.database.v1.OperationProgressOrBuilder> getProgressOrBuilderList() { return progress_; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -350,8 +297,6 @@ public int getProgressCount() { return progress_.size(); } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -369,8 +314,6 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress(int in return progress_.get(index); } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -390,12 +333,9 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre } public static final int ACTIONS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo> actions_; /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -404,13 +344,10 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ @java.lang.Override - public java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo> - getActionsList() { + public java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo> getActionsList() { return actions_; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -419,14 +356,11 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ @java.lang.Override - public java.util.List< - ? extends com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> + public java.util.List<? extends com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> getActionsOrBuilderList() { return actions_; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -439,8 +373,6 @@ public int getActionsCount() { return actions_.size(); } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -453,8 +385,6 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfo getActions(in return actions_.get(index); } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -469,7 +399,6 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder getA } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -481,7 +410,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -521,16 +451,20 @@ public int getSerializedSize() { size += 1 * getStatementsList().size(); } for (int i = 0; i < commitTimestamps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, commitTimestamps_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, commitTimestamps_.get(i)); } if (throttled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, throttled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, throttled_); } for (int i = 0; i < progress_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, progress_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, progress_.get(i)); } for (int i = 0; i < actions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, actions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, actions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -540,20 +474,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata other = - (com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) obj; - - if (!getDatabase().equals(other.getDatabase())) return false; - if (!getStatementsList().equals(other.getStatementsList())) return false; - if (!getCommitTimestampsList().equals(other.getCommitTimestampsList())) return false; - if (getThrottled() != other.getThrottled()) return false; - if (!getProgressList().equals(other.getProgressList())) return false; - if (!getActionsList().equals(other.getActionsList())) return false; + com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata other = (com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) obj; + + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (!getStatementsList() + .equals(other.getStatementsList())) return false; + if (!getCommitTimestampsList() + .equals(other.getCommitTimestampsList())) return false; + if (getThrottled() + != other.getThrottled()) return false; + if (!getProgressList() + .equals(other.getProgressList())) return false; + if (!getActionsList() + .equals(other.getActionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -576,7 +515,8 @@ public int hashCode() { hash = (53 * hash) + getCommitTimestampsList().hashCode(); } hash = (37 * hash) + THROTTLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThrottled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getThrottled()); if (getProgressCount() > 0) { hash = (37 * hash) + PROGRESS_FIELD_NUMBER; hash = (53 * hash) + getProgressList().hashCode(); @@ -591,104 +531,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata 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.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the operation returned by * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. @@ -696,38 +630,40 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.class, - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.Builder.class); + com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.class, com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.Builder.class); } // Construct using com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; database_ = ""; - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (commitTimestampsBuilder_ == null) { commitTimestamps_ = java.util.Collections.emptyList(); } else { @@ -754,14 +690,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.getDefaultInstance(); } @@ -776,18 +711,14 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata build() { @java.lang.Override public com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata buildPartial() { - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result = - new com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata(this); + com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result = new com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result) { if (commitTimestampsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { commitTimestamps_ = java.util.Collections.unmodifiableList(commitTimestamps_); @@ -817,8 +748,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result) { + private void buildPartial0(com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; @@ -836,39 +766,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) { - return mergeFrom((com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) other); + return mergeFrom((com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata)other); } else { super.mergeFrom(other); return this; @@ -876,9 +805,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata other) { - if (other - == com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; bitField0_ |= 0x00000001; @@ -912,10 +839,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseDdlM commitTimestampsBuilder_ = null; commitTimestamps_ = other.commitTimestamps_; bitField0_ = (bitField0_ & ~0x00000004); - commitTimestampsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCommitTimestampsFieldBuilder() - : null; + commitTimestampsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCommitTimestampsFieldBuilder() : null; } else { commitTimestampsBuilder_.addAllMessages(other.commitTimestamps_); } @@ -942,10 +868,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseDdlM progressBuilder_ = null; progress_ = other.progress_; bitField0_ = (bitField0_ & ~0x00000010); - progressBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProgressFieldBuilder() - : null; + progressBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProgressFieldBuilder() : null; } else { progressBuilder_.addAllMessages(other.progress_); } @@ -969,10 +894,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseDdlM actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000020); - actionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getActionsFieldBuilder() - : null; + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } @@ -1004,72 +928,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStatementsIsMutable(); - statements_.add(s); - break; - } // case 18 - case 26: - { - com.google.protobuf.Timestamp m = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (commitTimestampsBuilder_ == null) { - ensureCommitTimestampsIsMutable(); - commitTimestamps_.add(m); - } else { - commitTimestampsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: - { - throttled_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - com.google.spanner.admin.database.v1.OperationProgress m = - input.readMessage( - com.google.spanner.admin.database.v1.OperationProgress.parser(), - extensionRegistry); - if (progressBuilder_ == null) { - ensureProgressIsMutable(); - progress_.add(m); - } else { - progressBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - com.google.spanner.admin.database.v1.DdlStatementActionInfo m = - input.readMessage( - com.google.spanner.admin.database.v1.DdlStatementActionInfo.parser(), - extensionRegistry); - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - actions_.add(m); - } else { - actionsBuilder_.addMessage(m); - } - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStatementsIsMutable(); + statements_.add(s); + break; + } // case 18 + case 26: { + com.google.protobuf.Timestamp m = + input.readMessage( + com.google.protobuf.Timestamp.parser(), + extensionRegistry); + if (commitTimestampsBuilder_ == null) { + ensureCommitTimestampsIsMutable(); + commitTimestamps_.add(m); + } else { + commitTimestampsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: { + throttled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + com.google.spanner.admin.database.v1.OperationProgress m = + input.readMessage( + com.google.spanner.admin.database.v1.OperationProgress.parser(), + extensionRegistry); + if (progressBuilder_ == null) { + ensureProgressIsMutable(); + progress_.add(m); + } else { + progressBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + com.google.spanner.admin.database.v1.DdlStatementActionInfo m = + input.readMessage( + com.google.spanner.admin.database.v1.DdlStatementActionInfo.parser(), + extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1079,25 +998,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object database_ = ""; /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -1106,21 +1022,20 @@ public java.lang.String getDatabase() { } } /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -1128,35 +1043,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -1166,21 +1074,17 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -1190,7 +1094,6 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStatementsIsMutable() { if (!statements_.isModifiable()) { statements_ = new com.google.protobuf.LazyStringArrayList(statements_); @@ -1198,46 +1101,38 @@ private void ensureStatementsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @return A list containing the statements. */ - public com.google.protobuf.ProtocolStringList getStatementsList() { + public com.google.protobuf.ProtocolStringList + getStatementsList() { statements_.makeImmutable(); return statements_; } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @return The count of statements. */ public int getStatementsCount() { return statements_.size(); } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ @@ -1245,39 +1140,33 @@ public java.lang.String getStatements(int index) { return statements_.get(index); } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - public com.google.protobuf.ByteString getStatementsBytes(int index) { + public com.google.protobuf.ByteString + getStatementsBytes(int index) { return statements_.getByteString(index); } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param index The index to set the value at. * @param value The statements to set. * @return This builder for chaining. */ - public Builder setStatements(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatements( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.set(index, value); bitField0_ |= 0x00000002; @@ -1285,22 +1174,18 @@ public Builder setStatements(int index, java.lang.String value) { return this; } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param value The statements to add. * @return This builder for chaining. */ - public Builder addStatements(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStatements( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.add(value); bitField0_ |= 0x00000002; @@ -1308,61 +1193,53 @@ public Builder addStatements(java.lang.String value) { return this; } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param values The statements to add. * @return This builder for chaining. */ - public Builder addAllStatements(java.lang.Iterable<java.lang.String> values) { + public Builder addAllStatements( + java.lang.Iterable<java.lang.String> values) { ensureStatementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, statements_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @return This builder for chaining. */ public Builder clearStatements() { - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param value The bytes of the statements to add. * @return This builder for chaining. */ - public Builder addStatementsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStatementsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStatementsIsMutable(); statements_.add(value); @@ -1372,25 +1249,18 @@ public Builder addStatementsBytes(com.google.protobuf.ByteString value) { } private java.util.List<com.google.protobuf.Timestamp> commitTimestamps_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCommitTimestampsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - commitTimestamps_ = - new java.util.ArrayList<com.google.protobuf.Timestamp>(commitTimestamps_); + commitTimestamps_ = new java.util.ArrayList<com.google.protobuf.Timestamp>(commitTimestamps_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - commitTimestampsBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimestampsBuilder_; /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1407,8 +1277,6 @@ public java.util.List<com.google.protobuf.Timestamp> getCommitTimestampsList() { } } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1425,8 +1293,6 @@ public int getCommitTimestampsCount() { } } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1443,8 +1309,6 @@ public com.google.protobuf.Timestamp getCommitTimestamps(int index) { } } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1453,7 +1317,8 @@ public com.google.protobuf.Timestamp getCommitTimestamps(int index) { * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - public Builder setCommitTimestamps(int index, com.google.protobuf.Timestamp value) { + public Builder setCommitTimestamps( + int index, com.google.protobuf.Timestamp value) { if (commitTimestampsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1467,8 +1332,6 @@ public Builder setCommitTimestamps(int index, com.google.protobuf.Timestamp valu return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1489,8 +1352,6 @@ public Builder setCommitTimestamps( return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1513,8 +1374,6 @@ public Builder addCommitTimestamps(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1523,7 +1382,8 @@ public Builder addCommitTimestamps(com.google.protobuf.Timestamp value) { * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - public Builder addCommitTimestamps(int index, com.google.protobuf.Timestamp value) { + public Builder addCommitTimestamps( + int index, com.google.protobuf.Timestamp value) { if (commitTimestampsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1537,8 +1397,6 @@ public Builder addCommitTimestamps(int index, com.google.protobuf.Timestamp valu return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1547,7 +1405,8 @@ public Builder addCommitTimestamps(int index, com.google.protobuf.Timestamp valu * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - public Builder addCommitTimestamps(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder addCommitTimestamps( + com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.add(builderForValue.build()); @@ -1558,8 +1417,6 @@ public Builder addCommitTimestamps(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1580,8 +1437,6 @@ public Builder addCommitTimestamps( return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1594,7 +1449,8 @@ public Builder addAllCommitTimestamps( java.lang.Iterable<? extends com.google.protobuf.Timestamp> values) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commitTimestamps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, commitTimestamps_); onChanged(); } else { commitTimestampsBuilder_.addAllMessages(values); @@ -1602,8 +1458,6 @@ public Builder addAllCommitTimestamps( return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1623,8 +1477,6 @@ public Builder clearCommitTimestamps() { return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1644,8 +1496,6 @@ public Builder removeCommitTimestamps(int index) { return this; } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1654,12 +1504,11 @@ public Builder removeCommitTimestamps(int index) { * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - public com.google.protobuf.Timestamp.Builder getCommitTimestampsBuilder(int index) { + public com.google.protobuf.Timestamp.Builder getCommitTimestampsBuilder( + int index) { return getCommitTimestampsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1668,16 +1517,14 @@ public com.google.protobuf.Timestamp.Builder getCommitTimestampsBuilder(int inde * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder(int index) { + public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder( + int index) { if (commitTimestampsBuilder_ == null) { - return commitTimestamps_.get(index); - } else { + return commitTimestamps_.get(index); } else { return commitTimestampsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1686,8 +1533,8 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder(int i * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - public java.util.List<? extends com.google.protobuf.TimestampOrBuilder> - getCommitTimestampsOrBuilderList() { + public java.util.List<? extends com.google.protobuf.TimestampOrBuilder> + getCommitTimestampsOrBuilderList() { if (commitTimestampsBuilder_ != null) { return commitTimestampsBuilder_.getMessageOrBuilderList(); } else { @@ -1695,8 +1542,6 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder(int i } } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1706,12 +1551,10 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder(int i * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public com.google.protobuf.Timestamp.Builder addCommitTimestampsBuilder() { - return getCommitTimestampsFieldBuilder() - .addBuilder(com.google.protobuf.Timestamp.getDefaultInstance()); + return getCommitTimestampsFieldBuilder().addBuilder( + com.google.protobuf.Timestamp.getDefaultInstance()); } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1720,13 +1563,12 @@ public com.google.protobuf.Timestamp.Builder addCommitTimestampsBuilder() { * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - public com.google.protobuf.Timestamp.Builder addCommitTimestampsBuilder(int index) { - return getCommitTimestampsFieldBuilder() - .addBuilder(index, com.google.protobuf.Timestamp.getDefaultInstance()); + public com.google.protobuf.Timestamp.Builder addCommitTimestampsBuilder( + int index) { + return getCommitTimestampsFieldBuilder().addBuilder( + index, com.google.protobuf.Timestamp.getDefaultInstance()); } /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -1735,21 +1577,16 @@ public com.google.protobuf.Timestamp.Builder addCommitTimestampsBuilder(int inde * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - public java.util.List<com.google.protobuf.Timestamp.Builder> getCommitTimestampsBuilderList() { + public java.util.List<com.google.protobuf.Timestamp.Builder> + getCommitTimestampsBuilderList() { return getCommitTimestampsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCommitTimestampsFieldBuilder() { if (commitTimestampsBuilder_ == null) { - commitTimestampsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( + commitTimestampsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( commitTimestamps_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -1759,10 +1596,8 @@ public java.util.List<com.google.protobuf.Timestamp.Builder> getCommitTimestamps return commitTimestampsBuilder_; } - private boolean throttled_; + private boolean throttled_ ; /** - * - * * <pre> * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation @@ -1770,7 +1605,6 @@ public java.util.List<com.google.protobuf.Timestamp.Builder> getCommitTimestamps * </pre> * * <code>bool throttled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The throttled. */ @java.lang.Override @@ -1778,8 +1612,6 @@ public boolean getThrottled() { return throttled_; } /** - * - * * <pre> * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation @@ -1787,7 +1619,6 @@ public boolean getThrottled() { * </pre> * * <code>bool throttled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @param value The throttled to set. * @return This builder for chaining. */ @@ -1799,8 +1630,6 @@ public Builder setThrottled(boolean value) { return this; } /** - * - * * <pre> * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation @@ -1808,7 +1637,6 @@ public Builder setThrottled(boolean value) { * </pre> * * <code>bool throttled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return This builder for chaining. */ public Builder clearThrottled() { @@ -1819,26 +1647,18 @@ public Builder clearThrottled() { } private java.util.List<com.google.spanner.admin.database.v1.OperationProgress> progress_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProgressIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - progress_ = - new java.util.ArrayList<com.google.spanner.admin.database.v1.OperationProgress>( - progress_); + progress_ = new java.util.ArrayList<com.google.spanner.admin.database.v1.OperationProgress>(progress_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> - progressBuilder_; + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> progressBuilder_; /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -1851,8 +1671,7 @@ private void ensureProgressIsMutable() { * * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.OperationProgress> - getProgressList() { + public java.util.List<com.google.spanner.admin.database.v1.OperationProgress> getProgressList() { if (progressBuilder_ == null) { return java.util.Collections.unmodifiableList(progress_); } else { @@ -1860,8 +1679,6 @@ private void ensureProgressIsMutable() { } } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -1882,8 +1699,6 @@ public int getProgressCount() { } } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -1904,8 +1719,6 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress(int in } } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -1933,8 +1746,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -1959,8 +1770,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -1987,8 +1796,6 @@ public Builder addProgress(com.google.spanner.admin.database.v1.OperationProgres return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2016,8 +1823,6 @@ public Builder addProgress( return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2042,8 +1847,6 @@ public Builder addProgress( return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2068,8 +1871,6 @@ public Builder addProgress( return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2083,11 +1884,11 @@ public Builder addProgress( * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ public Builder addAllProgress( - java.lang.Iterable<? extends com.google.spanner.admin.database.v1.OperationProgress> - values) { + java.lang.Iterable<? extends com.google.spanner.admin.database.v1.OperationProgress> values) { if (progressBuilder_ == null) { ensureProgressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, progress_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, progress_); onChanged(); } else { progressBuilder_.addAllMessages(values); @@ -2095,8 +1896,6 @@ public Builder addAllProgress( return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2120,8 +1919,6 @@ public Builder clearProgress() { return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2145,8 +1942,6 @@ public Builder removeProgress(int index) { return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2164,8 +1959,6 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres return getProgressFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2181,14 +1974,11 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder( int index) { if (progressBuilder_ == null) { - return progress_.get(index); - } else { + return progress_.get(index); } else { return progressBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2201,8 +1991,8 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ - public java.util.List<? extends com.google.spanner.admin.database.v1.OperationProgressOrBuilder> - getProgressOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + getProgressOrBuilderList() { if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilderList(); } else { @@ -2210,8 +2000,6 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre } } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2225,12 +2013,10 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ public com.google.spanner.admin.database.v1.OperationProgress.Builder addProgressBuilder() { - return getProgressFieldBuilder() - .addBuilder(com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()); + return getProgressFieldBuilder().addBuilder( + com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()); } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2245,13 +2031,10 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder addProgres */ public com.google.spanner.admin.database.v1.OperationProgress.Builder addProgressBuilder( int index) { - return getProgressFieldBuilder() - .addBuilder( - index, com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()); + return getProgressFieldBuilder().addBuilder( + index, com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()); } /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -2264,49 +2047,38 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder addProgres * * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.OperationProgress.Builder> - getProgressBuilderList() { + public java.util.List<com.google.spanner.admin.database.v1.OperationProgress.Builder> + getProgressBuilderList() { return getProgressFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( - progress_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( + progress_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; } private java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo> actions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - actions_ = - new java.util.ArrayList<com.google.spanner.admin.database.v1.DdlStatementActionInfo>( - actions_); + actions_ = new java.util.ArrayList<com.google.spanner.admin.database.v1.DdlStatementActionInfo>(actions_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.DdlStatementActionInfo, - com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder, - com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> - actionsBuilder_; + com.google.spanner.admin.database.v1.DdlStatementActionInfo, com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder, com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> actionsBuilder_; /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2314,8 +2086,7 @@ private void ensureActionsIsMutable() { * * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo> - getActionsList() { + public java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo> getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { @@ -2323,8 +2094,6 @@ private void ensureActionsIsMutable() { } } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2340,8 +2109,6 @@ public int getActionsCount() { } } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2357,8 +2124,6 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfo getActions(in } } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2381,8 +2146,6 @@ public Builder setActions( return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2391,8 +2154,7 @@ public Builder setActions( * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ public Builder setActions( - int index, - com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder builderForValue) { + int index, com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); @@ -2403,8 +2165,6 @@ public Builder setActions( return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2426,8 +2186,6 @@ public Builder addActions(com.google.spanner.admin.database.v1.DdlStatementActio return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2450,8 +2208,6 @@ public Builder addActions( return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2471,8 +2227,6 @@ public Builder addActions( return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2481,8 +2235,7 @@ public Builder addActions( * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ public Builder addActions( - int index, - com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder builderForValue) { + int index, com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); @@ -2493,8 +2246,6 @@ public Builder addActions( return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2503,11 +2254,11 @@ public Builder addActions( * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ public Builder addAllActions( - java.lang.Iterable<? extends com.google.spanner.admin.database.v1.DdlStatementActionInfo> - values) { + java.lang.Iterable<? extends com.google.spanner.admin.database.v1.DdlStatementActionInfo> values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); @@ -2515,8 +2266,6 @@ public Builder addAllActions( return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2535,8 +2284,6 @@ public Builder clearActions() { return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2555,8 +2302,6 @@ public Builder removeActions(int index) { return this; } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2569,8 +2314,6 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder getAc return getActionsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2581,14 +2324,11 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder getAc public com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { - return actions_.get(index); - } else { + return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2596,9 +2336,8 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder getA * * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ - public java.util.List< - ? extends com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> - getActionsOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> + getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { @@ -2606,8 +2345,6 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder getA } } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2616,13 +2353,10 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder getA * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ public com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder addActionsBuilder() { - return getActionsFieldBuilder() - .addBuilder( - com.google.spanner.admin.database.v1.DdlStatementActionInfo.getDefaultInstance()); + return getActionsFieldBuilder().addBuilder( + com.google.spanner.admin.database.v1.DdlStatementActionInfo.getDefaultInstance()); } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2632,14 +2366,10 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder addAc */ public com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder addActionsBuilder( int index) { - return getActionsFieldBuilder() - .addBuilder( - index, - com.google.spanner.admin.database.v1.DdlStatementActionInfo.getDefaultInstance()); + return getActionsFieldBuilder().addBuilder( + index, com.google.spanner.admin.database.v1.DdlStatementActionInfo.getDefaultInstance()); } /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -2647,30 +2377,27 @@ public com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder addAc * * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder> - getActionsBuilderList() { + public java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder> + getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.DdlStatementActionInfo, - com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder, - com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> + com.google.spanner.admin.database.v1.DdlStatementActionInfo, com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder, com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { - actionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.DdlStatementActionInfo, - com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder, - com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder>( - actions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.DdlStatementActionInfo, com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder, com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder>( + actions_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); actions_ = null; } return actionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2680,43 +2407,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) - private static final com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata(); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata - getDefaultInstance() { + public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateDatabaseDdlMetadata> PARSER = - new com.google.protobuf.AbstractParser<UpdateDatabaseDdlMetadata>() { - @java.lang.Override - public UpdateDatabaseDdlMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateDatabaseDdlMetadata> + PARSER = new com.google.protobuf.AbstractParser<UpdateDatabaseDdlMetadata>() { + @java.lang.Override + public UpdateDatabaseDdlMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateDatabaseDdlMetadata> parser() { return PARSER; @@ -2728,8 +2453,9 @@ public com.google.protobuf.Parser<UpdateDatabaseDdlMetadata> getParserForType() } @java.lang.Override - public com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java similarity index 87% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java index 1668105e9ca..70f0302b447 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadataOrBuilder.java @@ -1,111 +1,78 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface UpdateDatabaseDdlMetadataOrBuilder - extends +public interface UpdateDatabaseDdlMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The database. */ java.lang.String getDatabase(); /** - * - * * <pre> * The database being modified. * </pre> * * <code>string database = 1 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @return A list containing the statements. */ - java.util.List<java.lang.String> getStatementsList(); + java.util.List<java.lang.String> + getStatementsList(); /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @return The count of statements. */ int getStatementsCount(); /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ java.lang.String getStatements(int index); /** - * - * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - com.google.protobuf.ByteString getStatementsBytes(int index); + com.google.protobuf.ByteString + getStatementsBytes(int index); /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -114,10 +81,9 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - java.util.List<com.google.protobuf.Timestamp> getCommitTimestampsList(); + java.util.List<com.google.protobuf.Timestamp> + getCommitTimestampsList(); /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -128,8 +94,6 @@ public interface UpdateDatabaseDdlMetadataOrBuilder */ com.google.protobuf.Timestamp getCommitTimestamps(int index); /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -140,8 +104,6 @@ public interface UpdateDatabaseDdlMetadataOrBuilder */ int getCommitTimestampsCount(); /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -150,11 +112,9 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - java.util.List<? extends com.google.protobuf.TimestampOrBuilder> + java.util.List<? extends com.google.protobuf.TimestampOrBuilder> getCommitTimestampsOrBuilderList(); /** - * - * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit @@ -163,11 +123,10 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ - com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder(int index); + com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder( + int index); /** - * - * * <pre> * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation @@ -175,14 +134,11 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * </pre> * * <code>bool throttled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The throttled. */ boolean getThrottled(); /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -195,10 +151,9 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ - java.util.List<com.google.spanner.admin.database.v1.OperationProgress> getProgressList(); + java.util.List<com.google.spanner.admin.database.v1.OperationProgress> + getProgressList(); /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -213,8 +168,6 @@ public interface UpdateDatabaseDdlMetadataOrBuilder */ com.google.spanner.admin.database.v1.OperationProgress getProgress(int index); /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -229,8 +182,6 @@ public interface UpdateDatabaseDdlMetadataOrBuilder */ int getProgressCount(); /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -243,11 +194,9 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ - java.util.List<? extends com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + java.util.List<? extends com.google.spanner.admin.database.v1.OperationProgressOrBuilder> getProgressOrBuilderList(); /** - * - * * <pre> * The progress of the * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] @@ -260,11 +209,10 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * * <code>repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;</code> */ - com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder(int index); + com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder( + int index); /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -272,10 +220,9 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ - java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo> getActionsList(); + java.util.List<com.google.spanner.admin.database.v1.DdlStatementActionInfo> + getActionsList(); /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -285,8 +232,6 @@ public interface UpdateDatabaseDdlMetadataOrBuilder */ com.google.spanner.admin.database.v1.DdlStatementActionInfo getActions(int index); /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -296,8 +241,6 @@ public interface UpdateDatabaseDdlMetadataOrBuilder */ int getActionsCount(); /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. @@ -305,11 +248,9 @@ public interface UpdateDatabaseDdlMetadataOrBuilder * * <code>repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;</code> */ - java.util.List<? extends com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> + java.util.List<? extends com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> getActionsOrBuilderList(); /** - * - * * <pre> * The brief action info for the DDL statements. * `actions[i]` is the brief info for `statements[i]`. diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java similarity index 67% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java index dee90581940..8892e9d95d4 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Enqueues the given DDL statements to be applied, in order but not * necessarily all at once, to the database schema at some point (or @@ -42,58 +25,52 @@ * * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseDdlRequest} */ -public final class UpdateDatabaseDdlRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDatabaseDdlRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) UpdateDatabaseDdlRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDatabaseDdlRequest.newBuilder() to construct. private UpdateDatabaseDdlRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private UpdateDatabaseDdlRequest() { database_ = ""; - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); operationId_ = ""; + protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDatabaseDdlRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.class, - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.Builder.class); + com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.class, com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The database. */ @java.lang.Override @@ -102,31 +79,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -135,47 +110,38 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } public static final int STATEMENTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return A list containing the statements. */ - public com.google.protobuf.ProtocolStringList getStatementsList() { + public com.google.protobuf.ProtocolStringList + getStatementsList() { return statements_; } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The count of statements. */ public int getStatementsCount() { return statements_.size(); } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ @@ -183,28 +149,23 @@ public java.lang.String getStatements(int index) { return statements_.get(index); } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - public com.google.protobuf.ByteString getStatementsBytes(int index) { + public com.google.protobuf.ByteString + getStatementsBytes(int index) { return statements_.getByteString(index); } public static final int OPERATION_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object operationId_ = ""; /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -228,7 +189,6 @@ public com.google.protobuf.ByteString getStatementsBytes(int index) { * </pre> * * <code>string operation_id = 3;</code> - * * @return The operationId. */ @java.lang.Override @@ -237,15 +197,14 @@ public java.lang.String getOperationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } } /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -269,15 +228,16 @@ public java.lang.String getOperationId() { * </pre> * * <code>string operation_id = 3;</code> - * * @return The bytes for operationId. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationIdBytes() { + public com.google.protobuf.ByteString + getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationId_ = b; return b; } else { @@ -285,8 +245,35 @@ public com.google.protobuf.ByteString getOperationIdBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int PROTO_DESCRIPTORS_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 4 [(.google.api.field_behavior) = OPTIONAL];</code> + * @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; @@ -298,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -308,6 +296,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); } + if (!protoDescriptors_.isEmpty()) { + output.writeBytes(4, protoDescriptors_); + } getUnknownFields().writeTo(output); } @@ -331,6 +322,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); } + if (!protoDescriptors_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, protoDescriptors_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -339,17 +334,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest other = - (com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) obj; - - if (!getDatabase().equals(other.getDatabase())) return false; - if (!getStatementsList().equals(other.getStatementsList())) return false; - if (!getOperationId().equals(other.getOperationId())) return false; + com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest other = (com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) obj; + + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (!getStatementsList() + .equals(other.getStatementsList())) return false; + if (!getOperationId() + .equals(other.getOperationId())) return false; + if (!getProtoDescriptors() + .equals(other.getProtoDescriptors())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,110 +368,106 @@ public int hashCode() { } hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOperationId().hashCode(); + 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.admin.database.v1.UpdateDatabaseDdlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest 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.admin.database.v1.UpdateDatabaseDdlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Enqueues the given DDL statements to be applied, in order but not * necessarily all at once, to the database schema at some point (or @@ -494,51 +489,53 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseDdlRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.class, - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.Builder.class); + com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.class, com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; database_ = ""; - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); operationId_ = ""; + protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest getDefaultInstanceForType() { return com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.getDefaultInstance(); } @@ -553,17 +550,13 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest buildPartial() { - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest result = - new com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest result = new com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest result) { + private void buildPartial0(com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; @@ -575,45 +568,47 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.operationId_ = operationId_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.protoDescriptors_ = protoDescriptors_; + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest)other); } else { super.mergeFrom(other); return this; @@ -621,9 +616,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest other) { - if (other - == com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; bitField0_ |= 0x00000001; @@ -644,6 +637,9 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseDdlR bitField0_ |= 0x00000004; onChanged(); } + if (other.getProtoDescriptors() != com.google.protobuf.ByteString.EMPTY) { + setProtoDescriptors(other.getProtoDescriptors()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -670,32 +666,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStatementsIsMutable(); - statements_.add(s); - break; - } // case 18 - case 26: - { - operationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStatementsIsMutable(); + statements_.add(s); + break; + } // case 18 + case 26: { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + protoDescriptors_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -705,27 +702,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object database_ = ""; /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -734,23 +726,20 @@ public java.lang.String getDatabase() { } } /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -758,39 +747,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearDatabase() { @@ -800,23 +778,17 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -826,7 +798,6 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStatementsIsMutable() { if (!statements_.isModifiable()) { statements_ = new com.google.protobuf.LazyStringArrayList(statements_); @@ -834,43 +805,35 @@ private void ensureStatementsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return A list containing the statements. */ - public com.google.protobuf.ProtocolStringList getStatementsList() { + public com.google.protobuf.ProtocolStringList + getStatementsList() { statements_.makeImmutable(); return statements_; } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The count of statements. */ public int getStatementsCount() { return statements_.size(); } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ @@ -878,37 +841,31 @@ public java.lang.String getStatements(int index) { return statements_.get(index); } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - public com.google.protobuf.ByteString getStatementsBytes(int index) { + public com.google.protobuf.ByteString + getStatementsBytes(int index) { return statements_.getByteString(index); } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param index The index to set the value at. * @param value The statements to set. * @return This builder for chaining. */ - public Builder setStatements(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatements( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.set(index, value); bitField0_ |= 0x00000002; @@ -916,21 +873,17 @@ public Builder setStatements(int index, java.lang.String value) { return this; } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The statements to add. * @return This builder for chaining. */ - public Builder addStatements(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStatements( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.add(value); bitField0_ |= 0x00000002; @@ -938,58 +891,50 @@ public Builder addStatements(java.lang.String value) { return this; } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param values The statements to add. * @return This builder for chaining. */ - public Builder addAllStatements(java.lang.Iterable<java.lang.String> values) { + public Builder addAllStatements( + java.lang.Iterable<java.lang.String> values) { ensureStatementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, statements_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearStatements() { - statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The bytes of the statements to add. * @return This builder for chaining. */ - public Builder addStatementsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStatementsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStatementsIsMutable(); statements_.add(value); @@ -1000,8 +945,6 @@ public Builder addStatementsBytes(com.google.protobuf.ByteString value) { private java.lang.Object operationId_ = ""; /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -1025,13 +968,13 @@ public Builder addStatementsBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string operation_id = 3;</code> - * * @return The operationId. */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; @@ -1040,8 +983,6 @@ public java.lang.String getOperationId() { } } /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -1065,14 +1006,15 @@ public java.lang.String getOperationId() { * </pre> * * <code>string operation_id = 3;</code> - * * @return The bytes for operationId. */ - public com.google.protobuf.ByteString getOperationIdBytes() { + public com.google.protobuf.ByteString + getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationId_ = b; return b; } else { @@ -1080,8 +1022,6 @@ public com.google.protobuf.ByteString getOperationIdBytes() { } } /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -1105,22 +1045,18 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * </pre> * * <code>string operation_id = 3;</code> - * * @param value The operationId to set. * @return This builder for chaining. */ - public Builder setOperationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } operationId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -1144,7 +1080,6 @@ public Builder setOperationId(java.lang.String value) { * </pre> * * <code>string operation_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearOperationId() { @@ -1154,8 +1089,6 @@ public Builder clearOperationId() { return this; } /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -1179,14 +1112,12 @@ public Builder clearOperationId() { * </pre> * * <code>string operation_id = 3;</code> - * * @param value The bytes for operationId to set. * @return This builder for chaining. */ - public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationId_ = value; bitField0_ |= 0x00000004; @@ -1194,8 +1125,91 @@ public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 4 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return The protoDescriptors. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public com.google.protobuf.ByteString getProtoDescriptors() { + return protoDescriptors_; + } + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 4 [(.google.api.field_behavior) = OPTIONAL];</code> + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 4 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return This builder for chaining. + */ + public Builder clearProtoDescriptors() { + bitField0_ = (bitField0_ & ~0x00000008); + protoDescriptors_ = getDefaultInstance().getProtoDescriptors(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1205,13 +1219,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) - private static final com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest(); } @@ -1220,27 +1233,27 @@ public static com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateDatabaseDdlRequest> PARSER = - new com.google.protobuf.AbstractParser<UpdateDatabaseDdlRequest>() { - @java.lang.Override - public UpdateDatabaseDdlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateDatabaseDdlRequest> + PARSER = new com.google.protobuf.AbstractParser<UpdateDatabaseDdlRequest>() { + @java.lang.Override + public UpdateDatabaseDdlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateDatabaseDdlRequest> parser() { return PARSER; @@ -1255,4 +1268,6 @@ public com.google.protobuf.Parser<UpdateDatabaseDdlRequest> getParserForType() { public com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java index ead26bcfab8..0b2771818ae 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java @@ -1,111 +1,74 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface UpdateDatabaseDdlRequestOrBuilder - extends +public interface UpdateDatabaseDdlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The database. */ java.lang.String getDatabase(); /** - * - * * <pre> * Required. The database to update. * </pre> * - * <code> - * string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return A list containing the statements. */ - java.util.List<java.lang.String> getStatementsList(); + java.util.List<java.lang.String> + getStatementsList(); /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The count of statements. */ int getStatementsCount(); /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param index The index of the element to return. * @return The statements at the given index. */ java.lang.String getStatements(int index); /** - * - * * <pre> * Required. DDL statements to be applied to the database. * </pre> * * <code>repeated string statements = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param index The index of the value to return. * @return The bytes of the statements at the given index. */ - com.google.protobuf.ByteString getStatementsBytes(int index); + com.google.protobuf.ByteString + getStatementsBytes(int index); /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -129,13 +92,10 @@ public interface UpdateDatabaseDdlRequestOrBuilder * </pre> * * <code>string operation_id = 3;</code> - * * @return The operationId. */ java.lang.String getOperationId(); /** - * - * * <pre> * If empty, the new update request is assigned an * automatically-generated operation ID. Otherwise, `operation_id` @@ -159,8 +119,31 @@ public interface UpdateDatabaseDdlRequestOrBuilder * </pre> * * <code>string operation_id = 3;</code> - * * @return The bytes for operationId. */ - com.google.protobuf.ByteString getOperationIdBytes(); + com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + * <pre> + * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements. + * Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with --include_imports and --descriptor_set_out. For example, + * to generate for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.data \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * </pre> + * + * <code>bytes proto_descriptors = 4 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return The protoDescriptors. + */ + com.google.protobuf.ByteString getProtoDescriptors(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java similarity index 71% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java index f8cd92a0673..7c04d8fe80f 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * Metadata type for the operation returned by * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -28,51 +11,47 @@ * * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseMetadata} */ -public final class UpdateDatabaseMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDatabaseMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.UpdateDatabaseMetadata) UpdateDatabaseMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDatabaseMetadata.newBuilder() to construct. private UpdateDatabaseMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private UpdateDatabaseMetadata() {} + private UpdateDatabaseMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDatabaseMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.class, - com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.Builder.class); + com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.class, com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.Builder.class); } public static final int REQUEST_FIELD_NUMBER = 1; private com.google.spanner.admin.database.v1.UpdateDatabaseRequest request_; /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. * </pre> * * <code>.google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1;</code> - * * @return Whether the request field is set. */ @java.lang.Override @@ -80,26 +59,19 @@ public boolean hasRequest() { return request_ != null; } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. * </pre> * * <code>.google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1;</code> - * * @return The request. */ @java.lang.Override public com.google.spanner.admin.database.v1.UpdateDatabaseRequest getRequest() { - return request_ == null - ? com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance() - : request_; + return request_ == null ? com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance() : request_; } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -109,16 +81,12 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest getRequest() { */ @java.lang.Override public com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder getRequestOrBuilder() { - return request_ == null - ? com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance() - : request_; + return request_ == null ? com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance() : request_; } public static final int PROGRESS_FIELD_NUMBER = 2; private com.google.spanner.admin.database.v1.OperationProgress progress_; /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -126,7 +94,6 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder getRe * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ @java.lang.Override @@ -134,8 +101,6 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -143,18 +108,13 @@ public boolean hasProgress() { * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -165,23 +125,18 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { */ @java.lang.Override public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } public static final int CANCEL_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp cancelTime_; /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ @java.lang.Override @@ -189,15 +144,12 @@ public boolean hasCancelTime() { return cancelTime_ != null; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ @java.lang.Override @@ -205,8 +157,6 @@ public com.google.protobuf.Timestamp getCancelTime() { return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). @@ -220,7 +170,6 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +181,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (request_ != null) { output.writeMessage(1, getRequest()); } @@ -252,13 +202,16 @@ public int getSerializedSize() { size = 0; if (request_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRequest()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgress()); } if (cancelTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCancelTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -268,25 +221,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.UpdateDatabaseMetadata)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.UpdateDatabaseMetadata other = - (com.google.spanner.admin.database.v1.UpdateDatabaseMetadata) obj; + com.google.spanner.admin.database.v1.UpdateDatabaseMetadata other = (com.google.spanner.admin.database.v1.UpdateDatabaseMetadata) obj; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { - if (!getRequest().equals(other.getRequest())) return false; + if (!getRequest() + .equals(other.getRequest())) return false; } if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (hasCancelTime() != other.hasCancelTime()) return false; if (hasCancelTime()) { - if (!getCancelTime().equals(other.getCancelTime())) return false; + if (!getCancelTime() + .equals(other.getCancelTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -317,104 +272,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata 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.admin.database.v1.UpdateDatabaseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.UpdateDatabaseMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.UpdateDatabaseMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the operation returned by * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -422,32 +371,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.UpdateDatabaseMetadata) com.google.spanner.admin.database.v1.UpdateDatabaseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.class, - com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.Builder.class); + com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.class, com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.Builder.class); } // Construct using com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseMetadata_descriptor; } @java.lang.Override @@ -492,11 +442,8 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseMetadata build() { @java.lang.Override public com.google.spanner.admin.database.v1.UpdateDatabaseMetadata buildPartial() { - com.google.spanner.admin.database.v1.UpdateDatabaseMetadata result = - new com.google.spanner.admin.database.v1.UpdateDatabaseMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.UpdateDatabaseMetadata result = new com.google.spanner.admin.database.v1.UpdateDatabaseMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -504,13 +451,19 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseMetadata buildPartial( private void buildPartial0(com.google.spanner.admin.database.v1.UpdateDatabaseMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + result.request_ = requestBuilder_ == null + ? request_ + : requestBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + result.cancelTime_ = cancelTimeBuilder_ == null + ? cancelTime_ + : cancelTimeBuilder_.build(); } } @@ -518,39 +471,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.UpdateDatabaseMe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.UpdateDatabaseMetadata) { - return mergeFrom((com.google.spanner.admin.database.v1.UpdateDatabaseMetadata) other); + return mergeFrom((com.google.spanner.admin.database.v1.UpdateDatabaseMetadata)other); } else { super.mergeFrom(other); return this; @@ -558,8 +510,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseMetadata other) { - if (other == com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.UpdateDatabaseMetadata.getDefaultInstance()) return this; if (other.hasRequest()) { mergeRequest(other.getRequest()); } @@ -595,31 +546,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCancelTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getRequestFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCancelTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -629,54 +582,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.spanner.admin.database.v1.UpdateDatabaseRequest request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.UpdateDatabaseRequest, - com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder, - com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder> - requestBuilder_; + com.google.spanner.admin.database.v1.UpdateDatabaseRequest, com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder, com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder> requestBuilder_; /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. * </pre> * * <code>.google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1;</code> - * * @return Whether the request field is set. */ public boolean hasRequest() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. * </pre> * * <code>.google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1;</code> - * * @return The request. */ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest getRequest() { if (requestBuilder_ == null) { - return request_ == null - ? com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance() - : request_; + return request_ == null ? com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance() : request_; } else { return requestBuilder_.getMessage(); } } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -698,8 +637,6 @@ public Builder setRequest(com.google.spanner.admin.database.v1.UpdateDatabaseReq return this; } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -719,8 +656,6 @@ public Builder setRequest( return this; } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -730,11 +665,9 @@ public Builder setRequest( */ public Builder mergeRequest(com.google.spanner.admin.database.v1.UpdateDatabaseRequest value) { if (requestBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && request_ != null - && request_ - != com.google.spanner.admin.database.v1.UpdateDatabaseRequest - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + request_ != null && + request_ != com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance()) { getRequestBuilder().mergeFrom(value); } else { request_ = value; @@ -747,8 +680,6 @@ public Builder mergeRequest(com.google.spanner.admin.database.v1.UpdateDatabaseR return this; } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -767,8 +698,6 @@ public Builder clearRequest() { return this; } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -782,8 +711,6 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder getReq return getRequestFieldBuilder().getBuilder(); } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -791,19 +718,15 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder getReq * * <code>.google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1;</code> */ - public com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder - getRequestOrBuilder() { + public com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { - return request_ == null - ? com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance() - : request_; + return request_ == null ? + com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance() : request_; } } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -812,17 +735,14 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder getReq * <code>.google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.UpdateDatabaseRequest, - com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder, - com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder> + com.google.spanner.admin.database.v1.UpdateDatabaseRequest, com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder, com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { - requestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.UpdateDatabaseRequest, - com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder, - com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder>( - getRequest(), getParentForChildren(), isClean()); + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.UpdateDatabaseRequest, com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder, com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); request_ = null; } return requestBuilder_; @@ -830,13 +750,8 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder getReq private com.google.spanner.admin.database.v1.OperationProgress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> - progressBuilder_; + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> progressBuilder_; /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -844,15 +759,12 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder getReq * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -860,21 +772,16 @@ public boolean hasProgress() { * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ public com.google.spanner.admin.database.v1.OperationProgress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -897,8 +804,6 @@ public Builder setProgress(com.google.spanner.admin.database.v1.OperationProgres return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -919,8 +824,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -931,10 +834,9 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && progress_ != null - && progress_ - != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + progress_ != null && + progress_ != com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -947,8 +849,6 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -968,8 +868,6 @@ public Builder clearProgress() { return this; } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -984,8 +882,6 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres return getProgressFieldBuilder().getBuilder(); } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -998,14 +894,11 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.spanner.admin.database.v1.OperationProgress.getDefaultInstance() : progress_; } } /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -1015,17 +908,14 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder> + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.database.v1.OperationProgress, - com.google.spanner.admin.database.v1.OperationProgress.Builder, - com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.database.v1.OperationProgress, com.google.spanner.admin.database.v1.OperationProgress.Builder, com.google.spanner.admin.database.v1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; @@ -1033,49 +923,36 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre private com.google.protobuf.Timestamp cancelTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cancelTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelTimeBuilder_; /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ public boolean hasCancelTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ public com.google.protobuf.Timestamp getCancelTime() { if (cancelTimeBuilder_ == null) { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } else { return cancelTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). @@ -1097,8 +974,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). @@ -1106,7 +981,8 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ - public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCancelTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelTimeBuilder_ == null) { cancelTime_ = builderForValue.build(); } else { @@ -1117,8 +993,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). @@ -1128,9 +1002,9 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { if (cancelTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cancelTime_ != null - && cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cancelTime_ != null && + cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelTimeBuilder().mergeFrom(value); } else { cancelTime_ = value; @@ -1143,8 +1017,6 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). @@ -1163,8 +1035,6 @@ public Builder clearCancelTime() { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). @@ -1178,8 +1048,6 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() { return getCancelTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). @@ -1191,14 +1059,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { if (cancelTimeBuilder_ != null) { return cancelTimeBuilder_.getMessageOrBuilder(); } else { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). @@ -1207,24 +1072,21 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelTimeFieldBuilder() { if (cancelTimeBuilder_ == null) { - cancelTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCancelTime(), getParentForChildren(), isClean()); + cancelTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCancelTime(), + getParentForChildren(), + isClean()); cancelTime_ = null; } return cancelTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1234,12 +1096,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.UpdateDatabaseMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseMetadata) private static final com.google.spanner.admin.database.v1.UpdateDatabaseMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.UpdateDatabaseMetadata(); } @@ -1248,27 +1110,27 @@ public static com.google.spanner.admin.database.v1.UpdateDatabaseMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateDatabaseMetadata> PARSER = - new com.google.protobuf.AbstractParser<UpdateDatabaseMetadata>() { - @java.lang.Override - public UpdateDatabaseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateDatabaseMetadata> + PARSER = new com.google.protobuf.AbstractParser<UpdateDatabaseMetadata>() { + @java.lang.Override + public UpdateDatabaseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateDatabaseMetadata> parser() { return PARSER; @@ -1283,4 +1145,6 @@ public com.google.protobuf.Parser<UpdateDatabaseMetadata> getParserForType() { public com.google.spanner.admin.database.v1.UpdateDatabaseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java similarity index 80% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java index c96e6bef5fa..57ab6f758aa 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseMetadataOrBuilder.java @@ -1,57 +1,33 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface UpdateDatabaseMetadataOrBuilder - extends +public interface UpdateDatabaseMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.UpdateDatabaseMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. * </pre> * * <code>.google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1;</code> - * * @return Whether the request field is set. */ boolean hasRequest(); /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. * </pre> * * <code>.google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1;</code> - * * @return The request. */ com.google.spanner.admin.database.v1.UpdateDatabaseRequest getRequest(); /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -62,8 +38,6 @@ public interface UpdateDatabaseMetadataOrBuilder com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder getRequestOrBuilder(); /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -71,13 +45,10 @@ public interface UpdateDatabaseMetadataOrBuilder * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -85,13 +56,10 @@ public interface UpdateDatabaseMetadataOrBuilder * </pre> * * <code>.google.spanner.admin.database.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ com.google.spanner.admin.database.v1.OperationProgress getProgress(); /** - * - * * <pre> * The progress of the * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase] @@ -103,34 +71,26 @@ public interface UpdateDatabaseMetadataOrBuilder com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgressOrBuilder(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ boolean hasCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ com.google.protobuf.Timestamp getCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is best-effort). diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java similarity index 65% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java index 0934d93a05c..d177c9a2cb0 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -28,54 +11,48 @@ * * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseRequest} */ -public final class UpdateDatabaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDatabaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.UpdateDatabaseRequest) UpdateDatabaseRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDatabaseRequest.newBuilder() to construct. private UpdateDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private UpdateDatabaseRequest() {} + private UpdateDatabaseRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDatabaseRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateDatabaseRequest.class, - com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.UpdateDatabaseRequest.class, com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; private com.google.spanner.admin.database.v1.Database database_; /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the database field is set. */ @java.lang.Override @@ -83,59 +60,42 @@ public boolean hasDatabase() { return database_ != null; } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return database_ == null ? com.google.spanner.admin.database.v1.Database.getDefaultInstance() : database_; } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuilder() { - return database_ == null - ? com.google.spanner.admin.database.v1.Database.getDefaultInstance() - : database_; + return database_ == null ? com.google.spanner.admin.database.v1.Database.getDefaultInstance() : database_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ @java.lang.Override @@ -143,16 +103,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ @java.lang.Override @@ -160,15 +116,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -176,7 +129,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (database_ != null) { output.writeMessage(1, getDatabase()); } @@ -205,10 +158,12 @@ public int getSerializedSize() { size = 0; if (database_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatabase()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDatabase()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,21 +173,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.database.v1.UpdateDatabaseRequest)) { return super.equals(obj); } - com.google.spanner.admin.database.v1.UpdateDatabaseRequest other = - (com.google.spanner.admin.database.v1.UpdateDatabaseRequest) obj; + com.google.spanner.admin.database.v1.UpdateDatabaseRequest other = (com.google.spanner.admin.database.v1.UpdateDatabaseRequest) obj; if (hasDatabase() != other.hasDatabase()) return false; if (hasDatabase()) { - if (!getDatabase().equals(other.getDatabase())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -259,104 +215,98 @@ public int hashCode() { } public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest 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.admin.database.v1.UpdateDatabaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.database.v1.UpdateDatabaseRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.database.v1.UpdateDatabaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabase]. @@ -364,32 +314,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.UpdateDatabaseRequest) com.google.spanner.admin.database.v1.UpdateDatabaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_fieldAccessorTable + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.database.v1.UpdateDatabaseRequest.class, - com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder.class); + com.google.spanner.admin.database.v1.UpdateDatabaseRequest.class, com.google.spanner.admin.database.v1.UpdateDatabaseRequest.Builder.class); } // Construct using com.google.spanner.admin.database.v1.UpdateDatabaseRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +359,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto - .internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseRequest_descriptor; } @java.lang.Override @@ -429,11 +380,8 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest build() { @java.lang.Override public com.google.spanner.admin.database.v1.UpdateDatabaseRequest buildPartial() { - com.google.spanner.admin.database.v1.UpdateDatabaseRequest result = - new com.google.spanner.admin.database.v1.UpdateDatabaseRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.database.v1.UpdateDatabaseRequest result = new com.google.spanner.admin.database.v1.UpdateDatabaseRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -441,10 +389,14 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseRequest buildPartial() private void buildPartial0(com.google.spanner.admin.database.v1.UpdateDatabaseRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.database_ = databaseBuilder_ == null ? database_ : databaseBuilder_.build(); + result.database_ = databaseBuilder_ == null + ? database_ + : databaseBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -452,39 +404,38 @@ private void buildPartial0(com.google.spanner.admin.database.v1.UpdateDatabaseRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.database.v1.UpdateDatabaseRequest) { - return mergeFrom((com.google.spanner.admin.database.v1.UpdateDatabaseRequest) other); + return mergeFrom((com.google.spanner.admin.database.v1.UpdateDatabaseRequest)other); } else { super.mergeFrom(other); return this; @@ -492,8 +443,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseRequest other) { - if (other == com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.database.v1.UpdateDatabaseRequest.getDefaultInstance()) return this; if (other.hasDatabase()) { mergeDatabase(other.getDatabase()); } @@ -526,25 +476,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDatabaseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDatabaseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,69 +505,49 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_; + com.google.spanner.admin.database.v1.Database, com.google.spanner.admin.database.v1.Database.Builder, com.google.spanner.admin.database.v1.DatabaseOrBuilder> databaseBuilder_; /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the database field is set. */ public boolean hasDatabase() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return database_ == null ? com.google.spanner.admin.database.v1.Database.getDefaultInstance() : database_; } else { return databaseBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setDatabase(com.google.spanner.admin.database.v1.Database value) { if (databaseBuilder_ == null) { @@ -632,17 +563,13 @@ public Builder setDatabase(com.google.spanner.admin.database.v1.Database value) return this; } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setDatabase( com.google.spanner.admin.database.v1.Database.Builder builderForValue) { @@ -656,23 +583,19 @@ public Builder setDatabase( return this; } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeDatabase(com.google.spanner.admin.database.v1.Database value) { if (databaseBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && database_ != null - && database_ != com.google.spanner.admin.database.v1.Database.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + database_ != null && + database_ != com.google.spanner.admin.database.v1.Database.getDefaultInstance()) { getDatabaseBuilder().mergeFrom(value); } else { database_ = value; @@ -685,17 +608,13 @@ public Builder mergeDatabase(com.google.spanner.admin.database.v1.Database value return this; } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearDatabase() { bitField0_ = (bitField0_ & ~0x00000001); @@ -708,17 +627,13 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.spanner.admin.database.v1.Database.Builder getDatabaseBuilder() { bitField0_ |= 0x00000001; @@ -726,52 +641,40 @@ public com.google.spanner.admin.database.v1.Database.Builder getDatabaseBuilder( return getDatabaseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ 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_; + return database_ == null ? + com.google.spanner.admin.database.v1.Database.getDefaultInstance() : database_; } } /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ 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> + 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()); + 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_; @@ -779,58 +682,42 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuild private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -846,17 +733,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -867,21 +752,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -894,15 +776,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -915,15 +794,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -931,55 +807,45 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +855,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.UpdateDatabaseRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseRequest) private static final com.google.spanner.admin.database.v1.UpdateDatabaseRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.UpdateDatabaseRequest(); } @@ -1003,27 +869,27 @@ public static com.google.spanner.admin.database.v1.UpdateDatabaseRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateDatabaseRequest> PARSER = - new com.google.protobuf.AbstractParser<UpdateDatabaseRequest>() { - @java.lang.Override - public UpdateDatabaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateDatabaseRequest> + PARSER = new com.google.protobuf.AbstractParser<UpdateDatabaseRequest>() { + @java.lang.Override + public UpdateDatabaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateDatabaseRequest> parser() { return PARSER; @@ -1038,4 +904,6 @@ public com.google.protobuf.Parser<UpdateDatabaseRequest> getParserForType() { public com.google.spanner.admin.database.v1.UpdateDatabaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java index a802b81253d..92cb47bd9f7 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseRequestOrBuilder.java @@ -1,113 +1,72 @@ -/* - * 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/admin/database/v1/spanner_database_admin.proto package com.google.spanner.admin.database.v1; -public interface UpdateDatabaseRequestOrBuilder - extends +public interface UpdateDatabaseRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.UpdateDatabaseRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the database field is set. */ boolean hasDatabase(); /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The database. */ com.google.spanner.admin.database.v1.Database getDatabase(); /** - * - * * <pre> * Required. The database to update. * The `name` field of the database is of the form * `projects/<project>/instances/<instance>/databases/<database>`. * </pre> * - * <code> - * .google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuilder(); /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * * <pre> * Required. The list of fields to update. Currently, only * `enable_drop_protection` field can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup.proto b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup.proto similarity index 100% rename from proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup.proto rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup.proto diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/common.proto b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/common.proto similarity index 100% rename from proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/common.proto rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/common.proto diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/spanner_database_admin.proto b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/spanner_database_admin.proto similarity index 95% rename from proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/spanner_database_admin.proto rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/spanner_database_admin.proto index 6cf0e5a4b94..a522c08c18a 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/spanner_database_admin.proto +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/spanner_database_admin.proto @@ -572,6 +572,23 @@ message CreateDatabaseRequest { // Optional. The dialect of the Cloud Spanner Database. DatabaseDialect database_dialect = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in + // 'extra_statements' above. + // Contains a protobuf-serialized + // [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + // To generate it, [install](https://grpc.io/docs/protoc-installation/) and + // run `protoc` with --include_imports and --descriptor_set_out. For example, + // to generate for moon/shot/app.proto, run + // ``` + // $protoc --proto_path=/app_path --proto_path=/lib_path \ + // --include_imports \ + // --descriptor_set_out=descriptors.data \ + // moon/shot/app.proto + // ``` + // For more details, see protobuffer [self + // description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + bytes proto_descriptors = 6 [(google.api.field_behavior) = OPTIONAL]; } // Metadata type for the operation returned by @@ -674,6 +691,22 @@ message UpdateDatabaseDdlRequest { // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns // `ALREADY_EXISTS`. string operation_id = 3; + + // Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements. + // Contains a protobuf-serialized + // [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + // To generate it, [install](https://grpc.io/docs/protoc-installation/) and + // run `protoc` with --include_imports and --descriptor_set_out. For example, + // to generate for moon/shot/app.proto, run + // ``` + // $protoc --proto_path=/app_path --proto_path=/lib_path \ + // --include_imports \ + // --descriptor_set_out=descriptors.data \ + // moon/shot/app.proto + // ``` + // For more details, see protobuffer [self + // description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + bytes proto_descriptors = 4 [(google.api.field_behavior) = OPTIONAL]; } // Action information extracted from a DDL statement. This proto is used to @@ -762,6 +795,13 @@ message GetDatabaseDdlResponse { // A list of formatted DDL statements defining the schema of the database // specified in the request. repeated string statements = 1; + + // Proto descriptors stored in the database. + // Contains a protobuf-serialized + // [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). + // For more details, see protobuffer [self + // description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + bytes proto_descriptors = 2; } // The request for diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java similarity index 62% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java index ba30c86c6fd..de84c77e52d 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java @@ -1,154 +1,115 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * Autoscaling config for an instance. * </pre> * * Protobuf type {@code google.spanner.admin.instance.v1.AutoscalingConfig} */ -public final class AutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AutoscalingConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.AutoscalingConfig) AutoscalingConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AutoscalingConfig.newBuilder() to construct. private AutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private AutoscalingConfig() {} + private AutoscalingConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AutoscalingConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.AutoscalingConfig.class, - com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder.class); + com.google.spanner.admin.instance.v1.AutoscalingConfig.class, com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder.class); } - public interface AutoscalingLimitsOrBuilder - extends + public interface AutoscalingLimitsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Minimum number of nodes allocated to the instance. If set, this number * should be greater than or equal to 1. * </pre> * * <code>int32 min_nodes = 1;</code> - * * @return Whether the minNodes field is set. */ boolean hasMinNodes(); /** - * - * * <pre> * Minimum number of nodes allocated to the instance. If set, this number * should be greater than or equal to 1. * </pre> * * <code>int32 min_nodes = 1;</code> - * * @return The minNodes. */ int getMinNodes(); /** - * - * * <pre> * Minimum number of processing units allocated to the instance. If set, * this number should be multiples of 1000. * </pre> * * <code>int32 min_processing_units = 2;</code> - * * @return Whether the minProcessingUnits field is set. */ boolean hasMinProcessingUnits(); /** - * - * * <pre> * Minimum number of processing units allocated to the instance. If set, * this number should be multiples of 1000. * </pre> * * <code>int32 min_processing_units = 2;</code> - * * @return The minProcessingUnits. */ int getMinProcessingUnits(); /** - * - * * <pre> * Maximum number of nodes allocated to the instance. If set, this number * should be greater than or equal to min_nodes. * </pre> * * <code>int32 max_nodes = 3;</code> - * * @return Whether the maxNodes field is set. */ boolean hasMaxNodes(); /** - * - * * <pre> * Maximum number of nodes allocated to the instance. If set, this number * should be greater than or equal to min_nodes. * </pre> * * <code>int32 max_nodes = 3;</code> - * * @return The maxNodes. */ int getMaxNodes(); /** - * - * * <pre> * Maximum number of processing units allocated to the instance. If set, * this number should be multiples of 1000 and be greater than or equal to @@ -156,13 +117,10 @@ public interface AutoscalingLimitsOrBuilder * </pre> * * <code>int32 max_processing_units = 4;</code> - * * @return Whether the maxProcessingUnits field is set. */ boolean hasMaxProcessingUnits(); /** - * - * * <pre> * Maximum number of processing units allocated to the instance. If set, * this number should be multiples of 1000 and be greater than or equal to @@ -170,20 +128,15 @@ public interface AutoscalingLimitsOrBuilder * </pre> * * <code>int32 max_processing_units = 4;</code> - * * @return The maxProcessingUnits. */ int getMaxProcessingUnits(); - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.MinLimitCase - getMinLimitCase(); + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.MinLimitCase getMinLimitCase(); - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.MaxLimitCase - getMaxLimitCase(); + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.MaxLimitCase getMaxLimitCase(); } /** - * - * * <pre> * The autoscaling limits for the instance. Users can define the minimum and * maximum compute capacity allocated to the instance, and the autoscaler will @@ -194,54 +147,48 @@ public interface AutoscalingLimitsOrBuilder * * Protobuf type {@code google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits} */ - public static final class AutoscalingLimits extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AutoscalingLimits extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) AutoscalingLimitsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AutoscalingLimits.newBuilder() to construct. private AutoscalingLimits(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private AutoscalingLimits() {} + private AutoscalingLimits() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AutoscalingLimits(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.class, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder - .class); + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.class, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder.class); } private int minLimitCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object minLimit_; - public enum MinLimitCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MIN_NODES(1), MIN_PROCESSING_UNITS(2), MINLIMIT_NOT_SET(0); private final int value; - private MinLimitCase(int value) { this.value = value; } @@ -257,40 +204,33 @@ public static MinLimitCase valueOf(int value) { public static MinLimitCase forNumber(int value) { switch (value) { - case 1: - return MIN_NODES; - case 2: - return MIN_PROCESSING_UNITS; - case 0: - return MINLIMIT_NOT_SET; - default: - return null; + case 1: return MIN_NODES; + case 2: return MIN_PROCESSING_UNITS; + case 0: return MINLIMIT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MinLimitCase getMinLimitCase() { - return MinLimitCase.forNumber(minLimitCase_); + public MinLimitCase + getMinLimitCase() { + return MinLimitCase.forNumber( + minLimitCase_); } private int maxLimitCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object maxLimit_; - public enum MaxLimitCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MAX_NODES(3), MAX_PROCESSING_UNITS(4), MAXLIMIT_NOT_SET(0); private final int value; - private MaxLimitCase(int value) { this.value = value; } @@ -306,37 +246,31 @@ public static MaxLimitCase valueOf(int value) { public static MaxLimitCase forNumber(int value) { switch (value) { - case 3: - return MAX_NODES; - case 4: - return MAX_PROCESSING_UNITS; - case 0: - return MAXLIMIT_NOT_SET; - default: - return null; + case 3: return MAX_NODES; + case 4: return MAX_PROCESSING_UNITS; + case 0: return MAXLIMIT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MaxLimitCase getMaxLimitCase() { - return MaxLimitCase.forNumber(maxLimitCase_); + public MaxLimitCase + getMaxLimitCase() { + return MaxLimitCase.forNumber( + maxLimitCase_); } public static final int MIN_NODES_FIELD_NUMBER = 1; /** - * - * * <pre> * Minimum number of nodes allocated to the instance. If set, this number * should be greater than or equal to 1. * </pre> * * <code>int32 min_nodes = 1;</code> - * * @return Whether the minNodes field is set. */ @java.lang.Override @@ -344,15 +278,12 @@ public boolean hasMinNodes() { return minLimitCase_ == 1; } /** - * - * * <pre> * Minimum number of nodes allocated to the instance. If set, this number * should be greater than or equal to 1. * </pre> * * <code>int32 min_nodes = 1;</code> - * * @return The minNodes. */ @java.lang.Override @@ -365,15 +296,12 @@ public int getMinNodes() { public static final int MIN_PROCESSING_UNITS_FIELD_NUMBER = 2; /** - * - * * <pre> * Minimum number of processing units allocated to the instance. If set, * this number should be multiples of 1000. * </pre> * * <code>int32 min_processing_units = 2;</code> - * * @return Whether the minProcessingUnits field is set. */ @java.lang.Override @@ -381,15 +309,12 @@ public boolean hasMinProcessingUnits() { return minLimitCase_ == 2; } /** - * - * * <pre> * Minimum number of processing units allocated to the instance. If set, * this number should be multiples of 1000. * </pre> * * <code>int32 min_processing_units = 2;</code> - * * @return The minProcessingUnits. */ @java.lang.Override @@ -402,15 +327,12 @@ public int getMinProcessingUnits() { public static final int MAX_NODES_FIELD_NUMBER = 3; /** - * - * * <pre> * Maximum number of nodes allocated to the instance. If set, this number * should be greater than or equal to min_nodes. * </pre> * * <code>int32 max_nodes = 3;</code> - * * @return Whether the maxNodes field is set. */ @java.lang.Override @@ -418,15 +340,12 @@ public boolean hasMaxNodes() { return maxLimitCase_ == 3; } /** - * - * * <pre> * Maximum number of nodes allocated to the instance. If set, this number * should be greater than or equal to min_nodes. * </pre> * * <code>int32 max_nodes = 3;</code> - * * @return The maxNodes. */ @java.lang.Override @@ -439,8 +358,6 @@ public int getMaxNodes() { public static final int MAX_PROCESSING_UNITS_FIELD_NUMBER = 4; /** - * - * * <pre> * Maximum number of processing units allocated to the instance. If set, * this number should be multiples of 1000 and be greater than or equal to @@ -448,7 +365,6 @@ public int getMaxNodes() { * </pre> * * <code>int32 max_processing_units = 4;</code> - * * @return Whether the maxProcessingUnits field is set. */ @java.lang.Override @@ -456,8 +372,6 @@ public boolean hasMaxProcessingUnits() { return maxLimitCase_ == 4; } /** - * - * * <pre> * Maximum number of processing units allocated to the instance. If set, * this number should be multiples of 1000 and be greater than or equal to @@ -465,7 +379,6 @@ public boolean hasMaxProcessingUnits() { * </pre> * * <code>int32 max_processing_units = 4;</code> - * * @return The maxProcessingUnits. */ @java.lang.Override @@ -477,7 +390,6 @@ public int getMaxProcessingUnits() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -489,18 +401,23 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (minLimitCase_ == 1) { - output.writeInt32(1, (int) ((java.lang.Integer) minLimit_)); + output.writeInt32( + 1, (int)((java.lang.Integer) minLimit_)); } if (minLimitCase_ == 2) { - output.writeInt32(2, (int) ((java.lang.Integer) minLimit_)); + output.writeInt32( + 2, (int)((java.lang.Integer) minLimit_)); } if (maxLimitCase_ == 3) { - output.writeInt32(3, (int) ((java.lang.Integer) maxLimit_)); + output.writeInt32( + 3, (int)((java.lang.Integer) maxLimit_)); } if (maxLimitCase_ == 4) { - output.writeInt32(4, (int) ((java.lang.Integer) maxLimit_)); + output.writeInt32( + 4, (int)((java.lang.Integer) maxLimit_)); } getUnknownFields().writeTo(output); } @@ -512,24 +429,24 @@ public int getSerializedSize() { size = 0; if (minLimitCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 1, (int) ((java.lang.Integer) minLimit_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 1, (int)((java.lang.Integer) minLimit_)); } if (minLimitCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, (int) ((java.lang.Integer) minLimit_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) minLimit_)); } if (maxLimitCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 3, (int) ((java.lang.Integer) maxLimit_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 3, (int)((java.lang.Integer) maxLimit_)); } if (maxLimitCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 4, (int) ((java.lang.Integer) maxLimit_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 4, (int)((java.lang.Integer) maxLimit_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -539,22 +456,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits)) { + if (!(obj instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits other = - (com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) obj; + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits other = (com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) obj; if (!getMinLimitCase().equals(other.getMinLimitCase())) return false; switch (minLimitCase_) { case 1: - if (getMinNodes() != other.getMinNodes()) return false; + if (getMinNodes() + != other.getMinNodes()) return false; break; case 2: - if (getMinProcessingUnits() != other.getMinProcessingUnits()) return false; + if (getMinProcessingUnits() + != other.getMinProcessingUnits()) return false; break; case 0: default: @@ -562,10 +479,12 @@ public boolean equals(final java.lang.Object obj) { if (!getMaxLimitCase().equals(other.getMaxLimitCase())) return false; switch (maxLimitCase_) { case 3: - if (getMaxNodes() != other.getMaxNodes()) return false; + if (getMaxNodes() + != other.getMaxNodes()) return false; break; case 4: - if (getMaxProcessingUnits() != other.getMaxProcessingUnits()) return false; + if (getMaxProcessingUnits() + != other.getMaxProcessingUnits()) return false; break; case 0: default: @@ -610,101 +529,90 @@ public int hashCode() { return hash; } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits 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.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits 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.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - 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.admin.instance.v1.AutoscalingConfig.AutoscalingLimits 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.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - 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.admin.instance.v1.AutoscalingConfig.AutoscalingLimits 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.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -714,8 +622,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * The autoscaling limits for the instance. Users can define the minimum and * maximum compute capacity allocated to the instance, and the autoscaler will @@ -726,35 +632,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.class, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder - .class); + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.class, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder.class); } - // Construct using - // com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -767,22 +671,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - getDefaultInstanceForType() { - return com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - .getDefaultInstance(); + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits getDefaultInstanceForType() { + return com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.getDefaultInstance(); } @java.lang.Override public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits build() { - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits result = - buildPartial(); + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -790,25 +691,19 @@ public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits } @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - buildPartial() { - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits result = - new com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits buildPartial() { + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits result = new com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits result) { + private void buildPartialOneofs(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits result) { result.minLimitCase_ = minLimitCase_; result.minLimit_ = this.minLimit_; result.maxLimitCase_ = maxLimitCase_; @@ -819,85 +714,71 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) { - return mergeFrom( - (com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) other); + if (other instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) { + return mergeFrom((com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits other) { - if (other - == com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits other) { + if (other == com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.getDefaultInstance()) return this; switch (other.getMinLimitCase()) { - case MIN_NODES: - { - setMinNodes(other.getMinNodes()); - break; - } - case MIN_PROCESSING_UNITS: - { - setMinProcessingUnits(other.getMinProcessingUnits()); - break; - } - case MINLIMIT_NOT_SET: - { - break; - } + case MIN_NODES: { + setMinNodes(other.getMinNodes()); + break; + } + case MIN_PROCESSING_UNITS: { + setMinProcessingUnits(other.getMinProcessingUnits()); + break; + } + case MINLIMIT_NOT_SET: { + break; + } } switch (other.getMaxLimitCase()) { - case MAX_NODES: - { - setMaxNodes(other.getMaxNodes()); - break; - } - case MAX_PROCESSING_UNITS: - { - setMaxProcessingUnits(other.getMaxProcessingUnits()); - break; - } - case MAXLIMIT_NOT_SET: - { - break; - } + case MAX_NODES: { + setMaxNodes(other.getMaxNodes()); + break; + } + case MAX_PROCESSING_UNITS: { + setMaxProcessingUnits(other.getMaxProcessingUnits()); + break; + } + case MAXLIMIT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -925,37 +806,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - minLimit_ = input.readInt32(); - minLimitCase_ = 1; - break; - } // case 8 - case 16: - { - minLimit_ = input.readInt32(); - minLimitCase_ = 2; - break; - } // case 16 - case 24: - { - maxLimit_ = input.readInt32(); - maxLimitCase_ = 3; - break; - } // case 24 - case 32: - { - maxLimit_ = input.readInt32(); - maxLimitCase_ = 4; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + minLimit_ = input.readInt32(); + minLimitCase_ = 1; + break; + } // case 8 + case 16: { + minLimit_ = input.readInt32(); + minLimitCase_ = 2; + break; + } // case 16 + case 24: { + maxLimit_ = input.readInt32(); + maxLimitCase_ = 3; + break; + } // case 24 + case 32: { + maxLimit_ = input.readInt32(); + maxLimitCase_ = 4; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -965,12 +841,12 @@ public Builder mergeFrom( } // finally return this; } - private int minLimitCase_ = 0; private java.lang.Object minLimit_; - - public MinLimitCase getMinLimitCase() { - return MinLimitCase.forNumber(minLimitCase_); + public MinLimitCase + getMinLimitCase() { + return MinLimitCase.forNumber( + minLimitCase_); } public Builder clearMinLimit() { @@ -982,9 +858,10 @@ public Builder clearMinLimit() { private int maxLimitCase_ = 0; private java.lang.Object maxLimit_; - - public MaxLimitCase getMaxLimitCase() { - return MaxLimitCase.forNumber(maxLimitCase_); + public MaxLimitCase + getMaxLimitCase() { + return MaxLimitCase.forNumber( + maxLimitCase_); } public Builder clearMaxLimit() { @@ -997,30 +874,24 @@ public Builder clearMaxLimit() { private int bitField0_; /** - * - * * <pre> * Minimum number of nodes allocated to the instance. If set, this number * should be greater than or equal to 1. * </pre> * * <code>int32 min_nodes = 1;</code> - * * @return Whether the minNodes field is set. */ public boolean hasMinNodes() { return minLimitCase_ == 1; } /** - * - * * <pre> * Minimum number of nodes allocated to the instance. If set, this number * should be greater than or equal to 1. * </pre> * * <code>int32 min_nodes = 1;</code> - * * @return The minNodes. */ public int getMinNodes() { @@ -1030,15 +901,12 @@ public int getMinNodes() { return 0; } /** - * - * * <pre> * Minimum number of nodes allocated to the instance. If set, this number * should be greater than or equal to 1. * </pre> * * <code>int32 min_nodes = 1;</code> - * * @param value The minNodes to set. * @return This builder for chaining. */ @@ -1050,15 +918,12 @@ public Builder setMinNodes(int value) { return this; } /** - * - * * <pre> * Minimum number of nodes allocated to the instance. If set, this number * should be greater than or equal to 1. * </pre> * * <code>int32 min_nodes = 1;</code> - * * @return This builder for chaining. */ public Builder clearMinNodes() { @@ -1071,30 +936,24 @@ public Builder clearMinNodes() { } /** - * - * * <pre> * Minimum number of processing units allocated to the instance. If set, * this number should be multiples of 1000. * </pre> * * <code>int32 min_processing_units = 2;</code> - * * @return Whether the minProcessingUnits field is set. */ public boolean hasMinProcessingUnits() { return minLimitCase_ == 2; } /** - * - * * <pre> * Minimum number of processing units allocated to the instance. If set, * this number should be multiples of 1000. * </pre> * * <code>int32 min_processing_units = 2;</code> - * * @return The minProcessingUnits. */ public int getMinProcessingUnits() { @@ -1104,15 +963,12 @@ public int getMinProcessingUnits() { return 0; } /** - * - * * <pre> * Minimum number of processing units allocated to the instance. If set, * this number should be multiples of 1000. * </pre> * * <code>int32 min_processing_units = 2;</code> - * * @param value The minProcessingUnits to set. * @return This builder for chaining. */ @@ -1124,15 +980,12 @@ public Builder setMinProcessingUnits(int value) { return this; } /** - * - * * <pre> * Minimum number of processing units allocated to the instance. If set, * this number should be multiples of 1000. * </pre> * * <code>int32 min_processing_units = 2;</code> - * * @return This builder for chaining. */ public Builder clearMinProcessingUnits() { @@ -1145,30 +998,24 @@ public Builder clearMinProcessingUnits() { } /** - * - * * <pre> * Maximum number of nodes allocated to the instance. If set, this number * should be greater than or equal to min_nodes. * </pre> * * <code>int32 max_nodes = 3;</code> - * * @return Whether the maxNodes field is set. */ public boolean hasMaxNodes() { return maxLimitCase_ == 3; } /** - * - * * <pre> * Maximum number of nodes allocated to the instance. If set, this number * should be greater than or equal to min_nodes. * </pre> * * <code>int32 max_nodes = 3;</code> - * * @return The maxNodes. */ public int getMaxNodes() { @@ -1178,15 +1025,12 @@ public int getMaxNodes() { return 0; } /** - * - * * <pre> * Maximum number of nodes allocated to the instance. If set, this number * should be greater than or equal to min_nodes. * </pre> * * <code>int32 max_nodes = 3;</code> - * * @param value The maxNodes to set. * @return This builder for chaining. */ @@ -1198,15 +1042,12 @@ public Builder setMaxNodes(int value) { return this; } /** - * - * * <pre> * Maximum number of nodes allocated to the instance. If set, this number * should be greater than or equal to min_nodes. * </pre> * * <code>int32 max_nodes = 3;</code> - * * @return This builder for chaining. */ public Builder clearMaxNodes() { @@ -1219,8 +1060,6 @@ public Builder clearMaxNodes() { } /** - * - * * <pre> * Maximum number of processing units allocated to the instance. If set, * this number should be multiples of 1000 and be greater than or equal to @@ -1228,15 +1067,12 @@ public Builder clearMaxNodes() { * </pre> * * <code>int32 max_processing_units = 4;</code> - * * @return Whether the maxProcessingUnits field is set. */ public boolean hasMaxProcessingUnits() { return maxLimitCase_ == 4; } /** - * - * * <pre> * Maximum number of processing units allocated to the instance. If set, * this number should be multiples of 1000 and be greater than or equal to @@ -1244,7 +1080,6 @@ public boolean hasMaxProcessingUnits() { * </pre> * * <code>int32 max_processing_units = 4;</code> - * * @return The maxProcessingUnits. */ public int getMaxProcessingUnits() { @@ -1254,8 +1089,6 @@ public int getMaxProcessingUnits() { return 0; } /** - * - * * <pre> * Maximum number of processing units allocated to the instance. If set, * this number should be multiples of 1000 and be greater than or equal to @@ -1263,7 +1096,6 @@ public int getMaxProcessingUnits() { * </pre> * * <code>int32 max_processing_units = 4;</code> - * * @param value The maxProcessingUnits to set. * @return This builder for chaining. */ @@ -1275,8 +1107,6 @@ public Builder setMaxProcessingUnits(int value) { return this; } /** - * - * * <pre> * Maximum number of processing units allocated to the instance. If set, * this number should be multiples of 1000 and be greater than or equal to @@ -1284,7 +1114,6 @@ public Builder setMaxProcessingUnits(int value) { * </pre> * * <code>int32 max_processing_units = 4;</code> - * * @return This builder for chaining. */ public Builder clearMaxProcessingUnits() { @@ -1295,7 +1124,6 @@ public Builder clearMaxProcessingUnits() { } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1308,45 +1136,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits) - private static final com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits(); + DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits(); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<AutoscalingLimits> PARSER = - new com.google.protobuf.AbstractParser<AutoscalingLimits>() { - @java.lang.Override - public AutoscalingLimits parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<AutoscalingLimits> + PARSER = new com.google.protobuf.AbstractParser<AutoscalingLimits>() { + @java.lang.Override + public AutoscalingLimits parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<AutoscalingLimits> parser() { return PARSER; @@ -1358,20 +1182,17 @@ public com.google.protobuf.Parser<AutoscalingLimits> getParserForType() { } @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AutoscalingTargetsOrBuilder - extends + public interface AutoscalingTargetsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The target high priority cpu utilization percentage that the * autoscaler should be trying to achieve for the instance. This number is @@ -1379,17 +1200,12 @@ public interface AutoscalingTargetsOrBuilder * range is [10, 90] inclusive. * </pre> * - * <code> - * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The highPriorityCpuUtilizationPercent. */ int getHighPriorityCpuUtilizationPercent(); /** - * - * * <pre> * Required. The target storage utilization percentage that the autoscaler * should be trying to achieve for the instance. This number is on a scale @@ -1398,59 +1214,52 @@ public interface AutoscalingTargetsOrBuilder * </pre> * * <code>int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The storageUtilizationPercent. */ int getStorageUtilizationPercent(); } /** - * - * * <pre> * The autoscaling targets for an instance. * </pre> * * Protobuf type {@code google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets} */ - public static final class AutoscalingTargets extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AutoscalingTargets extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) AutoscalingTargetsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AutoscalingTargets.newBuilder() to construct. private AutoscalingTargets(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private AutoscalingTargets() {} + private AutoscalingTargets() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AutoscalingTargets(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.class, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder - .class); + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.class, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder.class); } public static final int HIGH_PRIORITY_CPU_UTILIZATION_PERCENT_FIELD_NUMBER = 1; private int highPriorityCpuUtilizationPercent_ = 0; /** - * - * * <pre> * Required. The target high priority cpu utilization percentage that the * autoscaler should be trying to achieve for the instance. This number is @@ -1458,10 +1267,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * range is [10, 90] inclusive. * </pre> * - * <code> - * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The highPriorityCpuUtilizationPercent. */ @java.lang.Override @@ -1472,8 +1278,6 @@ public int getHighPriorityCpuUtilizationPercent() { public static final int STORAGE_UTILIZATION_PERCENT_FIELD_NUMBER = 2; private int storageUtilizationPercent_ = 0; /** - * - * * <pre> * Required. The target storage utilization percentage that the autoscaler * should be trying to achieve for the instance. This number is on a scale @@ -1482,7 +1286,6 @@ public int getHighPriorityCpuUtilizationPercent() { * </pre> * * <code>int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The storageUtilizationPercent. */ @java.lang.Override @@ -1491,7 +1294,6 @@ public int getStorageUtilizationPercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1503,7 +1305,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (highPriorityCpuUtilizationPercent_ != 0) { output.writeInt32(1, highPriorityCpuUtilizationPercent_); } @@ -1520,13 +1323,12 @@ public int getSerializedSize() { size = 0; if (highPriorityCpuUtilizationPercent_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 1, highPriorityCpuUtilizationPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, highPriorityCpuUtilizationPercent_); } if (storageUtilizationPercent_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(2, storageUtilizationPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, storageUtilizationPercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1536,18 +1338,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets)) { + if (!(obj instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets other = - (com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) obj; + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets other = (com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) obj; - if (getHighPriorityCpuUtilizationPercent() != other.getHighPriorityCpuUtilizationPercent()) - return false; - if (getStorageUtilizationPercent() != other.getStorageUtilizationPercent()) return false; + if (getHighPriorityCpuUtilizationPercent() + != other.getHighPriorityCpuUtilizationPercent()) return false; + if (getStorageUtilizationPercent() + != other.getStorageUtilizationPercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1568,101 +1369,90 @@ public int hashCode() { return hash; } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets 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.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets 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.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - 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.admin.instance.v1.AutoscalingConfig.AutoscalingTargets 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.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - 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.admin.instance.v1.AutoscalingConfig.AutoscalingTargets 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.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1672,43 +1462,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * The autoscaling targets for an instance. * </pre> * * Protobuf type {@code google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.class, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder - .class); + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.class, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder.class); } - // Construct using - // com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1719,22 +1505,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - getDefaultInstanceForType() { - return com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - .getDefaultInstance(); + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets getDefaultInstanceForType() { + return com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.getDefaultInstance(); } @java.lang.Override public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets build() { - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets result = - buildPartial(); + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1742,19 +1525,14 @@ public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets } @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - buildPartial() { - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets result = - new com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets buildPartial() { + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets result = new com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.highPriorityCpuUtilizationPercent_ = highPriorityCpuUtilizationPercent_; @@ -1768,54 +1546,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) { - return mergeFrom( - (com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) other); + if (other instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) { + return mergeFrom((com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets other) { - if (other - == com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets other) { + if (other == com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.getDefaultInstance()) return this; if (other.getHighPriorityCpuUtilizationPercent() != 0) { setHighPriorityCpuUtilizationPercent(other.getHighPriorityCpuUtilizationPercent()); } @@ -1848,25 +1618,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - highPriorityCpuUtilizationPercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - storageUtilizationPercent_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + highPriorityCpuUtilizationPercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + storageUtilizationPercent_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1876,13 +1643,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int highPriorityCpuUtilizationPercent_; + private int highPriorityCpuUtilizationPercent_ ; /** - * - * * <pre> * Required. The target high priority cpu utilization percentage that the * autoscaler should be trying to achieve for the instance. This number is @@ -1890,10 +1654,7 @@ public Builder mergeFrom( * range is [10, 90] inclusive. * </pre> * - * <code> - * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The highPriorityCpuUtilizationPercent. */ @java.lang.Override @@ -1901,8 +1662,6 @@ public int getHighPriorityCpuUtilizationPercent() { return highPriorityCpuUtilizationPercent_; } /** - * - * * <pre> * Required. The target high priority cpu utilization percentage that the * autoscaler should be trying to achieve for the instance. This number is @@ -1910,10 +1669,7 @@ public int getHighPriorityCpuUtilizationPercent() { * range is [10, 90] inclusive. * </pre> * - * <code> - * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param value The highPriorityCpuUtilizationPercent to set. * @return This builder for chaining. */ @@ -1925,8 +1681,6 @@ public Builder setHighPriorityCpuUtilizationPercent(int value) { return this; } /** - * - * * <pre> * Required. The target high priority cpu utilization percentage that the * autoscaler should be trying to achieve for the instance. This number is @@ -1934,10 +1688,7 @@ public Builder setHighPriorityCpuUtilizationPercent(int value) { * range is [10, 90] inclusive. * </pre> * - * <code> - * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return This builder for chaining. */ public Builder clearHighPriorityCpuUtilizationPercent() { @@ -1947,10 +1698,8 @@ public Builder clearHighPriorityCpuUtilizationPercent() { return this; } - private int storageUtilizationPercent_; + private int storageUtilizationPercent_ ; /** - * - * * <pre> * Required. The target storage utilization percentage that the autoscaler * should be trying to achieve for the instance. This number is on a scale @@ -1958,9 +1707,7 @@ public Builder clearHighPriorityCpuUtilizationPercent() { * [10, 100] inclusive. * </pre> * - * <code>int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The storageUtilizationPercent. */ @java.lang.Override @@ -1968,8 +1715,6 @@ public int getStorageUtilizationPercent() { return storageUtilizationPercent_; } /** - * - * * <pre> * Required. The target storage utilization percentage that the autoscaler * should be trying to achieve for the instance. This number is on a scale @@ -1977,9 +1722,7 @@ public int getStorageUtilizationPercent() { * [10, 100] inclusive. * </pre> * - * <code>int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @param value The storageUtilizationPercent to set. * @return This builder for chaining. */ @@ -1991,8 +1734,6 @@ public Builder setStorageUtilizationPercent(int value) { return this; } /** - * - * * <pre> * Required. The target storage utilization percentage that the autoscaler * should be trying to achieve for the instance. This number is on a scale @@ -2000,9 +1741,7 @@ public Builder setStorageUtilizationPercent(int value) { * [10, 100] inclusive. * </pre> * - * <code>int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return This builder for chaining. */ public Builder clearStorageUtilizationPercent() { @@ -2011,7 +1750,6 @@ public Builder clearStorageUtilizationPercent() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2024,45 +1762,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets) - private static final com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets(); + DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets(); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<AutoscalingTargets> PARSER = - new com.google.protobuf.AbstractParser<AutoscalingTargets>() { - @java.lang.Override - public AutoscalingTargets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<AutoscalingTargets> + PARSER = new com.google.protobuf.AbstractParser<AutoscalingTargets>() { + @java.lang.Override + public AutoscalingTargets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<AutoscalingTargets> parser() { return PARSER; @@ -2074,26 +1808,20 @@ public com.google.protobuf.Parser<AutoscalingTargets> getParserForType() { } @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int AUTOSCALING_LIMITS_FIELD_NUMBER = 1; - private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - autoscalingLimits_; + private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscalingLimits_; /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the autoscalingLimits field is set. */ @java.lang.Override @@ -2101,60 +1829,37 @@ public boolean hasAutoscalingLimits() { return autoscalingLimits_ != null; } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The autoscalingLimits. */ @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - getAutoscalingLimits() { - return autoscalingLimits_ == null - ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - .getDefaultInstance() - : autoscalingLimits_; + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits getAutoscalingLimits() { + return autoscalingLimits_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.getDefaultInstance() : autoscalingLimits_; } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder - getAutoscalingLimitsOrBuilder() { - return autoscalingLimits_ == null - ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - .getDefaultInstance() - : autoscalingLimits_; + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder getAutoscalingLimitsOrBuilder() { + return autoscalingLimits_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.getDefaultInstance() : autoscalingLimits_; } public static final int AUTOSCALING_TARGETS_FIELD_NUMBER = 2; - private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - autoscalingTargets_; + private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscalingTargets_; /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the autoscalingTargets field is set. */ @java.lang.Override @@ -2162,48 +1867,30 @@ public boolean hasAutoscalingTargets() { return autoscalingTargets_ != null; } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The autoscalingTargets. */ @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - getAutoscalingTargets() { - return autoscalingTargets_ == null - ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - .getDefaultInstance() - : autoscalingTargets_; + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets getAutoscalingTargets() { + return autoscalingTargets_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.getDefaultInstance() : autoscalingTargets_; } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder - getAutoscalingTargetsOrBuilder() { - return autoscalingTargets_ == null - ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - .getDefaultInstance() - : autoscalingTargets_; + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder getAutoscalingTargetsOrBuilder() { + return autoscalingTargets_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.getDefaultInstance() : autoscalingTargets_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2215,7 +1902,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (autoscalingLimits_ != null) { output.writeMessage(1, getAutoscalingLimits()); } @@ -2232,10 +1920,12 @@ public int getSerializedSize() { size = 0; if (autoscalingLimits_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAutoscalingLimits()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAutoscalingLimits()); } if (autoscalingTargets_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAutoscalingTargets()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAutoscalingTargets()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2245,21 +1935,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.AutoscalingConfig other = - (com.google.spanner.admin.instance.v1.AutoscalingConfig) obj; + com.google.spanner.admin.instance.v1.AutoscalingConfig other = (com.google.spanner.admin.instance.v1.AutoscalingConfig) obj; if (hasAutoscalingLimits() != other.hasAutoscalingLimits()) return false; if (hasAutoscalingLimits()) { - if (!getAutoscalingLimits().equals(other.getAutoscalingLimits())) return false; + if (!getAutoscalingLimits() + .equals(other.getAutoscalingLimits())) return false; } if (hasAutoscalingTargets() != other.hasAutoscalingTargets()) return false; if (hasAutoscalingTargets()) { - if (!getAutoscalingTargets().equals(other.getAutoscalingTargets())) return false; + if (!getAutoscalingTargets() + .equals(other.getAutoscalingTargets())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2286,136 +1977,131 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig 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.admin.instance.v1.AutoscalingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.AutoscalingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.AutoscalingConfig prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.AutoscalingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Autoscaling config for an instance. * </pre> * * Protobuf type {@code google.spanner.admin.instance.v1.AutoscalingConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.AutoscalingConfig) com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.AutoscalingConfig.class, - com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder.class); + com.google.spanner.admin.instance.v1.AutoscalingConfig.class, com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.AutoscalingConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2434,9 +2120,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor; } @java.lang.Override @@ -2455,11 +2141,8 @@ public com.google.spanner.admin.instance.v1.AutoscalingConfig build() { @java.lang.Override public com.google.spanner.admin.instance.v1.AutoscalingConfig buildPartial() { - com.google.spanner.admin.instance.v1.AutoscalingConfig result = - new com.google.spanner.admin.instance.v1.AutoscalingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.AutoscalingConfig result = new com.google.spanner.admin.instance.v1.AutoscalingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2467,16 +2150,14 @@ public com.google.spanner.admin.instance.v1.AutoscalingConfig buildPartial() { private void buildPartial0(com.google.spanner.admin.instance.v1.AutoscalingConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.autoscalingLimits_ = - autoscalingLimitsBuilder_ == null - ? autoscalingLimits_ - : autoscalingLimitsBuilder_.build(); + result.autoscalingLimits_ = autoscalingLimitsBuilder_ == null + ? autoscalingLimits_ + : autoscalingLimitsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.autoscalingTargets_ = - autoscalingTargetsBuilder_ == null - ? autoscalingTargets_ - : autoscalingTargetsBuilder_.build(); + result.autoscalingTargets_ = autoscalingTargetsBuilder_ == null + ? autoscalingTargets_ + : autoscalingTargetsBuilder_.build(); } } @@ -2484,39 +2165,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.AutoscalingConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.AutoscalingConfig) { - return mergeFrom((com.google.spanner.admin.instance.v1.AutoscalingConfig) other); + return mergeFrom((com.google.spanner.admin.instance.v1.AutoscalingConfig)other); } else { super.mergeFrom(other); return this; @@ -2524,8 +2204,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.AutoscalingConfig other) { - if (other == com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()) return this; if (other.hasAutoscalingLimits()) { mergeAutoscalingLimits(other.getAutoscalingLimits()); } @@ -2558,27 +2237,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getAutoscalingLimitsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getAutoscalingTargetsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getAutoscalingLimitsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAutoscalingTargetsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2588,69 +2266,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - autoscalingLimits_; + private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscalingLimits_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder> - autoscalingLimitsBuilder_; + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder> autoscalingLimitsBuilder_; /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the autoscalingLimits field is set. */ public boolean hasAutoscalingLimits() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The autoscalingLimits. */ - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - getAutoscalingLimits() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits getAutoscalingLimits() { if (autoscalingLimitsBuilder_ == null) { - return autoscalingLimits_ == null - ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - .getDefaultInstance() - : autoscalingLimits_; + return autoscalingLimits_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.getDefaultInstance() : autoscalingLimits_; } else { return autoscalingLimitsBuilder_.getMessage(); } } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setAutoscalingLimits( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits value) { + public Builder setAutoscalingLimits(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits value) { if (autoscalingLimitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2664,19 +2318,14 @@ public Builder setAutoscalingLimits( return this; } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setAutoscalingLimits( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder - builderForValue) { + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder builderForValue) { if (autoscalingLimitsBuilder_ == null) { autoscalingLimits_ = builderForValue.build(); } else { @@ -2687,24 +2336,17 @@ public Builder setAutoscalingLimits( return this; } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder mergeAutoscalingLimits( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits value) { + public Builder mergeAutoscalingLimits(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits value) { if (autoscalingLimitsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && autoscalingLimits_ != null - && autoscalingLimits_ - != com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + autoscalingLimits_ != null && + autoscalingLimits_ != com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.getDefaultInstance()) { getAutoscalingLimitsBuilder().mergeFrom(value); } else { autoscalingLimits_ = value; @@ -2717,15 +2359,11 @@ public Builder mergeAutoscalingLimits( return this; } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearAutoscalingLimits() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2738,132 +2376,90 @@ public Builder clearAutoscalingLimits() { return this; } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder - getAutoscalingLimitsBuilder() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder getAutoscalingLimitsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAutoscalingLimitsFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder - getAutoscalingLimitsOrBuilder() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder getAutoscalingLimitsOrBuilder() { if (autoscalingLimitsBuilder_ != null) { return autoscalingLimitsBuilder_.getMessageOrBuilder(); } else { - return autoscalingLimits_ == null - ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits - .getDefaultInstance() - : autoscalingLimits_; + return autoscalingLimits_ == null ? + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.getDefaultInstance() : autoscalingLimits_; } } /** - * - * * <pre> * Required. Autoscaling limits for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder> + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder> getAutoscalingLimitsFieldBuilder() { if (autoscalingLimitsBuilder_ == null) { - autoscalingLimitsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder>( - getAutoscalingLimits(), getParentForChildren(), isClean()); + autoscalingLimitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits.Builder, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder>( + getAutoscalingLimits(), + getParentForChildren(), + isClean()); autoscalingLimits_ = null; } return autoscalingLimitsBuilder_; } - private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - autoscalingTargets_; + private com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscalingTargets_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder> - autoscalingTargetsBuilder_; + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder> autoscalingTargetsBuilder_; /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the autoscalingTargets field is set. */ public boolean hasAutoscalingTargets() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The autoscalingTargets. */ - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - getAutoscalingTargets() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets getAutoscalingTargets() { if (autoscalingTargetsBuilder_ == null) { - return autoscalingTargets_ == null - ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - .getDefaultInstance() - : autoscalingTargets_; + return autoscalingTargets_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.getDefaultInstance() : autoscalingTargets_; } else { return autoscalingTargetsBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setAutoscalingTargets( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets value) { + public Builder setAutoscalingTargets(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets value) { if (autoscalingTargetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2877,19 +2473,14 @@ public Builder setAutoscalingTargets( return this; } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setAutoscalingTargets( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder - builderForValue) { + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder builderForValue) { if (autoscalingTargetsBuilder_ == null) { autoscalingTargets_ = builderForValue.build(); } else { @@ -2900,24 +2491,17 @@ public Builder setAutoscalingTargets( return this; } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder mergeAutoscalingTargets( - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets value) { + public Builder mergeAutoscalingTargets(com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets value) { if (autoscalingTargetsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && autoscalingTargets_ != null - && autoscalingTargets_ - != com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + autoscalingTargets_ != null && + autoscalingTargets_ != com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.getDefaultInstance()) { getAutoscalingTargetsBuilder().mergeFrom(value); } else { autoscalingTargets_ = value; @@ -2930,15 +2514,11 @@ public Builder mergeAutoscalingTargets( return this; } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearAutoscalingTargets() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2951,74 +2531,55 @@ public Builder clearAutoscalingTargets() { return this; } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder - getAutoscalingTargetsBuilder() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder getAutoscalingTargetsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAutoscalingTargetsFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ - public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder - getAutoscalingTargetsOrBuilder() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder getAutoscalingTargetsOrBuilder() { if (autoscalingTargetsBuilder_ != null) { return autoscalingTargetsBuilder_.getMessageOrBuilder(); } else { - return autoscalingTargets_ == null - ? com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets - .getDefaultInstance() - : autoscalingTargets_; + return autoscalingTargets_ == null ? + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.getDefaultInstance() : autoscalingTargets_; } } /** - * - * * <pre> * Required. The autoscaling targets for an instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder> + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder> getAutoscalingTargetsFieldBuilder() { if (autoscalingTargetsBuilder_ == null) { - autoscalingTargetsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder, - com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder>( - getAutoscalingTargets(), getParentForChildren(), isClean()); + autoscalingTargetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.Builder, com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder>( + getAutoscalingTargets(), + getParentForChildren(), + isClean()); autoscalingTargets_ = null; } return autoscalingTargetsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3028,12 +2589,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.AutoscalingConfig) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.AutoscalingConfig) private static final com.google.spanner.admin.instance.v1.AutoscalingConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.AutoscalingConfig(); } @@ -3042,27 +2603,27 @@ public static com.google.spanner.admin.instance.v1.AutoscalingConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<AutoscalingConfig> PARSER = - new com.google.protobuf.AbstractParser<AutoscalingConfig>() { - @java.lang.Override - public AutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<AutoscalingConfig> + PARSER = new com.google.protobuf.AbstractParser<AutoscalingConfig>() { + @java.lang.Override + public AutoscalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<AutoscalingConfig> parser() { return PARSER; @@ -3077,4 +2638,6 @@ public com.google.protobuf.Parser<AutoscalingConfig> getParserForType() { public com.google.spanner.admin.instance.v1.AutoscalingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfigOrBuilder.java new file mode 100644 index 00000000000..5ac76eabe8b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfigOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/instance/v1/spanner_instance_admin.proto + +package com.google.spanner.admin.instance.v1; + +public interface AutoscalingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.AutoscalingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. Autoscaling limits for an instance. + * </pre> + * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> + * @return Whether the autoscalingLimits field is set. + */ + boolean hasAutoscalingLimits(); + /** + * <pre> + * Required. Autoscaling limits for an instance. + * </pre> + * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> + * @return The autoscalingLimits. + */ + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits getAutoscalingLimits(); + /** + * <pre> + * Required. Autoscaling limits for an instance. + * </pre> + * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];</code> + */ + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsOrBuilder getAutoscalingLimitsOrBuilder(); + + /** + * <pre> + * Required. The autoscaling targets for an instance. + * </pre> + * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> + * @return Whether the autoscalingTargets field is set. + */ + boolean hasAutoscalingTargets(); + /** + * <pre> + * Required. The autoscaling targets for an instance. + * </pre> + * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> + * @return The autoscalingTargets. + */ + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets getAutoscalingTargets(); + /** + * <pre> + * Required. The autoscaling targets for an instance. + * </pre> + * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];</code> + */ + com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsOrBuilder getAutoscalingTargetsOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java new file mode 100644 index 00000000000..e6e3e259347 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/instance/v1/common.proto + +package com.google.spanner.admin.instance.v1; + +public final class CommonProto { + private CommonProto() {} + 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_admin_instance_v1_OperationProgress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_OperationProgress_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/admin/instance/v1/commo" + + "n.proto\022 google.spanner.admin.instance.v" + + "1\032\037google/protobuf/timestamp.proto\"\213\001\n\021O" + + "perationProgress\022\030\n\020progress_percent\030\001 \001" + + "(\005\022.\n\nstart_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022,\n\010end_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\375\001\n$com.google.spanner." + + "admin.instance.v1B\013CommonProtoP\001ZFcloud." + + "google.com/go/spanner/admin/instance/api" + + "v1/instancepb;instancepb\252\002&Google.Cloud." + + "Spanner.Admin.Instance.V1\312\002&Google\\Cloud" + + "\\Spanner\\Admin\\Instance\\V1\352\002+Google::Clo" + + "ud::Spanner::Admin::Instance::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_spanner_admin_instance_v1_OperationProgress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor, + new java.lang.String[] { "ProgressPercent", "StartTime", "EndTime", }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java similarity index 68% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java index 383a27b4ffb..0f79528c0a0 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * Metadata type for the operation returned by * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]. @@ -28,50 +11,46 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceConfigMetadata} */ -public final class CreateInstanceConfigMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceConfigMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) CreateInstanceConfigMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceConfigMetadata.newBuilder() to construct. private CreateInstanceConfigMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private CreateInstanceConfigMetadata() {} + private CreateInstanceConfigMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceConfigMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.class, - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.Builder.class); + com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.class, com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.Builder.class); } public static final int INSTANCE_CONFIG_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_; /** - * - * * <pre> * The target instance config end state. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @return Whether the instanceConfig field is set. */ @java.lang.Override @@ -79,25 +58,18 @@ public boolean hasInstanceConfig() { return instanceConfig_ != null; } /** - * - * * <pre> * The target instance config end state. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } /** - * - * * <pre> * The target instance config end state. * </pre> @@ -106,16 +78,12 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder() { - return instanceConfig_ == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() - : instanceConfig_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } public static final int PROGRESS_FIELD_NUMBER = 2; private com.google.spanner.admin.instance.v1.OperationProgress progress_; /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -123,7 +91,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ @java.lang.Override @@ -131,8 +98,6 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -140,18 +105,13 @@ public boolean hasProgress() { * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ @java.lang.Override public com.google.spanner.admin.instance.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() : progress_; } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -162,22 +122,17 @@ public com.google.spanner.admin.instance.v1.OperationProgress getProgress() { */ @java.lang.Override public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() : progress_; } public static final int CANCEL_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp cancelTime_; /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ @java.lang.Override @@ -185,14 +140,11 @@ public boolean hasCancelTime() { return cancelTime_ != null; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ @java.lang.Override @@ -200,8 +152,6 @@ public com.google.protobuf.Timestamp getCancelTime() { return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -214,7 +164,6 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (instanceConfig_ != null) { output.writeMessage(1, getInstanceConfig()); } @@ -246,13 +196,16 @@ public int getSerializedSize() { size = 0; if (instanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInstanceConfig()); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgress()); } if (cancelTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCancelTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -262,25 +215,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata other = - (com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) obj; + com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata other = (com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) obj; if (hasInstanceConfig() != other.hasInstanceConfig()) return false; if (hasInstanceConfig()) { - if (!getInstanceConfig().equals(other.getInstanceConfig())) return false; + if (!getInstanceConfig() + .equals(other.getInstanceConfig())) return false; } if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (hasCancelTime() != other.hasCancelTime()) return false; if (hasCancelTime()) { - if (!getCancelTime().equals(other.getCancelTime())) return false; + if (!getCancelTime() + .equals(other.getCancelTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -311,105 +266,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata 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.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata - 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.admin.instance.v1.CreateInstanceConfigMetadata 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.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the operation returned by * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]. @@ -417,33 +365,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceConfigMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.class, - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.Builder.class); + com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.class, com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.Builder.class); } - // Construct using - // com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -467,14 +415,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.getDefaultInstance(); } @@ -489,27 +436,28 @@ public com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata build() @java.lang.Override public com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata buildPartial() { - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata result = - new com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata result = new com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.instanceConfig_ = - instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + result.instanceConfig_ = instanceConfigBuilder_ == null + ? instanceConfig_ + : instanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + result.cancelTime_ = cancelTimeBuilder_ == null + ? cancelTime_ + : cancelTimeBuilder_.build(); } } @@ -517,50 +465,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) { - return mergeFrom((com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) other); + return mergeFrom((com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata other) { - if (other - == com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata other) { + if (other == com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata.getDefaultInstance()) return this; if (other.hasInstanceConfig()) { mergeInstanceConfig(other.getInstanceConfig()); } @@ -596,31 +540,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCancelTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCancelTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -630,52 +576,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_; + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> instanceConfigBuilder_; /** - * - * * <pre> * The target instance config end state. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @return Whether the instanceConfig field is set. */ public boolean hasInstanceConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The target instance config end state. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } else { return instanceConfigBuilder_.getMessage(); } } /** - * - * * <pre> * The target instance config end state. * </pre> @@ -696,8 +628,6 @@ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceCo return this; } /** - * - * * <pre> * The target instance config end state. * </pre> @@ -716,8 +646,6 @@ public Builder setInstanceConfig( return this; } /** - * - * * <pre> * The target instance config end state. * </pre> @@ -726,10 +654,9 @@ public Builder setInstanceConfig( */ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.InstanceConfig value) { if (instanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && instanceConfig_ != null - && instanceConfig_ - != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + instanceConfig_ != null && + instanceConfig_ != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) { getInstanceConfigBuilder().mergeFrom(value); } else { instanceConfig_ = value; @@ -742,8 +669,6 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance return this; } /** - * - * * <pre> * The target instance config end state. * </pre> @@ -761,8 +686,6 @@ public Builder clearInstanceConfig() { return this; } /** - * - * * <pre> * The target instance config end state. * </pre> @@ -775,27 +698,21 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo return getInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * The target instance config end state. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder - getInstanceConfigOrBuilder() { + 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_; + return instanceConfig_ == null ? + com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } } /** - * - * * <pre> * The target instance config end state. * </pre> @@ -803,17 +720,14 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> */ 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> + 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()); + 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_; @@ -821,13 +735,8 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo private com.google.spanner.admin.instance.v1.OperationProgress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.OperationProgress, - com.google.spanner.admin.instance.v1.OperationProgress.Builder, - com.google.spanner.admin.instance.v1.OperationProgressOrBuilder> - progressBuilder_; + com.google.spanner.admin.instance.v1.OperationProgress, com.google.spanner.admin.instance.v1.OperationProgress.Builder, com.google.spanner.admin.instance.v1.OperationProgressOrBuilder> progressBuilder_; /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -835,15 +744,12 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -851,21 +757,16 @@ public boolean hasProgress() { * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ public com.google.spanner.admin.instance.v1.OperationProgress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -888,8 +789,6 @@ public Builder setProgress(com.google.spanner.admin.instance.v1.OperationProgres return this; } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -910,8 +809,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -922,10 +819,9 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.spanner.admin.instance.v1.OperationProgress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && progress_ != null - && progress_ - != com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + progress_ != null && + progress_ != com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -938,8 +834,6 @@ public Builder mergeProgress(com.google.spanner.admin.instance.v1.OperationProgr return this; } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -959,8 +853,6 @@ public Builder clearProgress() { return this; } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -975,8 +867,6 @@ public com.google.spanner.admin.instance.v1.OperationProgress.Builder getProgres return getProgressFieldBuilder().getBuilder(); } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -989,14 +879,11 @@ public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgre if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() : progress_; } } /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -1006,17 +893,14 @@ public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgre * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.OperationProgress, - com.google.spanner.admin.instance.v1.OperationProgress.Builder, - com.google.spanner.admin.instance.v1.OperationProgressOrBuilder> + com.google.spanner.admin.instance.v1.OperationProgress, com.google.spanner.admin.instance.v1.OperationProgress.Builder, com.google.spanner.admin.instance.v1.OperationProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.OperationProgress, - com.google.spanner.admin.instance.v1.OperationProgress.Builder, - com.google.spanner.admin.instance.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.instance.v1.OperationProgress, com.google.spanner.admin.instance.v1.OperationProgress.Builder, com.google.spanner.admin.instance.v1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; @@ -1024,47 +908,34 @@ public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgre private com.google.protobuf.Timestamp cancelTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cancelTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelTimeBuilder_; /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ public boolean hasCancelTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ public com.google.protobuf.Timestamp getCancelTime() { if (cancelTimeBuilder_ == null) { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } else { return cancelTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1085,15 +956,14 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ - public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCancelTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelTimeBuilder_ == null) { cancelTime_ = builderForValue.build(); } else { @@ -1104,8 +974,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1114,9 +982,9 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { if (cancelTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cancelTime_ != null - && cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cancelTime_ != null && + cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelTimeBuilder().mergeFrom(value); } else { cancelTime_ = value; @@ -1129,8 +997,6 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1148,8 +1014,6 @@ public Builder clearCancelTime() { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1162,8 +1026,6 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() { return getCancelTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1174,14 +1036,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { if (cancelTimeBuilder_ != null) { return cancelTimeBuilder_.getMessageOrBuilder(); } else { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1189,24 +1048,21 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelTimeFieldBuilder() { if (cancelTimeBuilder_ == null) { - cancelTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCancelTime(), getParentForChildren(), isClean()); + cancelTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCancelTime(), + getParentForChildren(), + isClean()); cancelTime_ = null; } return cancelTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,43 +1072,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) - private static final com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata(); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateInstanceConfigMetadata> PARSER = - new com.google.protobuf.AbstractParser<CreateInstanceConfigMetadata>() { - @java.lang.Override - public CreateInstanceConfigMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateInstanceConfigMetadata> + PARSER = new com.google.protobuf.AbstractParser<CreateInstanceConfigMetadata>() { + @java.lang.Override + public CreateInstanceConfigMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateInstanceConfigMetadata> parser() { return PARSER; @@ -1264,8 +1118,9 @@ public com.google.protobuf.Parser<CreateInstanceConfigMetadata> getParserForType } @java.lang.Override - public com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java similarity index 78% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java index 42188854244..6581156a95e 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface CreateInstanceConfigMetadataOrBuilder - extends +public interface CreateInstanceConfigMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The target instance config end state. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @return Whether the instanceConfig field is set. */ boolean hasInstanceConfig(); /** - * - * * <pre> * The target instance config end state. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @return The instanceConfig. */ com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig(); /** - * - * * <pre> * The target instance config end state. * </pre> @@ -59,8 +35,6 @@ public interface CreateInstanceConfigMetadataOrBuilder com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder(); /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -68,13 +42,10 @@ public interface CreateInstanceConfigMetadataOrBuilder * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -82,13 +53,10 @@ public interface CreateInstanceConfigMetadataOrBuilder * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ com.google.spanner.admin.instance.v1.OperationProgress getProgress(); /** - * - * * <pre> * The progress of the * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig] @@ -100,32 +68,24 @@ public interface CreateInstanceConfigMetadataOrBuilder com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgressOrBuilder(); /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ boolean hasCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ com.google.protobuf.Timestamp getCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java similarity index 67% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java index ca7fbf66518..ed0ef9d2dd2 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [CreateInstanceConfigRequest][InstanceAdmin.CreateInstanceConfigRequest]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceConfigRequest} */ -public final class CreateInstanceConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.CreateInstanceConfigRequest) CreateInstanceConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceConfigRequest.newBuilder() to construct. private CreateInstanceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CreateInstanceConfigRequest() { parent_ = ""; instanceConfigId_ = ""; @@ -45,41 +27,34 @@ private CreateInstanceConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.class, - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.Builder.class); + com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.class, com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,12 +95,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int INSTANCE_CONFIG_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceConfigId_ = ""; /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -136,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The instanceConfigId. */ @java.lang.Override @@ -145,15 +114,14 @@ public java.lang.String getInstanceConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceConfigId_ = s; return s; } } /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -162,15 +130,16 @@ public java.lang.String getInstanceConfigId() { * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for instanceConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceConfigId_ = b; return b; } else { @@ -181,8 +150,6 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { public static final int INSTANCE_CONFIG_FIELD_NUMBER = 3; private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_; /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -191,10 +158,7 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instanceConfig field is set. */ @java.lang.Override @@ -202,8 +166,6 @@ public boolean hasInstanceConfig() { return instanceConfig_ != null; } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -212,21 +174,14 @@ public boolean hasInstanceConfig() { * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -235,29 +190,22 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder() { - return instanceConfig_ == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() - : instanceConfig_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 4;</code> - * * @return The validateOnly. */ @java.lang.Override @@ -266,7 +214,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -307,10 +255,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceConfigId_); } if (instanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstanceConfig()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -320,21 +270,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest other = - (com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest) obj; + com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest other = (com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getInstanceConfigId().equals(other.getInstanceConfigId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getInstanceConfigId() + .equals(other.getInstanceConfigId())) return false; if (hasInstanceConfig() != other.hasInstanceConfig()) return false; if (hasInstanceConfig()) { - if (!getInstanceConfig().equals(other.getInstanceConfig())) return false; + if (!getInstanceConfig() + .equals(other.getInstanceConfig())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,111 +308,106 @@ public int hashCode() { hash = (53 * hash) + getInstanceConfig().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest 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.admin.instance.v1.CreateInstanceConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [CreateInstanceConfigRequest][InstanceAdmin.CreateInstanceConfigRequest]. @@ -467,32 +415,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.CreateInstanceConfigRequest) com.google.spanner.admin.instance.v1.CreateInstanceConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.class, - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.Builder.class); + com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.class, com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -509,14 +458,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.getDefaultInstance(); } @@ -531,17 +479,13 @@ public com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest build() @java.lang.Override public com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest buildPartial() { - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest result = - new com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest result = new com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -550,8 +494,9 @@ private void buildPartial0( result.instanceConfigId_ = instanceConfigId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.instanceConfig_ = - instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + result.instanceConfig_ = instanceConfigBuilder_ == null + ? instanceConfig_ + : instanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -562,50 +507,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest other) { - if (other - == com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest other) { + if (other == com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -648,37 +589,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -688,28 +626,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -718,24 +651,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -743,41 +673,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -787,24 +706,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -814,8 +727,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceConfigId_ = ""; /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -824,13 +735,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceConfigId_ = s; return s; @@ -839,8 +750,6 @@ public java.lang.String getInstanceConfigId() { } } /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -849,14 +758,15 @@ public java.lang.String getInstanceConfigId() { * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for instanceConfigId. */ - public com.google.protobuf.ByteString getInstanceConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceConfigId_ = b; return b; } else { @@ -864,8 +774,6 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { } } /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -874,22 +782,18 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The instanceConfigId to set. * @return This builder for chaining. */ - public Builder setInstanceConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceConfigId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -898,7 +802,6 @@ public Builder setInstanceConfigId(java.lang.String value) { * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearInstanceConfigId() { @@ -908,8 +811,6 @@ public Builder clearInstanceConfigId() { return this; } /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -918,14 +819,12 @@ public Builder clearInstanceConfigId() { * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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(); - } + public Builder setInstanceConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceConfigId_ = value; bitField0_ |= 0x00000002; @@ -935,13 +834,8 @@ public Builder setInstanceConfigIdBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> instanceConfigBuilder_; /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -950,18 +844,13 @@ public Builder setInstanceConfigIdBytes(com.google.protobuf.ByteString value) { * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instanceConfig field is set. */ public boolean hasInstanceConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -970,24 +859,17 @@ public boolean hasInstanceConfig() { * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } else { return instanceConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -996,9 +878,7 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceConfig value) { if (instanceConfigBuilder_ == null) { @@ -1014,8 +894,6 @@ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceCo return this; } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -1024,9 +902,7 @@ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceCo * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setInstanceConfig( com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { @@ -1040,8 +916,6 @@ public Builder setInstanceConfig( return this; } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -1050,16 +924,13 @@ public Builder setInstanceConfig( * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ 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()) { + if (((bitField0_ & 0x00000004) != 0) && + instanceConfig_ != null && + instanceConfig_ != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) { getInstanceConfigBuilder().mergeFrom(value); } else { instanceConfig_ = value; @@ -1072,8 +943,6 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance return this; } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -1082,9 +951,7 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1097,8 +964,6 @@ public Builder clearInstanceConfig() { return this; } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -1107,9 +972,7 @@ public Builder clearInstanceConfig() { * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceConfigBuilder() { bitField0_ |= 0x00000004; @@ -1117,8 +980,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo return getInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -1127,23 +988,17 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder - getInstanceConfigOrBuilder() { + 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_; + return instanceConfig_ == null ? + com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } } /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -1152,38 +1007,30 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ 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> + 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()); + 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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 4;</code> - * * @return The validateOnly. */ @java.lang.Override @@ -1191,15 +1038,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 4;</code> - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1211,15 +1055,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 4;</code> - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1228,9 +1069,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1240,43 +1081,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.CreateInstanceConfigRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceConfigRequest) - private static final com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest(); } - public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateInstanceConfigRequest> PARSER = - new com.google.protobuf.AbstractParser<CreateInstanceConfigRequest>() { - @java.lang.Override - public CreateInstanceConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateInstanceConfigRequest> + PARSER = new com.google.protobuf.AbstractParser<CreateInstanceConfigRequest>() { + @java.lang.Override + public CreateInstanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateInstanceConfigRequest> parser() { return PARSER; @@ -1288,8 +1127,9 @@ public com.google.protobuf.Parser<CreateInstanceConfigRequest> getParserForType( } @java.lang.Override - public com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.CreateInstanceConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java index 80f27abe104..96d3273fee2 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface CreateInstanceConfigRequestOrBuilder - extends +public interface CreateInstanceConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.CreateInstanceConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The name of the project in which to create the instance config. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -65,13 +38,10 @@ public interface CreateInstanceConfigRequestOrBuilder * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The instanceConfigId. */ java.lang.String getInstanceConfigId(); /** - * - * * <pre> * Required. The ID of the instance config to create. Valid identifiers are * of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 @@ -80,14 +50,12 @@ public interface CreateInstanceConfigRequestOrBuilder * </pre> * * <code>string instance_config_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for instanceConfigId. */ - com.google.protobuf.ByteString getInstanceConfigIdBytes(); + com.google.protobuf.ByteString + getInstanceConfigIdBytes(); /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -96,16 +64,11 @@ public interface CreateInstanceConfigRequestOrBuilder * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instanceConfig field is set. */ boolean hasInstanceConfig(); /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -114,16 +77,11 @@ public interface CreateInstanceConfigRequestOrBuilder * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return The instanceConfig. */ com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig(); /** - * - * * <pre> * Required. The InstanceConfig proto of the configuration to create. * instance_config.name must be @@ -132,22 +90,17 @@ public interface CreateInstanceConfigRequestOrBuilder * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder(); /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 4;</code> - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java similarity index 73% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java index 0aa8cef0567..40d2462d01f 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * Metadata type for the operation returned by * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]. @@ -28,50 +11,46 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceMetadata} */ -public final class CreateInstanceMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.CreateInstanceMetadata) CreateInstanceMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceMetadata.newBuilder() to construct. private CreateInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private CreateInstanceMetadata() {} + private CreateInstanceMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.CreateInstanceMetadata.class, - com.google.spanner.admin.instance.v1.CreateInstanceMetadata.Builder.class); + com.google.spanner.admin.instance.v1.CreateInstanceMetadata.class, com.google.spanner.admin.instance.v1.CreateInstanceMetadata.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.Instance instance_; /** - * - * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @return Whether the instance field is set. */ @java.lang.Override @@ -79,25 +58,18 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /** - * - * * <pre> * The instance being created. * </pre> @@ -106,16 +78,12 @@ public com.google.spanner.admin.instance.v1.Instance getInstance() { */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { - return instance_ == null - ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -123,7 +91,6 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -131,8 +98,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -140,7 +105,6 @@ public boolean hasStartTime() { * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ @java.lang.Override @@ -148,8 +112,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -166,8 +128,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int CANCEL_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp cancelTime_; /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -175,7 +135,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ @java.lang.Override @@ -183,8 +142,6 @@ public boolean hasCancelTime() { return cancelTime_ != null; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -192,7 +149,6 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ @java.lang.Override @@ -200,8 +156,6 @@ public com.google.protobuf.Timestamp getCancelTime() { return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -218,14 +172,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp endTime_; /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -233,14 +184,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return The endTime. */ @java.lang.Override @@ -248,8 +196,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -262,7 +208,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +219,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (instance_ != null) { output.writeMessage(1, getInstance()); } @@ -297,16 +243,20 @@ public int getSerializedSize() { size = 0; if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInstance()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (cancelTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCancelTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -316,29 +266,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.CreateInstanceMetadata)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.CreateInstanceMetadata other = - (com.google.spanner.admin.instance.v1.CreateInstanceMetadata) obj; + com.google.spanner.admin.instance.v1.CreateInstanceMetadata other = (com.google.spanner.admin.instance.v1.CreateInstanceMetadata) obj; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasCancelTime() != other.hasCancelTime()) return false; if (hasCancelTime()) { - if (!getCancelTime().equals(other.getCancelTime())) return false; + if (!getCancelTime() + .equals(other.getCancelTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -373,104 +326,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata 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.admin.instance.v1.CreateInstanceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.CreateInstanceMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.CreateInstanceMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the operation returned by * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]. @@ -478,32 +425,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.CreateInstanceMetadata) com.google.spanner.admin.instance.v1.CreateInstanceMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.CreateInstanceMetadata.class, - com.google.spanner.admin.instance.v1.CreateInstanceMetadata.Builder.class); + com.google.spanner.admin.instance.v1.CreateInstanceMetadata.class, com.google.spanner.admin.instance.v1.CreateInstanceMetadata.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.CreateInstanceMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -532,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor; } @java.lang.Override @@ -553,11 +501,8 @@ public com.google.spanner.admin.instance.v1.CreateInstanceMetadata build() { @java.lang.Override public com.google.spanner.admin.instance.v1.CreateInstanceMetadata buildPartial() { - com.google.spanner.admin.instance.v1.CreateInstanceMetadata result = - new com.google.spanner.admin.instance.v1.CreateInstanceMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.CreateInstanceMetadata result = new com.google.spanner.admin.instance.v1.CreateInstanceMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -565,16 +510,24 @@ public com.google.spanner.admin.instance.v1.CreateInstanceMetadata buildPartial( private void buildPartial0(com.google.spanner.admin.instance.v1.CreateInstanceMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + result.instance_ = instanceBuilder_ == null + ? instance_ + : instanceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + result.cancelTime_ = cancelTimeBuilder_ == null + ? cancelTime_ + : cancelTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } } @@ -582,39 +535,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.CreateInstanceMe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.CreateInstanceMetadata) { - return mergeFrom((com.google.spanner.admin.instance.v1.CreateInstanceMetadata) other); + return mergeFrom((com.google.spanner.admin.instance.v1.CreateInstanceMetadata)other); } else { super.mergeFrom(other); return this; @@ -622,8 +574,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.CreateInstanceMetadata other) { - if (other == com.google.spanner.admin.instance.v1.CreateInstanceMetadata.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.CreateInstanceMetadata.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } @@ -662,37 +613,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCancelTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCancelTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -702,52 +656,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_; + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @return Whether the instance field is set. */ public boolean hasInstance() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * * <pre> * The instance being created. * </pre> @@ -768,8 +708,6 @@ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) return this; } /** - * - * * <pre> * The instance being created. * </pre> @@ -788,8 +726,6 @@ public Builder setInstance( return this; } /** - * - * * <pre> * The instance being created. * </pre> @@ -798,9 +734,9 @@ public Builder setInstance( */ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value) { if (instanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && instance_ != null - && instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + instance_ != null && + instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) { getInstanceBuilder().mergeFrom(value); } else { instance_ = value; @@ -813,8 +749,6 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value return this; } /** - * - * * <pre> * The instance being created. * </pre> @@ -832,8 +766,6 @@ public Builder clearInstance() { return this; } /** - * - * * <pre> * The instance being created. * </pre> @@ -846,8 +778,6 @@ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder( return getInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * The instance being created. * </pre> @@ -858,14 +788,11 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * * <pre> * The instance being created. * </pre> @@ -873,17 +800,14 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ 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> + 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()); + 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_; @@ -891,13 +815,8 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -905,15 +824,12 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -921,7 +837,6 @@ public boolean hasStartTime() { * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -932,8 +847,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -956,8 +869,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -966,7 +877,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp start_time = 2;</code> */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -977,8 +889,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -989,9 +899,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1004,8 +914,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -1025,8 +933,6 @@ public Builder clearStartTime() { return this; } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -1041,8 +947,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -1055,12 +959,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -1070,17 +973,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * <code>.google.protobuf.Timestamp start_time = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1088,13 +988,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp cancelTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cancelTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelTimeBuilder_; /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1102,15 +997,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ public boolean hasCancelTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1118,21 +1010,16 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ public com.google.protobuf.Timestamp getCancelTime() { if (cancelTimeBuilder_ == null) { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } else { return cancelTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1155,8 +1042,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1165,7 +1050,8 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ - public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCancelTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelTimeBuilder_ == null) { cancelTime_ = builderForValue.build(); } else { @@ -1176,8 +1062,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1188,9 +1072,9 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { if (cancelTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cancelTime_ != null - && cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cancelTime_ != null && + cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelTimeBuilder().mergeFrom(value); } else { cancelTime_ = value; @@ -1203,8 +1087,6 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1224,8 +1106,6 @@ public Builder clearCancelTime() { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1240,8 +1120,6 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() { return getCancelTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1254,14 +1132,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { if (cancelTimeBuilder_ != null) { return cancelTimeBuilder_.getMessageOrBuilder(); } else { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1271,17 +1146,14 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelTimeFieldBuilder() { if (cancelTimeBuilder_ == null) { - cancelTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCancelTime(), getParentForChildren(), isClean()); + cancelTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCancelTime(), + getParentForChildren(), + isClean()); cancelTime_ = null; } return cancelTimeBuilder_; @@ -1289,33 +1161,24 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1326,8 +1189,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1348,15 +1209,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1367,8 +1227,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1377,9 +1235,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1392,8 +1250,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1411,8 +1267,6 @@ public Builder clearEndTime() { return this; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1425,8 +1279,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1437,12 +1289,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1450,24 +1301,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * <code>.google.protobuf.Timestamp end_time = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1477,12 +1325,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.CreateInstanceMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceMetadata) private static final com.google.spanner.admin.instance.v1.CreateInstanceMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.CreateInstanceMetadata(); } @@ -1491,27 +1339,27 @@ public static com.google.spanner.admin.instance.v1.CreateInstanceMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateInstanceMetadata> PARSER = - new com.google.protobuf.AbstractParser<CreateInstanceMetadata>() { - @java.lang.Override - public CreateInstanceMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateInstanceMetadata> + PARSER = new com.google.protobuf.AbstractParser<CreateInstanceMetadata>() { + @java.lang.Override + public CreateInstanceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateInstanceMetadata> parser() { return PARSER; @@ -1526,4 +1374,6 @@ public com.google.protobuf.Parser<CreateInstanceMetadata> getParserForType() { public com.google.spanner.admin.instance.v1.CreateInstanceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java similarity index 82% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java index c294c0d46bf..27636a2b514 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface CreateInstanceMetadataOrBuilder - extends +public interface CreateInstanceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.CreateInstanceMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * * <pre> * The instance being created. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @return The instance. */ com.google.spanner.admin.instance.v1.Instance getInstance(); /** - * - * * <pre> * The instance being created. * </pre> @@ -59,8 +35,6 @@ public interface CreateInstanceMetadataOrBuilder com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder(); /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -68,13 +42,10 @@ public interface CreateInstanceMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -82,13 +53,10 @@ public interface CreateInstanceMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * * <pre> * The time at which the * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] @@ -100,8 +68,6 @@ public interface CreateInstanceMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -109,13 +75,10 @@ public interface CreateInstanceMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ boolean hasCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -123,13 +86,10 @@ public interface CreateInstanceMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ com.google.protobuf.Timestamp getCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -141,32 +101,24 @@ public interface CreateInstanceMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder(); /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java similarity index 65% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java index 19cbc45e551..49275b0d4af 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -45,41 +27,34 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.CreateInstanceRequest.class, - com.google.spanner.admin.instance.v1.CreateInstanceRequest.Builder.class); + com.google.spanner.admin.instance.v1.CreateInstanceRequest.class, com.google.spanner.admin.instance.v1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,12 +95,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -135,7 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The instanceId. */ @java.lang.Override @@ -144,15 +113,14 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -160,15 +128,16 @@ public java.lang.String getInstanceId() { * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -179,17 +148,12 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.spanner.admin.instance.v1.Instance instance_; /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instance field is set. */ @java.lang.Override @@ -197,46 +161,32 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { - return instance_ == null - ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() - : instance_; + 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; @@ -248,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -284,19 +236,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.CreateInstanceRequest other = - (com.google.spanner.admin.instance.v1.CreateInstanceRequest) obj; + com.google.spanner.admin.instance.v1.CreateInstanceRequest other = (com.google.spanner.admin.instance.v1.CreateInstanceRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -323,104 +277,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.CreateInstanceRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]. @@ -428,32 +376,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.CreateInstanceRequest) com.google.spanner.admin.instance.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.CreateInstanceRequest.class, - com.google.spanner.admin.instance.v1.CreateInstanceRequest.Builder.class); + com.google.spanner.admin.instance.v1.CreateInstanceRequest.class, com.google.spanner.admin.instance.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.CreateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -490,11 +439,8 @@ public com.google.spanner.admin.instance.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.spanner.admin.instance.v1.CreateInstanceRequest buildPartial() { - com.google.spanner.admin.instance.v1.CreateInstanceRequest result = - new com.google.spanner.admin.instance.v1.CreateInstanceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.CreateInstanceRequest result = new com.google.spanner.admin.instance.v1.CreateInstanceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -508,7 +454,9 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.CreateInstanceRe result.instanceId_ = instanceId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + result.instance_ = instanceBuilder_ == null + ? instance_ + : instanceBuilder_.build(); } } @@ -516,39 +464,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.CreateInstanceRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.CreateInstanceRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.CreateInstanceRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -556,8 +503,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.CreateInstanceRequest other) { - if (other == com.google.spanner.admin.instance.v1.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -597,31 +543,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -631,28 +575,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -661,24 +600,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -686,41 +622,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -730,24 +655,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -757,8 +676,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -766,13 +683,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -781,8 +698,6 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -790,14 +705,15 @@ public java.lang.String getInstanceId() { * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -805,8 +721,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -814,22 +728,18 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -837,7 +747,6 @@ public Builder setInstanceId(java.lang.String value) { * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -847,8 +756,6 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -856,14 +763,12 @@ public Builder clearInstanceId() { * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -873,61 +778,42 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instance field is set. */ public boolean hasInstance() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) { if (instanceBuilder_ == null) { @@ -943,16 +829,12 @@ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) return this; } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setInstance( com.google.spanner.admin.instance.v1.Instance.Builder builderForValue) { @@ -966,22 +848,18 @@ public Builder setInstance( return this; } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ 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()) { + if (((bitField0_ & 0x00000004) != 0) && + instance_ != null && + instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) { getInstanceBuilder().mergeFrom(value); } else { instance_ = value; @@ -994,16 +872,12 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value return this; } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearInstance() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1016,16 +890,12 @@ public Builder clearInstance() { return this; } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder() { bitField0_ |= 0x00000004; @@ -1033,57 +903,45 @@ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder( return getInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ 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_; + return instance_ == null ? + com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ 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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1093,12 +951,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceRequest) private static final com.google.spanner.admin.instance.v1.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.CreateInstanceRequest(); } @@ -1107,27 +965,27 @@ public static com.google.spanner.admin.instance.v1.CreateInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateInstanceRequest> PARSER = - new com.google.protobuf.AbstractParser<CreateInstanceRequest>() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateInstanceRequest> + PARSER = new com.google.protobuf.AbstractParser<CreateInstanceRequest>() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateInstanceRequest> parser() { return PARSER; @@ -1142,4 +1000,6 @@ public com.google.protobuf.Parser<CreateInstanceRequest> getParserForType() { public com.google.spanner.admin.instance.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java index 8f97e2a94ca..94b44ef5b9e 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The name of the project in which to create the instance. Values * are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -64,13 +37,10 @@ public interface CreateInstanceRequestOrBuilder * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Required. The ID of the instance to create. Valid identifiers are of the * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in @@ -78,52 +48,38 @@ public interface CreateInstanceRequestOrBuilder * </pre> * * <code>string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> * @return The instance. */ com.google.spanner.admin.instance.v1.Instance getInstance(); /** - * - * * <pre> * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java similarity index 68% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java index 902f2c7043f..64a7dd94ed6 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [DeleteInstanceConfigRequest][InstanceAdmin.DeleteInstanceConfigRequest]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.DeleteInstanceConfigRequest} */ -public final class DeleteInstanceConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstanceConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) DeleteInstanceConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstanceConfigRequest.newBuilder() to construct. private DeleteInstanceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private DeleteInstanceConfigRequest() { name_ = ""; etag_ = ""; @@ -45,42 +27,35 @@ private DeleteInstanceConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstanceConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.class, - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.Builder.class); + com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.class, com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ETAG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -141,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string etag = 2;</code> - * * @return The etag. */ @java.lang.Override @@ -150,15 +119,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -170,15 +138,16 @@ public java.lang.String getEtag() { * </pre> * * <code>string etag = 2;</code> - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -189,15 +158,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @return The validateOnly. */ @java.lang.Override @@ -206,7 +172,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,7 +183,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -244,7 +210,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,17 +221,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest other = - (com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) obj; + com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest other = (com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -281,111 +250,106 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest 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.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [DeleteInstanceConfigRequest][InstanceAdmin.DeleteInstanceConfigRequest]. @@ -393,32 +357,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.DeleteInstanceConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.class, - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.Builder.class); + com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.class, com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -430,14 +395,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.getDefaultInstance(); } @@ -452,17 +416,13 @@ public com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest build() @java.lang.Override public com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest buildPartial() { - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest result = - new com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest result = new com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -479,50 +439,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest other) { - if (other - == com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest other) { + if (other == com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -562,31 +518,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,29 +548,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -627,25 +574,22 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -653,43 +597,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearName() { @@ -699,25 +632,19 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -727,8 +654,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -740,13 +665,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string etag = 2;</code> - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -755,8 +680,6 @@ public java.lang.String getEtag() { } } /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -768,14 +691,15 @@ public java.lang.String getEtag() { * </pre> * * <code>string etag = 2;</code> - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -783,8 +707,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -796,22 +718,18 @@ public com.google.protobuf.ByteString getEtagBytes() { * </pre> * * <code>string etag = 2;</code> - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -823,7 +741,6 @@ public Builder setEtag(java.lang.String value) { * </pre> * * <code>string etag = 2;</code> - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -833,8 +750,6 @@ public Builder clearEtag() { return this; } /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -846,14 +761,12 @@ public Builder clearEtag() { * </pre> * * <code>string etag = 2;</code> - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000002; @@ -861,17 +774,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @return The validateOnly. */ @java.lang.Override @@ -879,15 +789,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -899,15 +806,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -916,9 +820,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -928,43 +832,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) - private static final com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest(); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DeleteInstanceConfigRequest> PARSER = - new com.google.protobuf.AbstractParser<DeleteInstanceConfigRequest>() { - @java.lang.Override - public DeleteInstanceConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DeleteInstanceConfigRequest> + PARSER = new com.google.protobuf.AbstractParser<DeleteInstanceConfigRequest>() { + @java.lang.Override + public DeleteInstanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DeleteInstanceConfigRequest> parser() { return PARSER; @@ -976,8 +878,9 @@ public com.google.protobuf.Parser<DeleteInstanceConfigRequest> getParserForType( } @java.lang.Override - public com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java index 396f633f9a3..1cfe039a6dd 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface DeleteInstanceConfigRequestOrBuilder - extends +public interface DeleteInstanceConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.DeleteInstanceConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Required. The name of the instance configuration to be deleted. * Values are of the form * `projects/<project>/instanceConfigs/<instance_config>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -70,13 +43,10 @@ public interface DeleteInstanceConfigRequestOrBuilder * </pre> * * <code>string etag = 2;</code> - * * @return The etag. */ java.lang.String getEtag(); /** - * - * * <pre> * Used for optimistic concurrency control as a way to help prevent * simultaneous deletes of an instance config from overwriting each @@ -88,21 +58,18 @@ public interface DeleteInstanceConfigRequestOrBuilder * </pre> * * <code>string etag = 2;</code> - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java similarity index 64% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java index 06d344081a7..e0f8739f3cf 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance]. @@ -28,57 +11,49 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.DeleteInstanceRequest.class, - com.google.spanner.admin.instance.v1.DeleteInstanceRequest.Builder.class); + com.google.spanner.admin.instance.v1.DeleteInstanceRequest.class, com.google.spanner.admin.instance.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ @java.lang.Override @@ -87,32 +62,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -121,7 +94,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +105,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -157,15 +130,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.DeleteInstanceRequest other = - (com.google.spanner.admin.instance.v1.DeleteInstanceRequest) obj; + com.google.spanner.admin.instance.v1.DeleteInstanceRequest other = (com.google.spanner.admin.instance.v1.DeleteInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,104 +158,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.DeleteInstanceRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance]. @@ -290,32 +257,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.DeleteInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.DeleteInstanceRequest) com.google.spanner.admin.instance.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.DeleteInstanceRequest.class, - com.google.spanner.admin.instance.v1.DeleteInstanceRequest.Builder.class); + com.google.spanner.admin.instance.v1.DeleteInstanceRequest.class, com.google.spanner.admin.instance.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.DeleteInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -346,11 +314,8 @@ public com.google.spanner.admin.instance.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.spanner.admin.instance.v1.DeleteInstanceRequest buildPartial() { - com.google.spanner.admin.instance.v1.DeleteInstanceRequest result = - new com.google.spanner.admin.instance.v1.DeleteInstanceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.DeleteInstanceRequest result = new com.google.spanner.admin.instance.v1.DeleteInstanceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +331,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.DeleteInstanceRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.DeleteInstanceRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.DeleteInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.DeleteInstanceRequest other) { - if (other == com.google.spanner.admin.instance.v1.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.DeleteInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,28 +422,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,24 +447,21 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -516,41 +469,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearName() { @@ -560,33 +502,27 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,12 +532,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.DeleteInstanceRequest) private static final com.google.spanner.admin.instance.v1.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.DeleteInstanceRequest(); } @@ -610,27 +546,27 @@ public static com.google.spanner.admin.instance.v1.DeleteInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DeleteInstanceRequest> PARSER = - new com.google.protobuf.AbstractParser<DeleteInstanceRequest>() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DeleteInstanceRequest> + PARSER = new com.google.protobuf.AbstractParser<DeleteInstanceRequest>() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DeleteInstanceRequest> parser() { return PARSER; @@ -645,4 +581,6 @@ public com.google.protobuf.Parser<DeleteInstanceRequest> getParserForType() { public com.google.spanner.admin.instance.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000000..7cb4be1bb4b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/instance/v1/spanner_instance_admin.proto + +package com.google.spanner.admin.instance.v1; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. The name of the instance to be deleted. Values are of the form + * `projects/<project>/instances/<instance>` + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The name. + */ + java.lang.String getName(); + /** + * <pre> + * Required. The name of the instance to be deleted. Values are of the form + * `projects/<project>/instances/<instance>` + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java similarity index 63% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java index c4de114d587..fd4e10e192f 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [GetInstanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig]. @@ -28,57 +11,49 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.GetInstanceConfigRequest} */ -public final class GetInstanceConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.GetInstanceConfigRequest) GetInstanceConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceConfigRequest.newBuilder() to construct. private GetInstanceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetInstanceConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.class, - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.Builder.class); + com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.class, com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the requested instance configuration. Values are of * the form `projects/<project>/instanceConfigs/<config>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ @java.lang.Override @@ -87,32 +62,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. The name of the requested instance configuration. Values are of * the form `projects/<project>/instanceConfigs/<config>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -121,7 +94,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +105,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -157,15 +130,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.GetInstanceConfigRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest other = - (com.google.spanner.admin.instance.v1.GetInstanceConfigRequest) obj; + com.google.spanner.admin.instance.v1.GetInstanceConfigRequest other = (com.google.spanner.admin.instance.v1.GetInstanceConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,104 +158,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest 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.admin.instance.v1.GetInstanceConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.GetInstanceConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [GetInstanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig]. @@ -290,32 +257,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.GetInstanceConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.GetInstanceConfigRequest) com.google.spanner.admin.instance.v1.GetInstanceConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.class, - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.Builder.class); + com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.class, com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,14 +293,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.GetInstanceConfigRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.GetInstanceConfigRequest getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.getDefaultInstance(); } @@ -347,17 +314,13 @@ public com.google.spanner.admin.instance.v1.GetInstanceConfigRequest build() { @java.lang.Override public com.google.spanner.admin.instance.v1.GetInstanceConfigRequest buildPartial() { - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest result = - new com.google.spanner.admin.instance.v1.GetInstanceConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.GetInstanceConfigRequest result = new com.google.spanner.admin.instance.v1.GetInstanceConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.GetInstanceConfigRequest result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.GetInstanceConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,39 +331,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.GetInstanceConfigRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.GetInstanceConfigRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.GetInstanceConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -408,9 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.GetInstanceConfigRequest other) { - if (other - == com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.GetInstanceConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -442,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,28 +422,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the requested instance configuration. Values are of * the form `projects/<project>/instanceConfigs/<config>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -494,24 +447,21 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. The name of the requested instance configuration. Values are of * the form `projects/<project>/instanceConfigs/<config>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -519,41 +469,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. The name of the requested instance configuration. Values are of * the form `projects/<project>/instanceConfigs/<config>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the requested instance configuration. Values are of * the form `projects/<project>/instanceConfigs/<config>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearName() { @@ -563,33 +502,27 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. The name of the requested instance configuration. Values are of * the form `projects/<project>/instanceConfigs/<config>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,13 +532,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.GetInstanceConfigRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.GetInstanceConfigRequest) - private static final com.google.spanner.admin.instance.v1.GetInstanceConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.GetInstanceConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.GetInstanceConfigRequest(); } @@ -614,27 +546,27 @@ public static com.google.spanner.admin.instance.v1.GetInstanceConfigRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetInstanceConfigRequest> PARSER = - new com.google.protobuf.AbstractParser<GetInstanceConfigRequest>() { - @java.lang.Override - public GetInstanceConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetInstanceConfigRequest> + PARSER = new com.google.protobuf.AbstractParser<GetInstanceConfigRequest>() { + @java.lang.Override + public GetInstanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetInstanceConfigRequest> parser() { return PARSER; @@ -649,4 +581,6 @@ public com.google.protobuf.Parser<GetInstanceConfigRequest> getParserForType() { public com.google.spanner.admin.instance.v1.GetInstanceConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequestOrBuilder.java new file mode 100644 index 00000000000..7cf7102fce5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/instance/v1/spanner_instance_admin.proto + +package com.google.spanner.admin.instance.v1; + +public interface GetInstanceConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.GetInstanceConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. The name of the requested instance configuration. Values are of + * the form `projects/<project>/instanceConfigs/<config>`. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The name. + */ + java.lang.String getName(); + /** + * <pre> + * Required. The name of the requested instance configuration. Values are of + * the form `projects/<project>/instanceConfigs/<config>`. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java similarity index 69% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java index b720c34def6..8302874f78c 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance]. @@ -28,57 +11,49 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.GetInstanceRequest.class, - com.google.spanner.admin.instance.v1.GetInstanceRequest.Builder.class); + com.google.spanner.admin.instance.v1.GetInstanceRequest.class, com.google.spanner.admin.instance.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ @java.lang.Override @@ -87,32 +62,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,8 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FIELD_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask fieldMask_; /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -133,7 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>.google.protobuf.FieldMask field_mask = 2;</code> - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -141,8 +111,6 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -151,7 +119,6 @@ public boolean hasFieldMask() { * </pre> * * <code>.google.protobuf.FieldMask field_mask = 2;</code> - * * @return The fieldMask. */ @java.lang.Override @@ -159,8 +126,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -176,7 +141,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +152,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -208,7 +173,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFieldMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +184,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.GetInstanceRequest other = - (com.google.spanner.admin.instance.v1.GetInstanceRequest) obj; + com.google.spanner.admin.instance.v1.GetInstanceRequest other = (com.google.spanner.admin.instance.v1.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,104 +221,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.GetInstanceRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance]. @@ -359,32 +320,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.GetInstanceRequest) com.google.spanner.admin.instance.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.GetInstanceRequest.class, - com.google.spanner.admin.instance.v1.GetInstanceRequest.Builder.class); + com.google.spanner.admin.instance.v1.GetInstanceRequest.class, com.google.spanner.admin.instance.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.GetInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +361,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -420,11 +382,8 @@ public com.google.spanner.admin.instance.v1.GetInstanceRequest build() { @java.lang.Override public com.google.spanner.admin.instance.v1.GetInstanceRequest buildPartial() { - com.google.spanner.admin.instance.v1.GetInstanceRequest result = - new com.google.spanner.admin.instance.v1.GetInstanceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.GetInstanceRequest result = new com.google.spanner.admin.instance.v1.GetInstanceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -435,7 +394,9 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.GetInstanceReque result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.fieldMask_ = fieldMaskBuilder_ == null ? fieldMask_ : fieldMaskBuilder_.build(); + result.fieldMask_ = fieldMaskBuilder_ == null + ? fieldMask_ + : fieldMaskBuilder_.build(); } } @@ -443,39 +404,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.GetInstanceReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.GetInstanceRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.GetInstanceRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -483,8 +443,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.GetInstanceRequest other) { - if (other == com.google.spanner.admin.instance.v1.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -519,25 +478,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getFieldMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getFieldMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -547,28 +505,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -577,24 +530,21 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -602,41 +552,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearName() { @@ -646,24 +585,18 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -673,13 +606,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - fieldMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_; /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -688,15 +616,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>.google.protobuf.FieldMask field_mask = 2;</code> - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -705,7 +630,6 @@ public boolean hasFieldMask() { * </pre> * * <code>.google.protobuf.FieldMask field_mask = 2;</code> - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -716,8 +640,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -741,8 +663,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -752,7 +672,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * * <code>.google.protobuf.FieldMask field_mask = 2;</code> */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); } else { @@ -763,8 +684,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu return this; } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -776,9 +695,9 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && fieldMask_ != null - && fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + fieldMask_ != null && + fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getFieldMaskBuilder().mergeFrom(value); } else { fieldMask_ = value; @@ -791,8 +710,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -813,8 +730,6 @@ public Builder clearFieldMask() { return this; } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -830,8 +745,6 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { return getFieldMaskFieldBuilder().getBuilder(); } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -845,12 +758,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -861,24 +773,21 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * <code>.google.protobuf.FieldMask field_mask = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getFieldMaskFieldBuilder() { if (fieldMaskBuilder_ == null) { - fieldMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getFieldMask(), getParentForChildren(), isClean()); + fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), + getParentForChildren(), + isClean()); fieldMask_ = null; } return fieldMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -888,12 +797,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.GetInstanceRequest) private static final com.google.spanner.admin.instance.v1.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.GetInstanceRequest(); } @@ -902,27 +811,27 @@ public static com.google.spanner.admin.instance.v1.GetInstanceRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetInstanceRequest> PARSER = - new com.google.protobuf.AbstractParser<GetInstanceRequest>() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetInstanceRequest> + PARSER = new com.google.protobuf.AbstractParser<GetInstanceRequest>() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetInstanceRequest> parser() { return PARSER; @@ -937,4 +846,6 @@ public com.google.protobuf.Parser<GetInstanceRequest> getParserForType() { public com.google.spanner.admin.instance.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java index 5376dc8e957..37a15b4521a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/GetInstanceRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface GetInstanceRequestOrBuilder - extends +public interface GetInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.GetInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Required. The name of the requested instance. Values are of the form * `projects/<project>/instances/<instance>`. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -65,13 +38,10 @@ public interface GetInstanceRequestOrBuilder * </pre> * * <code>.google.protobuf.FieldMask field_mask = 2;</code> - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be @@ -80,13 +50,10 @@ public interface GetInstanceRequestOrBuilder * </pre> * * <code>.google.protobuf.FieldMask field_mask = 2;</code> - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * * <pre> * If field_mask is present, specifies the subset of * [Instance][google.spanner.admin.instance.v1.Instance] fields that should be diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java similarity index 72% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java index de469ab4ee1..f2fa534cf7f 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java @@ -1,95 +1,75 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * An isolated set of Cloud Spanner resources on which databases can be hosted. * </pre> * * Protobuf type {@code google.spanner.admin.instance.v1.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private Instance() { name_ = ""; config_ = ""; displayName_ = ""; state_ = 0; - endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + endpointUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_Instance_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.Instance.class, - com.google.spanner.admin.instance.v1.Instance.Builder.class); + com.google.spanner.admin.instance.v1.Instance.class, com.google.spanner.admin.instance.v1.Instance.Builder.class); } /** - * - * * <pre> * Indicates the current state of the instance. * </pre> * * Protobuf enum {@code google.spanner.admin.instance.v1.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Not specified. * </pre> @@ -98,8 +78,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * * <pre> * The instance is still being created. Resources may not be * available yet, and operations such as database creation may not @@ -110,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * * <pre> * The instance is fully created and ready to do work such as * creating databases. @@ -124,8 +100,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Not specified. * </pre> @@ -134,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * The instance is still being created. Resources may not be * available yet, and operations such as database creation may not @@ -146,8 +118,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * * <pre> * The instance is fully created and ready to do work such as * creating databases. @@ -157,6 +127,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -181,49 +152,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<State> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<State>() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<State>() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.spanner.admin.instance.v1.Instance.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -241,12 +212,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -255,7 +223,6 @@ private State(int value) { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The name. */ @java.lang.Override @@ -264,15 +231,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -281,15 +247,16 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -298,12 +265,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int CONFIG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object config_ = ""; /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -311,10 +275,7 @@ public com.google.protobuf.ByteString getNameBytes() { * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The config. */ @java.lang.Override @@ -323,15 +284,14 @@ public java.lang.String getConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); config_ = s; return s; } } /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -339,18 +299,17 @@ public java.lang.String getConfig() { * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for config. */ @java.lang.Override - public com.google.protobuf.ByteString getConfigBytes() { + public com.google.protobuf.ByteString + getConfigBytes() { java.lang.Object ref = config_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); config_ = b; return b; } else { @@ -359,19 +318,15 @@ public com.google.protobuf.ByteString getConfigBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The displayName. */ @java.lang.Override @@ -380,30 +335,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -414,8 +369,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int NODE_COUNT_FIELD_NUMBER = 5; private int nodeCount_ = 0; /** - * - * * <pre> * The number of nodes allocated to this instance. At most one of either * node_count or processing_units should be present in the message. @@ -432,7 +385,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * </pre> * * <code>int32 node_count = 5;</code> - * * @return The nodeCount. */ @java.lang.Override @@ -443,8 +395,6 @@ public int getNodeCount() { public static final int PROCESSING_UNITS_FIELD_NUMBER = 9; private int processingUnits_ = 0; /** - * - * * <pre> * The number of processing units allocated to this instance. At most one of * processing_units or node_count should be present in the message. @@ -461,7 +411,6 @@ public int getNodeCount() { * </pre> * * <code>int32 processing_units = 9;</code> - * * @return The processingUnits. */ @java.lang.Override @@ -472,8 +421,6 @@ public int getProcessingUnits() { public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 17; private com.google.spanner.admin.instance.v1.AutoscalingConfig autoscalingConfig_; /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -481,10 +428,7 @@ public int getProcessingUnits() { * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the autoscalingConfig field is set. */ @java.lang.Override @@ -492,8 +436,6 @@ public boolean hasAutoscalingConfig() { return autoscalingConfig_ != null; } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -501,21 +443,14 @@ public boolean hasAutoscalingConfig() { * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> * @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_; + return autoscalingConfig_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -523,23 +458,16 @@ public com.google.spanner.admin.instance.v1.AutoscalingConfig getAutoscalingConf * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ @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 com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { + return autoscalingConfig_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } public static final int STATE_FIELD_NUMBER = 6; private int state_ = 0; /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -548,19 +476,13 @@ public com.google.spanner.admin.instance.v1.AutoscalingConfig getAutoscalingConf * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -569,50 +491,41 @@ public int getStateValue() { * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ - @java.lang.Override - public com.google.spanner.admin.instance.v1.Instance.State getState() { - com.google.spanner.admin.instance.v1.Instance.State result = - com.google.spanner.admin.instance.v1.Instance.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.instance.v1.Instance.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.instance.v1.Instance.State getState() { + com.google.spanner.admin.instance.v1.Instance.State result = com.google.spanner.admin.instance.v1.Instance.State.forNumber(state_); + return result == null ? com.google.spanner.admin.instance.v1.Instance.State.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 7; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( - com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .<java.lang.String, java.lang.String>newDefaultInstance( + com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -640,21 +553,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 7;</code> */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -686,8 +598,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -715,19 +625,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 7;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + 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<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -755,11 +663,11 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 7;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -767,47 +675,38 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ENDPOINT_URIS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @return A list containing the endpointUris. */ - public com.google.protobuf.ProtocolStringList getEndpointUrisList() { + public com.google.protobuf.ProtocolStringList + getEndpointUrisList() { return endpointUris_; } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @return The count of endpointUris. */ public int getEndpointUrisCount() { return endpointUris_.size(); } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param index The index of the element to return. * @return The endpointUris at the given index. */ @@ -815,33 +714,27 @@ public java.lang.String getEndpointUris(int index) { return endpointUris_.get(index); } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param index The index of the value to return. * @return The bytes of the endpointUris at the given index. */ - public com.google.protobuf.ByteString getEndpointUrisBytes(int index) { + public com.google.protobuf.ByteString + getEndpointUrisBytes(int index) { return endpointUris_.getByteString(index); } public static final int CREATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp createTime_; /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ @java.lang.Override @@ -849,15 +742,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ @java.lang.Override @@ -865,14 +754,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -882,15 +768,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp updateTime_; /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the updateTime field is set. */ @java.lang.Override @@ -898,15 +780,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The updateTime. */ @java.lang.Override @@ -914,14 +792,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -929,7 +804,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -941,7 +815,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -954,12 +829,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (nodeCount_ != 0) { output.writeInt32(5, nodeCount_); } - if (state_ - != com.google.spanner.admin.instance.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.spanner.admin.instance.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 7); for (int i = 0; i < endpointUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, endpointUris_.getRaw(i)); } @@ -994,21 +872,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, nodeCount_); - } - if (state_ - != com.google.spanner.admin.instance.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); - } - for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, nodeCount_); + } + if (state_ != com.google.spanner.admin.instance.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); + } + for (java.util.Map.Entry<java.lang.String, java.lang.String> entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, labels__); } { int dataSize = 0; @@ -1019,16 +898,20 @@ public int getSerializedSize() { size += 1 * getEndpointUrisList().size(); } if (processingUnits_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, processingUnits_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, processingUnits_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getUpdateTime()); } if (autoscalingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getAutoscalingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getAutoscalingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1038,33 +921,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.Instance)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.Instance other = - (com.google.spanner.admin.instance.v1.Instance) obj; - - if (!getName().equals(other.getName())) return false; - if (!getConfig().equals(other.getConfig())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getNodeCount() != other.getNodeCount()) return false; - if (getProcessingUnits() != other.getProcessingUnits()) return false; + com.google.spanner.admin.instance.v1.Instance other = (com.google.spanner.admin.instance.v1.Instance) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getNodeCount() + != other.getNodeCount()) return false; + if (getProcessingUnits() + != other.getProcessingUnits()) return false; if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false; if (hasAutoscalingConfig()) { - if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false; + if (!getAutoscalingConfig() + .equals(other.getAutoscalingConfig())) return false; } if (state_ != other.state_) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getEndpointUrisList().equals(other.getEndpointUrisList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getEndpointUrisList() + .equals(other.getEndpointUrisList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1114,156 +1006,154 @@ public int hashCode() { return hash; } - public static com.google.spanner.admin.instance.v1.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.admin.instance.v1.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.Instance 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.admin.instance.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.Instance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.instance.v1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * An isolated set of Cloud Spanner resources on which databases can be hosted. * </pre> * * Protobuf type {@code google.spanner.admin.instance.v1.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.Instance) com.google.spanner.admin.instance.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 7: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_Instance_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.Instance.class, - com.google.spanner.admin.instance.v1.Instance.Builder.class); + com.google.spanner.admin.instance.v1.Instance.class, com.google.spanner.admin.instance.v1.Instance.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.Instance.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1280,7 +1170,8 @@ public Builder clear() { } state_ = 0; internalGetMutableLabels().clear(); - endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + endpointUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1295,9 +1186,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_Instance_descriptor; } @java.lang.Override @@ -1316,11 +1207,8 @@ public com.google.spanner.admin.instance.v1.Instance build() { @java.lang.Override public com.google.spanner.admin.instance.v1.Instance buildPartial() { - com.google.spanner.admin.instance.v1.Instance result = - new com.google.spanner.admin.instance.v1.Instance(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.Instance result = new com.google.spanner.admin.instance.v1.Instance(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1343,10 +1231,9 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.Instance result) result.processingUnits_ = processingUnits_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.autoscalingConfig_ = - autoscalingConfigBuilder_ == null - ? autoscalingConfig_ - : autoscalingConfigBuilder_.build(); + result.autoscalingConfig_ = autoscalingConfigBuilder_ == null + ? autoscalingConfig_ + : autoscalingConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; @@ -1360,10 +1247,14 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.Instance result) result.endpointUris_ = endpointUris_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } } @@ -1371,39 +1262,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.Instance result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.Instance) { - return mergeFrom((com.google.spanner.admin.instance.v1.Instance) other); + return mergeFrom((com.google.spanner.admin.instance.v1.Instance)other); } else { super.mergeFrom(other); return this; @@ -1439,7 +1329,8 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.Instance other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.endpointUris_.isEmpty()) { if (endpointUris_.isEmpty()) { @@ -1483,87 +1374,78 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - config_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 40: - { - nodeCount_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 58: - { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureEndpointUrisIsMutable(); - endpointUris_.add(s); - break; - } // case 66 - case 72: - { - processingUnits_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 72 - case 90: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 90 - case 98: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 98 - case 138: - { - input.readMessage( - getAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 138 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + config_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 40: { + nodeCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureEndpointUrisIsMutable(); + endpointUris_.add(s); + break; + } // case 66 + case 72: { + processingUnits_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 72 + case 90: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 138: { + input.readMessage( + getAutoscalingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 138 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1573,13 +1455,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -1588,13 +1467,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1603,8 +1482,6 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -1613,14 +1490,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1628,8 +1506,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -1638,22 +1514,18 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -1662,7 +1534,6 @@ public Builder setName(java.lang.String value) { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -1672,8 +1543,6 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -1682,14 +1551,12 @@ public Builder clearName() { * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1699,8 +1566,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object config_ = ""; /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -1708,16 +1573,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The config. */ public java.lang.String getConfig() { java.lang.Object ref = config_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); config_ = s; return s; @@ -1726,8 +1589,6 @@ public java.lang.String getConfig() { } } /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -1735,17 +1596,16 @@ public java.lang.String getConfig() { * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for config. */ - public com.google.protobuf.ByteString getConfigBytes() { + public com.google.protobuf.ByteString + getConfigBytes() { java.lang.Object ref = config_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); config_ = b; return b; } else { @@ -1753,8 +1613,6 @@ public com.google.protobuf.ByteString getConfigBytes() { } } /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -1762,25 +1620,19 @@ public com.google.protobuf.ByteString getConfigBytes() { * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The config to set. * @return This builder for chaining. */ - public Builder setConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } config_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -1788,10 +1640,7 @@ public Builder setConfig(java.lang.String value) { * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearConfig() { @@ -1801,8 +1650,6 @@ public Builder clearConfig() { return this; } /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -1810,17 +1657,13 @@ public Builder clearConfig() { * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for config to set. * @return This builder for chaining. */ - public Builder setConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); config_ = value; bitField0_ |= 0x00000002; @@ -1830,21 +1673,19 @@ public Builder setConfigBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1853,22 +1694,21 @@ public java.lang.String getDisplayName() { } } /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1876,37 +1716,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1916,22 +1749,18 @@ public Builder clearDisplayName() { return this; } /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -1939,10 +1768,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private int nodeCount_; + private int nodeCount_ ; /** - * - * * <pre> * The number of nodes allocated to this instance. At most one of either * node_count or processing_units should be present in the message. @@ -1959,7 +1786,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>int32 node_count = 5;</code> - * * @return The nodeCount. */ @java.lang.Override @@ -1967,8 +1793,6 @@ public int getNodeCount() { return nodeCount_; } /** - * - * * <pre> * The number of nodes allocated to this instance. At most one of either * node_count or processing_units should be present in the message. @@ -1985,7 +1809,6 @@ public int getNodeCount() { * </pre> * * <code>int32 node_count = 5;</code> - * * @param value The nodeCount to set. * @return This builder for chaining. */ @@ -1997,8 +1820,6 @@ public Builder setNodeCount(int value) { return this; } /** - * - * * <pre> * The number of nodes allocated to this instance. At most one of either * node_count or processing_units should be present in the message. @@ -2015,7 +1836,6 @@ public Builder setNodeCount(int value) { * </pre> * * <code>int32 node_count = 5;</code> - * * @return This builder for chaining. */ public Builder clearNodeCount() { @@ -2025,10 +1845,8 @@ public Builder clearNodeCount() { return this; } - private int processingUnits_; + private int processingUnits_ ; /** - * - * * <pre> * The number of processing units allocated to this instance. At most one of * processing_units or node_count should be present in the message. @@ -2045,7 +1863,6 @@ public Builder clearNodeCount() { * </pre> * * <code>int32 processing_units = 9;</code> - * * @return The processingUnits. */ @java.lang.Override @@ -2053,8 +1870,6 @@ public int getProcessingUnits() { return processingUnits_; } /** - * - * * <pre> * The number of processing units allocated to this instance. At most one of * processing_units or node_count should be present in the message. @@ -2071,7 +1886,6 @@ public int getProcessingUnits() { * </pre> * * <code>int32 processing_units = 9;</code> - * * @param value The processingUnits to set. * @return This builder for chaining. */ @@ -2083,8 +1897,6 @@ public Builder setProcessingUnits(int value) { return this; } /** - * - * * <pre> * The number of processing units allocated to this instance. At most one of * processing_units or node_count should be present in the message. @@ -2101,7 +1913,6 @@ public Builder setProcessingUnits(int value) { * </pre> * * <code>int32 processing_units = 9;</code> - * * @return This builder for chaining. */ public Builder clearProcessingUnits() { @@ -2113,13 +1924,8 @@ public Builder clearProcessingUnits() { 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_; + com.google.spanner.admin.instance.v1.AutoscalingConfig, com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder, com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder> autoscalingConfigBuilder_; /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2127,18 +1933,13 @@ public Builder clearProcessingUnits() { * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the autoscalingConfig field is set. */ public boolean hasAutoscalingConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2146,24 +1947,17 @@ public boolean hasAutoscalingConfig() { * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> * @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_; + return autoscalingConfig_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } else { return autoscalingConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2171,12 +1965,9 @@ public com.google.spanner.admin.instance.v1.AutoscalingConfig getAutoscalingConf * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder setAutoscalingConfig( - com.google.spanner.admin.instance.v1.AutoscalingConfig value) { + public Builder setAutoscalingConfig(com.google.spanner.admin.instance.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2190,8 +1981,6 @@ public Builder setAutoscalingConfig( return this; } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2199,9 +1988,7 @@ public Builder setAutoscalingConfig( * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder setAutoscalingConfig( com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder builderForValue) { @@ -2215,8 +2002,6 @@ public Builder setAutoscalingConfig( return this; } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2224,17 +2009,13 @@ public Builder setAutoscalingConfig( * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public Builder mergeAutoscalingConfig( - com.google.spanner.admin.instance.v1.AutoscalingConfig value) { + 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()) { + if (((bitField0_ & 0x00000020) != 0) && + autoscalingConfig_ != null && + autoscalingConfig_ != com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()) { getAutoscalingConfigBuilder().mergeFrom(value); } else { autoscalingConfig_ = value; @@ -2247,8 +2028,6 @@ public Builder mergeAutoscalingConfig( return this; } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2256,9 +2035,7 @@ public Builder mergeAutoscalingConfig( * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ public Builder clearAutoscalingConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2271,8 +2048,6 @@ public Builder clearAutoscalingConfig() { return this; } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2280,19 +2055,14 @@ public Builder clearAutoscalingConfig() { * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder - getAutoscalingConfigBuilder() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAutoscalingConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2300,23 +2070,17 @@ public Builder clearAutoscalingConfig() { * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ - public com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder - getAutoscalingConfigOrBuilder() { + 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_; + return autoscalingConfig_ == null ? + com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } } /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -2324,22 +2088,17 @@ public Builder clearAutoscalingConfig() { * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ 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> + 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()); + 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_; @@ -2347,8 +2106,6 @@ public Builder clearAutoscalingConfig() { private int state_ = 0; /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -2357,19 +2114,13 @@ public Builder clearAutoscalingConfig() { * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -2378,10 +2129,7 @@ public int getStateValue() { * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2392,8 +2140,6 @@ public Builder setStateValue(int value) { return this; } /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -2402,23 +2148,15 @@ public Builder setStateValue(int value) { * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ @java.lang.Override public com.google.spanner.admin.instance.v1.Instance.State getState() { - com.google.spanner.admin.instance.v1.Instance.State result = - com.google.spanner.admin.instance.v1.Instance.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.instance.v1.Instance.State.UNRECOGNIZED - : result; + com.google.spanner.admin.instance.v1.Instance.State result = com.google.spanner.admin.instance.v1.Instance.State.forNumber(state_); + return result == null ? com.google.spanner.admin.instance.v1.Instance.State.UNRECOGNIZED : result; } /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -2427,10 +2165,7 @@ public com.google.spanner.admin.instance.v1.Instance.State getState() { * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The state to set. * @return This builder for chaining. */ @@ -2444,8 +2179,6 @@ public Builder setState(com.google.spanner.admin.instance.v1.Instance.State valu return this; } /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -2454,10 +2187,7 @@ public Builder setState(com.google.spanner.admin.instance.v1.Instance.State valu * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearState() { @@ -2467,19 +2197,21 @@ public Builder clearState() { return this; } - private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2488,13 +2220,10 @@ private com.google.protobuf.MapField<java.lang.String, java.lang.String> interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -2522,21 +2251,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 7;</code> */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -2568,8 +2296,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -2597,19 +2323,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 7;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + 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<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -2637,25 +2361,23 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 7;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -2682,22 +2404,23 @@ public Builder clearLabels() { * * <code>map<string, string> labels = 7;</code> */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + 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. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { + public java.util.Map<java.lang.String, java.lang.String> + getMutableLabels() { bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -2724,20 +2447,17 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { * * <code>map<string, string> labels = 7;</code> */ - 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); + 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_ |= 0x00000080; return this; } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -2764,15 +2484,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * <code>map<string, string> labels = 7;</code> */ - public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map<java.lang.String, java.lang.String> values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000080; return this; } private com.google.protobuf.LazyStringArrayList endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureEndpointUrisIsMutable() { if (!endpointUris_.isModifiable()) { endpointUris_ = new com.google.protobuf.LazyStringArrayList(endpointUris_); @@ -2780,43 +2501,35 @@ private void ensureEndpointUrisIsMutable() { bitField0_ |= 0x00000100; } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @return A list containing the endpointUris. */ - public com.google.protobuf.ProtocolStringList getEndpointUrisList() { + public com.google.protobuf.ProtocolStringList + getEndpointUrisList() { endpointUris_.makeImmutable(); return endpointUris_; } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @return The count of endpointUris. */ public int getEndpointUrisCount() { return endpointUris_.size(); } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param index The index of the element to return. * @return The endpointUris at the given index. */ @@ -2824,37 +2537,31 @@ public java.lang.String getEndpointUris(int index) { return endpointUris_.get(index); } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param index The index of the value to return. * @return The bytes of the endpointUris at the given index. */ - public com.google.protobuf.ByteString getEndpointUrisBytes(int index) { + public com.google.protobuf.ByteString + getEndpointUrisBytes(int index) { return endpointUris_.getByteString(index); } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param index The index to set the value at. * @param value The endpointUris to set. * @return This builder for chaining. */ - public Builder setEndpointUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEndpointUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEndpointUrisIsMutable(); endpointUris_.set(index, value); bitField0_ |= 0x00000100; @@ -2862,21 +2569,17 @@ public Builder setEndpointUris(int index, java.lang.String value) { return this; } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param value The endpointUris to add. * @return This builder for chaining. */ - public Builder addEndpointUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEndpointUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEndpointUrisIsMutable(); endpointUris_.add(value); bitField0_ |= 0x00000100; @@ -2884,58 +2587,50 @@ public Builder addEndpointUris(java.lang.String value) { return this; } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param values The endpointUris to add. * @return This builder for chaining. */ - public Builder addAllEndpointUris(java.lang.Iterable<java.lang.String> values) { + public Builder addAllEndpointUris( + java.lang.Iterable<java.lang.String> values) { ensureEndpointUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpointUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, endpointUris_); bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @return This builder for chaining. */ public Builder clearEndpointUris() { - endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; + endpointUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param value The bytes of the endpointUris to add. * @return This builder for chaining. */ - public Builder addEndpointUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEndpointUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEndpointUrisIsMutable(); endpointUris_.add(value); @@ -2946,58 +2641,39 @@ public Builder addEndpointUrisBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3013,17 +2689,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3034,21 +2707,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3061,15 +2730,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3082,15 +2747,11 @@ public Builder clearCreateTime() { return this; } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000200; @@ -3098,48 +2759,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3147,58 +2796,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3214,17 +2844,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3235,21 +2862,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3262,15 +2885,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3283,15 +2902,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000400; @@ -3299,55 +2914,43 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code> - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3357,12 +2960,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.Instance) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.Instance) private static final com.google.spanner.admin.instance.v1.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.Instance(); } @@ -3371,27 +2974,27 @@ public static com.google.spanner.admin.instance.v1.Instance getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<Instance> PARSER = - new com.google.protobuf.AbstractParser<Instance>() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<Instance> + PARSER = new com.google.protobuf.AbstractParser<Instance>() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<Instance> parser() { return PARSER; @@ -3406,4 +3009,6 @@ public com.google.protobuf.Parser<Instance> getParserForType() { public com.google.spanner.admin.instance.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java similarity index 74% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java index d2da1f12a60..d7225bb987f 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * A possible configuration for a Cloud Spanner instance. Configurations * define the geographic placement of nodes and their replication. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.InstanceConfig} */ -public final class InstanceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.InstanceConfig) InstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InstanceConfig.newBuilder() to construct. private InstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private InstanceConfig() { name_ = ""; displayName_ = ""; @@ -46,55 +28,53 @@ private InstanceConfig() { optionalReplicas_ = java.util.Collections.emptyList(); baseConfig_ = ""; etag_ = ""; - leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + leaderOptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_InstanceConfig_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_InstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.InstanceConfig.class, - com.google.spanner.admin.instance.v1.InstanceConfig.Builder.class); + com.google.spanner.admin.instance.v1.InstanceConfig.class, com.google.spanner.admin.instance.v1.InstanceConfig.Builder.class); } /** - * - * * <pre> * The type of this configuration. * </pre> * * Protobuf enum {@code google.spanner.admin.instance.v1.InstanceConfig.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Unspecified. * </pre> @@ -103,8 +83,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * * <pre> * Google managed configuration. * </pre> @@ -113,8 +91,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ GOOGLE_MANAGED(1), /** - * - * * <pre> * User managed configuration. * </pre> @@ -126,8 +102,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Unspecified. * </pre> @@ -136,8 +110,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * Google managed configuration. * </pre> @@ -146,8 +118,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_MANAGED_VALUE = 1; /** - * - * * <pre> * User managed configuration. * </pre> @@ -156,6 +126,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_MANAGED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -180,51 +151,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return GOOGLE_MANAGED; - case 2: - return USER_MANAGED; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return GOOGLE_MANAGED; + case 2: return USER_MANAGED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<Type> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<Type>() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Type>() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.InstanceConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.InstanceConfig.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -242,18 +211,15 @@ private Type(int value) { } /** - * - * * <pre> * Indicates the current state of the instance config. * </pre> * * Protobuf enum {@code google.spanner.admin.instance.v1.InstanceConfig.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Not specified. * </pre> @@ -262,8 +228,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * * <pre> * The instance config is still being created. * </pre> @@ -272,8 +236,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * * <pre> * The instance config is fully created and ready to be used to create * instances. @@ -286,8 +248,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Not specified. * </pre> @@ -296,8 +256,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * The instance config is still being created. * </pre> @@ -306,8 +264,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * * <pre> * The instance config is fully created and ready to be used to create * instances. @@ -317,6 +273,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -341,51 +298,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<State> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<State>() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<State>() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.InstanceConfig.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.InstanceConfig.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -403,12 +358,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -416,7 +368,6 @@ private State(int value) { * </pre> * * <code>string name = 1;</code> - * * @return The name. */ @java.lang.Override @@ -425,15 +376,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -441,15 +391,16 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -458,18 +409,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @return The displayName. */ @java.lang.Override @@ -478,29 +425,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -511,53 +458,35 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int CONFIG_TYPE_FIELD_NUMBER = 5; private int configType_ = 0; /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for configType. */ - @java.lang.Override - public int getConfigTypeValue() { + @java.lang.Override public int getConfigTypeValue() { return configType_; } /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The configType. */ - @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType() { - com.google.spanner.admin.instance.v1.InstanceConfig.Type result = - com.google.spanner.admin.instance.v1.InstanceConfig.Type.forNumber(configType_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.Type.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType() { + com.google.spanner.admin.instance.v1.InstanceConfig.Type result = com.google.spanner.admin.instance.v1.InstanceConfig.Type.forNumber(configType_); + return result == null ? com.google.spanner.admin.instance.v1.InstanceConfig.Type.UNRECOGNIZED : result; } public static final int REPLICAS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> replicas_; /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -570,8 +499,6 @@ public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getRepli return replicas_; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -580,13 +507,11 @@ public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getRepli * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getReplicasOrBuilderList() { return replicas_; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -599,8 +524,6 @@ public int getReplicasCount() { return replicas_.size(); } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -613,8 +536,6 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { return replicas_.get(index); } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -623,91 +544,70 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ @java.lang.Override - public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(int index) { + public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder( + int index) { return replicas_.get(index); } public static final int OPTIONAL_REPLICAS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> optionalReplicas_; /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override - public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> - getOptionalReplicasList() { + public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getOptionalReplicasList() { return optionalReplicas_; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getOptionalReplicasOrBuilderList() { return optionalReplicas_; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public int getOptionalReplicasCount() { return optionalReplicas_.size(); } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int index) { return optionalReplicas_.get(index); } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalReplicasOrBuilder( @@ -716,12 +616,9 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalRepl } public static final int BASE_CONFIG_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object baseConfig_ = ""; /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -730,7 +627,6 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalRepl * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @return The baseConfig. */ @java.lang.Override @@ -739,15 +635,14 @@ public java.lang.String getBaseConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseConfig_ = s; return s; } } /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -756,15 +651,16 @@ public java.lang.String getBaseConfig() { * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for baseConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getBaseConfigBytes() { + public com.google.protobuf.ByteString + getBaseConfigBytes() { java.lang.Object ref = baseConfig_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseConfig_ = b; return b; } else { @@ -773,34 +669,32 @@ public com.google.protobuf.ByteString getBaseConfigBytes() { } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( - com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .<java.lang.String, java.lang.String>newDefaultInstance( + com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -828,21 +722,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 8;</code> */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -874,8 +767,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -903,19 +794,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 8;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + 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<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -943,11 +832,11 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 8;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -955,12 +844,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -975,7 +861,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * </pre> * * <code>string etag = 9;</code> - * * @return The etag. */ @java.lang.Override @@ -984,15 +869,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -1007,15 +891,16 @@ public java.lang.String getEtag() { * </pre> * * <code>string etag = 9;</code> - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1024,50 +909,41 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int LEADER_OPTIONS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @return A list containing the leaderOptions. */ - public com.google.protobuf.ProtocolStringList getLeaderOptionsList() { + public com.google.protobuf.ProtocolStringList + getLeaderOptionsList() { return leaderOptions_; } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @return The count of leaderOptions. */ public int getLeaderOptionsCount() { return leaderOptions_.size(); } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param index The index of the element to return. * @return The leaderOptions at the given index. */ @@ -1075,34 +951,29 @@ public java.lang.String getLeaderOptions(int index) { return leaderOptions_.get(index); } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param index The index of the value to return. * @return The bytes of the leaderOptions at the given index. */ - public com.google.protobuf.ByteString getLeaderOptionsBytes(int index) { + public com.google.protobuf.ByteString + getLeaderOptionsBytes(int index) { return leaderOptions_.getByteString(index); } public static final int RECONCILING_FIELD_NUMBER = 10; private boolean reconciling_ = false; /** - * - * * <pre> * Output only. If true, the instance config is being created or updated. If * false, there are no ongoing operations for the instance config. * </pre> * * <code>bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The reconciling. */ @java.lang.Override @@ -1113,46 +984,30 @@ public boolean getReconciling() { public static final int STATE_FIELD_NUMBER = 11; private int state_ = 0; /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ - @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfig.State getState() { - com.google.spanner.admin.instance.v1.InstanceConfig.State result = - com.google.spanner.admin.instance.v1.InstanceConfig.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfig.State getState() { + com.google.spanner.admin.instance.v1.InstanceConfig.State result = com.google.spanner.admin.instance.v1.InstanceConfig.State.forNumber(state_); + return result == null ? com.google.spanner.admin.instance.v1.InstanceConfig.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1164,7 +1019,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -1177,8 +1033,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < leaderOptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, leaderOptions_.getRaw(i)); } - if (configType_ - != com.google.spanner.admin.instance.v1.InstanceConfig.Type.TYPE_UNSPECIFIED.getNumber()) { + if (configType_ != com.google.spanner.admin.instance.v1.InstanceConfig.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, configType_); } for (int i = 0; i < optionalReplicas_.size(); i++) { @@ -1187,17 +1042,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseConfig_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, baseConfig_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } if (reconciling_ != false) { output.writeBool(10, reconciling_); } - if (state_ - != com.google.spanner.admin.instance.v1.InstanceConfig.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.spanner.admin.instance.v1.InstanceConfig.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(11, state_); } getUnknownFields().writeTo(output); @@ -1216,7 +1073,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < replicas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, replicas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, replicas_.get(i)); } { int dataSize = 0; @@ -1226,36 +1084,37 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLeaderOptionsList().size(); } - if (configType_ - != com.google.spanner.admin.instance.v1.InstanceConfig.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, configType_); + if (configType_ != com.google.spanner.admin.instance.v1.InstanceConfig.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, configType_); } for (int i = 0; i < optionalReplicas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, optionalReplicas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, optionalReplicas_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseConfig_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, baseConfig_); } - for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + for (java.util.Map.Entry<java.lang.String, java.lang.String> entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, reconciling_); } - if (state_ - != com.google.spanner.admin.instance.v1.InstanceConfig.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, state_); + if (state_ != com.google.spanner.admin.instance.v1.InstanceConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1265,24 +1124,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.InstanceConfig)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.InstanceConfig other = - (com.google.spanner.admin.instance.v1.InstanceConfig) obj; + com.google.spanner.admin.instance.v1.InstanceConfig other = (com.google.spanner.admin.instance.v1.InstanceConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (configType_ != other.configType_) return false; - if (!getReplicasList().equals(other.getReplicasList())) return false; - if (!getOptionalReplicasList().equals(other.getOptionalReplicasList())) return false; - if (!getBaseConfig().equals(other.getBaseConfig())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getLeaderOptionsList().equals(other.getLeaderOptionsList())) return false; - if (getReconciling() != other.getReconciling()) return false; + if (!getReplicasList() + .equals(other.getReplicasList())) return false; + if (!getOptionalReplicasList() + .equals(other.getOptionalReplicasList())) return false; + if (!getBaseConfig() + .equals(other.getBaseConfig())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getLeaderOptionsList() + .equals(other.getLeaderOptionsList())) return false; + if (getReconciling() + != other.getReconciling()) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1322,7 +1189,8 @@ public int hashCode() { hash = (53 * hash) + getLeaderOptionsList().hashCode(); } hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1331,103 +1199,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.InstanceConfig 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.admin.instance.v1.InstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.InstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.InstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.InstanceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.InstanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.instance.v1.InstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * A possible configuration for a Cloud Spanner instance. Configurations * define the geographic placement of nodes and their replication. @@ -1435,52 +1298,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.InstanceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.InstanceConfig) com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_InstanceConfig_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_InstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.InstanceConfig.class, - com.google.spanner.admin.instance.v1.InstanceConfig.Builder.class); + com.google.spanner.admin.instance.v1.InstanceConfig.class, com.google.spanner.admin.instance.v1.InstanceConfig.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.InstanceConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1505,16 +1371,17 @@ public Builder clear() { baseConfig_ = ""; internalGetMutableLabels().clear(); etag_ = ""; - leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + leaderOptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); reconciling_ = false; state_ = 0; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor; } @java.lang.Override @@ -1533,18 +1400,14 @@ public com.google.spanner.admin.instance.v1.InstanceConfig build() { @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfig buildPartial() { - com.google.spanner.admin.instance.v1.InstanceConfig result = - new com.google.spanner.admin.instance.v1.InstanceConfig(this); + com.google.spanner.admin.instance.v1.InstanceConfig result = new com.google.spanner.admin.instance.v1.InstanceConfig(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.instance.v1.InstanceConfig result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.instance.v1.InstanceConfig result) { if (replicasBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { replicas_ = java.util.Collections.unmodifiableList(replicas_); @@ -1602,39 +1465,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.InstanceConfig r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.InstanceConfig) { - return mergeFrom((com.google.spanner.admin.instance.v1.InstanceConfig) other); + return mergeFrom((com.google.spanner.admin.instance.v1.InstanceConfig)other); } else { super.mergeFrom(other); return this; @@ -1642,8 +1504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.InstanceConfig other) { - if (other == com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1675,10 +1536,9 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.InstanceConfig oth replicasBuilder_ = null; replicas_ = other.replicas_; bitField0_ = (bitField0_ & ~0x00000008); - replicasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReplicasFieldBuilder() - : null; + replicasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReplicasFieldBuilder() : null; } else { replicasBuilder_.addAllMessages(other.replicas_); } @@ -1702,10 +1562,9 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.InstanceConfig oth optionalReplicasBuilder_ = null; optionalReplicas_ = other.optionalReplicas_; bitField0_ = (bitField0_ & ~0x00000010); - optionalReplicasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOptionalReplicasFieldBuilder() - : null; + optionalReplicasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOptionalReplicasFieldBuilder() : null; } else { optionalReplicasBuilder_.addAllMessages(other.optionalReplicas_); } @@ -1716,7 +1575,8 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.InstanceConfig oth bitField0_ |= 0x00000020; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000040; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; @@ -1765,102 +1625,88 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.spanner.admin.instance.v1.ReplicaInfo m = - input.readMessage( - com.google.spanner.admin.instance.v1.ReplicaInfo.parser(), - extensionRegistry); - if (replicasBuilder_ == null) { - ensureReplicasIsMutable(); - replicas_.add(m); - } else { - replicasBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLeaderOptionsIsMutable(); - leaderOptions_.add(s); - break; - } // case 34 - case 40: - { - configType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 40 - case 50: - { - com.google.spanner.admin.instance.v1.ReplicaInfo m = - input.readMessage( - com.google.spanner.admin.instance.v1.ReplicaInfo.parser(), - extensionRegistry); - if (optionalReplicasBuilder_ == null) { - ensureOptionalReplicasIsMutable(); - optionalReplicas_.add(m); - } else { - optionalReplicasBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: - { - baseConfig_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 74: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 80: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000400; - break; - } // case 88 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.spanner.admin.instance.v1.ReplicaInfo m = + input.readMessage( + com.google.spanner.admin.instance.v1.ReplicaInfo.parser(), + extensionRegistry); + if (replicasBuilder_ == null) { + ensureReplicasIsMutable(); + replicas_.add(m); + } else { + replicasBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLeaderOptionsIsMutable(); + leaderOptions_.add(s); + break; + } // case 34 + case 40: { + configType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 40 + case 50: { + com.google.spanner.admin.instance.v1.ReplicaInfo m = + input.readMessage( + com.google.spanner.admin.instance.v1.ReplicaInfo.parser(), + extensionRegistry); + if (optionalReplicasBuilder_ == null) { + ensureOptionalReplicasIsMutable(); + optionalReplicas_.add(m); + } else { + optionalReplicasBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + baseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 80: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1870,13 +1716,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -1884,13 +1727,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1899,8 +1742,6 @@ public java.lang.String getName() { } } /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -1908,14 +1749,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1923,8 +1765,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -1932,22 +1772,18 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string name = 1;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -1955,7 +1791,6 @@ public Builder setName(java.lang.String value) { * </pre> * * <code>string name = 1;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -1965,8 +1800,6 @@ public Builder clearName() { return this; } /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -1974,14 +1807,12 @@ public Builder clearName() { * </pre> * * <code>string name = 1;</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1991,20 +1822,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2013,21 +1842,20 @@ public java.lang.String getDisplayName() { } } /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2035,35 +1863,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2073,21 +1894,17 @@ public Builder clearDisplayName() { return this; } /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -2097,35 +1914,24 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int configType_ = 0; /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for configType. */ - @java.lang.Override - public int getConfigTypeValue() { + @java.lang.Override public int getConfigTypeValue() { return configType_; } /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The enum numeric value on the wire for configType to set. * @return This builder for chaining. */ @@ -2136,39 +1942,26 @@ public Builder setConfigTypeValue(int value) { return this; } /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The configType. */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType() { - com.google.spanner.admin.instance.v1.InstanceConfig.Type result = - com.google.spanner.admin.instance.v1.InstanceConfig.Type.forNumber(configType_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.Type.UNRECOGNIZED - : result; + com.google.spanner.admin.instance.v1.InstanceConfig.Type result = com.google.spanner.admin.instance.v1.InstanceConfig.Type.forNumber(configType_); + return result == null ? com.google.spanner.admin.instance.v1.InstanceConfig.Type.UNRECOGNIZED : result; } /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The configType to set. * @return This builder for chaining. */ @@ -2182,17 +1975,12 @@ public Builder setConfigType(com.google.spanner.admin.instance.v1.InstanceConfig return this; } /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearConfigType() { @@ -2203,25 +1991,18 @@ public Builder clearConfigType() { } private java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> replicas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReplicasIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - replicas_ = - new java.util.ArrayList<com.google.spanner.admin.instance.v1.ReplicaInfo>(replicas_); + replicas_ = new java.util.ArrayList<com.google.spanner.admin.instance.v1.ReplicaInfo>(replicas_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - replicasBuilder_; + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> replicasBuilder_; /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2237,8 +2018,6 @@ public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getRepli } } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2254,8 +2033,6 @@ public int getReplicasCount() { } } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2271,8 +2048,6 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { } } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2280,7 +2055,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { + public Builder setReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2294,8 +2070,6 @@ public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.Repli return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2315,8 +2089,6 @@ public Builder setReplicas( return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2338,8 +2110,6 @@ public Builder addReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo valu return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2347,7 +2117,8 @@ public Builder addReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo valu * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - public Builder addReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { + public Builder addReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2361,8 +2132,6 @@ public Builder addReplicas(int index, com.google.spanner.admin.instance.v1.Repli return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2382,8 +2151,6 @@ public Builder addReplicas( return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2403,8 +2170,6 @@ public Builder addReplicas( return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2416,7 +2181,8 @@ 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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, replicas_); onChanged(); } else { replicasBuilder_.addAllMessages(values); @@ -2424,8 +2190,6 @@ public Builder addAllReplicas( return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2444,8 +2208,6 @@ public Builder clearReplicas() { return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2464,8 +2226,6 @@ public Builder removeReplicas(int index) { return this; } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2473,12 +2233,11 @@ public Builder removeReplicas(int index) { * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuilder(int index) { + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuilder( + int index) { return getReplicasFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2489,14 +2248,11 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuild public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder( int index) { if (replicasBuilder_ == null) { - return replicas_.get(index); - } else { + return replicas_.get(index); } else { return replicasBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2504,8 +2260,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - getReplicasOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + getReplicasOrBuilderList() { if (replicasBuilder_ != null) { return replicasBuilder_.getMessageOrBuilderList(); } else { @@ -2513,8 +2269,6 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu } } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2523,12 +2277,10 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder() { - return getReplicasFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + return getReplicasFieldBuilder().addBuilder( + com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2536,13 +2288,12 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuild * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder(int index) { - return getReplicasFieldBuilder() - .addBuilder(index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder( + int index) { + return getReplicasFieldBuilder().addBuilder( + index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -2550,60 +2301,46 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuild * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo.Builder> - getReplicasBuilderList() { + public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo.Builder> + getReplicasBuilderList() { return getReplicasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getReplicasFieldBuilder() { if (replicasBuilder_ == null) { - replicasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( - replicas_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + replicasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( + replicas_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); replicas_ = null; } return replicasBuilder_; } private java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> optionalReplicas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOptionalReplicasIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - optionalReplicas_ = - new java.util.ArrayList<com.google.spanner.admin.instance.v1.ReplicaInfo>( - optionalReplicas_); + optionalReplicas_ = new java.util.ArrayList<com.google.spanner.admin.instance.v1.ReplicaInfo>(optionalReplicas_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - optionalReplicasBuilder_; + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> optionalReplicasBuilder_; /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> - getOptionalReplicasList() { + public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getOptionalReplicasList() { if (optionalReplicasBuilder_ == null) { return java.util.Collections.unmodifiableList(optionalReplicas_); } else { @@ -2611,16 +2348,12 @@ private void ensureOptionalReplicasIsMutable() { } } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public int getOptionalReplicasCount() { if (optionalReplicasBuilder_ == null) { @@ -2630,16 +2363,12 @@ public int getOptionalReplicasCount() { } } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int index) { if (optionalReplicasBuilder_ == null) { @@ -2649,16 +2378,12 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int } } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setOptionalReplicas( int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { @@ -2675,16 +2400,12 @@ public Builder setOptionalReplicas( return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setOptionalReplicas( int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { @@ -2698,16 +2419,12 @@ public Builder setOptionalReplicas( return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addOptionalReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo value) { if (optionalReplicasBuilder_ == null) { @@ -2723,16 +2440,12 @@ public Builder addOptionalReplicas(com.google.spanner.admin.instance.v1.ReplicaI return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addOptionalReplicas( int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { @@ -2749,16 +2462,12 @@ public Builder addOptionalReplicas( return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addOptionalReplicas( com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { @@ -2772,16 +2481,12 @@ public Builder addOptionalReplicas( return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addOptionalReplicas( int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) { @@ -2795,22 +2500,19 @@ public Builder addOptionalReplicas( return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder addAllOptionalReplicas( java.lang.Iterable<? extends com.google.spanner.admin.instance.v1.ReplicaInfo> values) { if (optionalReplicasBuilder_ == null) { ensureOptionalReplicasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, optionalReplicas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, optionalReplicas_); onChanged(); } else { optionalReplicasBuilder_.addAllMessages(values); @@ -2818,16 +2520,12 @@ public Builder addAllOptionalReplicas( return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearOptionalReplicas() { if (optionalReplicasBuilder_ == null) { @@ -2840,16 +2538,12 @@ public Builder clearOptionalReplicas() { return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder removeOptionalReplicas(int index) { if (optionalReplicasBuilder_ == null) { @@ -2862,55 +2556,42 @@ public Builder removeOptionalReplicas(int index) { return this; } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getOptionalReplicasBuilder( int index) { return getOptionalReplicasFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalReplicasOrBuilder( int index) { if (optionalReplicasBuilder_ == null) { - return optionalReplicas_.get(index); - } else { + return optionalReplicas_.get(index); } else { return optionalReplicasBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - getOptionalReplicasOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + getOptionalReplicasOrBuilderList() { if (optionalReplicasBuilder_ != null) { return optionalReplicasBuilder_.getMessageOrBuilderList(); } else { @@ -2918,66 +2599,48 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalRepl } } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalReplicasBuilder() { - return getOptionalReplicasFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + return getOptionalReplicasFieldBuilder().addBuilder( + com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalReplicasBuilder( int index) { - return getOptionalReplicasFieldBuilder() - .addBuilder(index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + return getOptionalReplicasFieldBuilder().addBuilder( + index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo.Builder> - getOptionalReplicasBuilderList() { + public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo.Builder> + getOptionalReplicasBuilderList() { return getOptionalReplicasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getOptionalReplicasFieldBuilder() { if (optionalReplicasBuilder_ == null) { - optionalReplicasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( + optionalReplicasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( optionalReplicas_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -2989,8 +2652,6 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalRepli private java.lang.Object baseConfig_ = ""; /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -2999,13 +2660,13 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalRepli * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @return The baseConfig. */ public java.lang.String getBaseConfig() { java.lang.Object ref = baseConfig_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseConfig_ = s; return s; @@ -3014,8 +2675,6 @@ public java.lang.String getBaseConfig() { } } /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -3024,14 +2683,15 @@ public java.lang.String getBaseConfig() { * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for baseConfig. */ - public com.google.protobuf.ByteString getBaseConfigBytes() { + public com.google.protobuf.ByteString + getBaseConfigBytes() { java.lang.Object ref = baseConfig_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseConfig_ = b; return b; } else { @@ -3039,8 +2699,6 @@ public com.google.protobuf.ByteString getBaseConfigBytes() { } } /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -3049,22 +2707,18 @@ public com.google.protobuf.ByteString getBaseConfigBytes() { * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @param value The baseConfig to set. * @return This builder for chaining. */ - public Builder setBaseConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBaseConfig( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } baseConfig_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -3073,7 +2727,6 @@ public Builder setBaseConfig(java.lang.String value) { * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearBaseConfig() { @@ -3083,8 +2736,6 @@ public Builder clearBaseConfig() { return this; } /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -3093,14 +2744,12 @@ public Builder clearBaseConfig() { * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for baseConfig to set. * @return This builder for chaining. */ - public Builder setBaseConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBaseConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); baseConfig_ = value; bitField0_ |= 0x00000020; @@ -3108,19 +2757,21 @@ public Builder setBaseConfigBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3129,13 +2780,10 @@ private com.google.protobuf.MapField<java.lang.String, java.lang.String> interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -3163,21 +2811,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 8;</code> */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -3209,8 +2856,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -3238,19 +2883,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 8;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + 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<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -3278,25 +2921,23 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 8;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -3323,22 +2964,23 @@ public Builder clearLabels() { * * <code>map<string, string> labels = 8;</code> */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + 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. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { + public java.util.Map<java.lang.String, java.lang.String> + getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -3365,20 +3007,17 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { * * <code>map<string, string> labels = 8;</code> */ - 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); + 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; } /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -3405,16 +3044,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * <code>map<string, string> labels = 8;</code> */ - public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map<java.lang.String, java.lang.String> values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } private java.lang.Object etag_ = ""; /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -3429,13 +3068,13 @@ public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> va * </pre> * * <code>string etag = 9;</code> - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3444,8 +3083,6 @@ public java.lang.String getEtag() { } } /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -3460,14 +3097,15 @@ public java.lang.String getEtag() { * </pre> * * <code>string etag = 9;</code> - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3475,8 +3113,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -3491,22 +3127,18 @@ public com.google.protobuf.ByteString getEtagBytes() { * </pre> * * <code>string etag = 9;</code> - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -3521,7 +3153,6 @@ public Builder setEtag(java.lang.String value) { * </pre> * * <code>string etag = 9;</code> - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3531,8 +3162,6 @@ public Builder clearEtag() { return this; } /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -3547,14 +3176,12 @@ public Builder clearEtag() { * </pre> * * <code>string etag = 9;</code> - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000080; @@ -3564,7 +3191,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLeaderOptionsIsMutable() { if (!leaderOptions_.isModifiable()) { leaderOptions_ = new com.google.protobuf.LazyStringArrayList(leaderOptions_); @@ -3572,46 +3198,38 @@ private void ensureLeaderOptionsIsMutable() { bitField0_ |= 0x00000100; } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @return A list containing the leaderOptions. */ - public com.google.protobuf.ProtocolStringList getLeaderOptionsList() { + public com.google.protobuf.ProtocolStringList + getLeaderOptionsList() { leaderOptions_.makeImmutable(); return leaderOptions_; } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @return The count of leaderOptions. */ public int getLeaderOptionsCount() { return leaderOptions_.size(); } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param index The index of the element to return. * @return The leaderOptions at the given index. */ @@ -3619,39 +3237,33 @@ public java.lang.String getLeaderOptions(int index) { return leaderOptions_.get(index); } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param index The index of the value to return. * @return The bytes of the leaderOptions at the given index. */ - public com.google.protobuf.ByteString getLeaderOptionsBytes(int index) { + public com.google.protobuf.ByteString + getLeaderOptionsBytes(int index) { return leaderOptions_.getByteString(index); } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param index The index to set the value at. * @param value The leaderOptions to set. * @return This builder for chaining. */ - public Builder setLeaderOptions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLeaderOptions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLeaderOptionsIsMutable(); leaderOptions_.set(index, value); bitField0_ |= 0x00000100; @@ -3659,22 +3271,18 @@ public Builder setLeaderOptions(int index, java.lang.String value) { return this; } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param value The leaderOptions to add. * @return This builder for chaining. */ - public Builder addLeaderOptions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLeaderOptions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLeaderOptionsIsMutable(); leaderOptions_.add(value); bitField0_ |= 0x00000100; @@ -3682,61 +3290,53 @@ public Builder addLeaderOptions(java.lang.String value) { return this; } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param values The leaderOptions to add. * @return This builder for chaining. */ - public Builder addAllLeaderOptions(java.lang.Iterable<java.lang.String> values) { + public Builder addAllLeaderOptions( + java.lang.Iterable<java.lang.String> values) { ensureLeaderOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, leaderOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, leaderOptions_); bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @return This builder for chaining. */ public Builder clearLeaderOptions() { - leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; + leaderOptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param value The bytes of the leaderOptions to add. * @return This builder for chaining. */ - public Builder addLeaderOptionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLeaderOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLeaderOptionsIsMutable(); leaderOptions_.add(value); @@ -3745,17 +3345,14 @@ public Builder addLeaderOptionsBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * * <pre> * Output only. If true, the instance config is being created or updated. If * false, there are no ongoing operations for the instance config. * </pre> * * <code>bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The reconciling. */ @java.lang.Override @@ -3763,15 +3360,12 @@ public boolean getReconciling() { return reconciling_; } /** - * - * * <pre> * Output only. If true, the instance config is being created or updated. If * false, there are no ongoing operations for the instance config. * </pre> * * <code>bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -3783,15 +3377,12 @@ public Builder setReconciling(boolean value) { return this; } /** - * - * * <pre> * Output only. If true, the instance config is being created or updated. If * false, there are no ongoing operations for the instance config. * </pre> * * <code>bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3803,33 +3394,22 @@ public Builder clearReconciling() { private int state_ = 0; /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3840,37 +3420,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfig.State getState() { - com.google.spanner.admin.instance.v1.InstanceConfig.State result = - com.google.spanner.admin.instance.v1.InstanceConfig.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.State.UNRECOGNIZED - : result; + com.google.spanner.admin.instance.v1.InstanceConfig.State result = com.google.spanner.admin.instance.v1.InstanceConfig.State.forNumber(state_); + return result == null ? com.google.spanner.admin.instance.v1.InstanceConfig.State.UNRECOGNIZED : result; } /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @param value The state to set. * @return This builder for chaining. */ @@ -3884,16 +3451,11 @@ public Builder setState(com.google.spanner.admin.instance.v1.InstanceConfig.Stat return this; } /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return This builder for chaining. */ public Builder clearState() { @@ -3902,9 +3464,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3914,12 +3476,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.InstanceConfig) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.InstanceConfig) private static final com.google.spanner.admin.instance.v1.InstanceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.InstanceConfig(); } @@ -3928,27 +3490,27 @@ public static com.google.spanner.admin.instance.v1.InstanceConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<InstanceConfig> PARSER = - new com.google.protobuf.AbstractParser<InstanceConfig>() { - @java.lang.Override - public InstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<InstanceConfig> + PARSER = new com.google.protobuf.AbstractParser<InstanceConfig>() { + @java.lang.Override + public InstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<InstanceConfig> parser() { return PARSER; @@ -3963,4 +3525,6 @@ public com.google.protobuf.Parser<InstanceConfig> getParserForType() { public com.google.spanner.admin.instance.v1.InstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java similarity index 100% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java similarity index 83% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java index cf2d7e56c9f..517757c20b5 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface InstanceConfigOrBuilder - extends +public interface InstanceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.InstanceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -33,13 +15,10 @@ public interface InstanceConfigOrBuilder * </pre> * * <code>string name = 1;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * A unique identifier for the instance configuration. Values * are of the form @@ -47,70 +26,53 @@ public interface InstanceConfigOrBuilder * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * * <pre> * The name of this instance configuration as it appears in UIs. * </pre> * * <code>string display_name = 2;</code> - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for configType. */ int getConfigTypeValue(); /** - * - * * <pre> * Output only. Whether this instance config is a Google or User Managed * Configuration. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The configType. */ com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType(); /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -118,10 +80,9 @@ public interface InstanceConfigOrBuilder * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getReplicasList(); + java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> + getReplicasList(); /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -131,8 +92,6 @@ public interface InstanceConfigOrBuilder */ com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index); /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -142,8 +101,6 @@ public interface InstanceConfigOrBuilder */ int getReplicasCount(); /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -151,11 +108,9 @@ public interface InstanceConfigOrBuilder * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getReplicasOrBuilderList(); /** - * - * * <pre> * The geographic placement of nodes in this instance configuration and their * replication properties. @@ -163,78 +118,59 @@ public interface InstanceConfigOrBuilder * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;</code> */ - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(int index); + com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder( + int index); /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getOptionalReplicasList(); + java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> + getOptionalReplicasList(); /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int index); /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ int getOptionalReplicasCount(); /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getOptionalReplicasOrBuilderList(); /** - * - * * <pre> * Output only. The available optional replicas to choose from for user * managed configurations. Populated for Google managed configurations. * </pre> * - * <code> - * repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalReplicasOrBuilder(int index); + com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalReplicasOrBuilder( + int index); /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -243,13 +179,10 @@ public interface InstanceConfigOrBuilder * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @return The baseConfig. */ java.lang.String getBaseConfig(); /** - * - * * <pre> * Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, * based on which this configuration is created. Only set for user managed @@ -258,14 +191,12 @@ public interface InstanceConfigOrBuilder * </pre> * * <code>string base_config = 7 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for baseConfig. */ - com.google.protobuf.ByteString getBaseConfigBytes(); + com.google.protobuf.ByteString + getBaseConfigBytes(); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -294,8 +225,6 @@ public interface InstanceConfigOrBuilder */ int getLabelsCount(); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -322,13 +251,15 @@ public interface InstanceConfigOrBuilder * * <code>map<string, string> labels = 8;</code> */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.String> getLabels(); + java.util.Map<java.lang.String, java.lang.String> + getLabels(); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -355,10 +286,9 @@ public interface InstanceConfigOrBuilder * * <code>map<string, string> labels = 8;</code> */ - java.util.Map<java.lang.String, java.lang.String> getLabelsMap(); + java.util.Map<java.lang.String, java.lang.String> + getLabelsMap(); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -386,13 +316,11 @@ public interface InstanceConfigOrBuilder * <code>map<string, string> labels = 8;</code> */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -419,11 +347,10 @@ java.lang.String getLabelsOrDefault( * * <code>map<string, string> labels = 8;</code> */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -438,13 +365,10 @@ java.lang.String getLabelsOrDefault( * </pre> * * <code>string etag = 9;</code> - * * @return The etag. */ java.lang.String getEtag(); /** - * - * * <pre> * etag is used for optimistic concurrency control as a way * to help prevent simultaneous updates of a instance config from overwriting @@ -459,105 +383,82 @@ java.lang.String getLabelsOrDefault( * </pre> * * <code>string etag = 9;</code> - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @return A list containing the leaderOptions. */ - java.util.List<java.lang.String> getLeaderOptionsList(); + java.util.List<java.lang.String> + getLeaderOptionsList(); /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @return The count of leaderOptions. */ int getLeaderOptionsCount(); /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param index The index of the element to return. * @return The leaderOptions at the given index. */ java.lang.String getLeaderOptions(int index); /** - * - * * <pre> * Allowed values of the "default_leader" schema option for databases in * instances that use this instance configuration. * </pre> * * <code>repeated string leader_options = 4;</code> - * * @param index The index of the value to return. * @return The bytes of the leaderOptions at the given index. */ - com.google.protobuf.ByteString getLeaderOptionsBytes(int index); + com.google.protobuf.ByteString + getLeaderOptionsBytes(int index); /** - * - * * <pre> * Output only. If true, the instance config is being created or updated. If * false, there are no ongoing operations for the instance config. * </pre> * * <code>bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> - * * @return The reconciling. */ boolean getReconciling(); /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * * <pre> * Output only. The current instance config state. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ com.google.spanner.admin.instance.v1.InstanceConfig.State getState(); diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java similarity index 100% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java similarity index 84% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java index 81305322e75..92e4242edd7 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -34,13 +16,10 @@ public interface InstanceOrBuilder * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form @@ -49,14 +28,12 @@ public interface InstanceOrBuilder * </pre> * * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -64,16 +41,11 @@ public interface InstanceOrBuilder * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The config. */ java.lang.String getConfig(); /** - * - * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See @@ -81,44 +53,35 @@ public interface InstanceOrBuilder * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * - * <code> - * string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for config. */ - com.google.protobuf.ByteString getConfigBytes(); + com.google.protobuf.ByteString + getConfigBytes(); /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code> - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * * <pre> * The number of nodes allocated to this instance. At most one of either * node_count or processing_units should be present in the message. @@ -135,14 +98,11 @@ public interface InstanceOrBuilder * </pre> * * <code>int32 node_count = 5;</code> - * * @return The nodeCount. */ int getNodeCount(); /** - * - * * <pre> * The number of processing units allocated to this instance. At most one of * processing_units or node_count should be present in the message. @@ -159,14 +119,11 @@ public interface InstanceOrBuilder * </pre> * * <code>int32 processing_units = 9;</code> - * * @return The processingUnits. */ int getProcessingUnits(); /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -174,16 +131,11 @@ public interface InstanceOrBuilder * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> * @return Whether the autoscalingConfig field is set. */ boolean hasAutoscalingConfig(); /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -191,16 +143,11 @@ public interface InstanceOrBuilder * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The autoscalingConfig. */ com.google.spanner.admin.instance.v1.AutoscalingConfig getAutoscalingConfig(); /** - * - * * <pre> * Optional. The autoscaling configuration. Autoscaling is enabled if this * field is set. When autoscaling is enabled, node_count and processing_units @@ -208,15 +155,11 @@ public interface InstanceOrBuilder * allocated to the instance. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * </code> + * <code>.google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];</code> */ com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder(); /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -225,16 +168,11 @@ public interface InstanceOrBuilder * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], @@ -243,17 +181,12 @@ public interface InstanceOrBuilder * the state must be either omitted or set to `READY`. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The state. */ com.google.spanner.admin.instance.v1.Instance.State getState(); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -282,8 +215,6 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -310,13 +241,15 @@ public interface InstanceOrBuilder * * <code>map<string, string> labels = 7;</code> */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.String> getLabels(); + java.util.Map<java.lang.String, java.lang.String> + getLabels(); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -343,10 +276,9 @@ public interface InstanceOrBuilder * * <code>map<string, string> labels = 7;</code> */ - java.util.Map<java.lang.String, java.lang.String> getLabelsMap(); + java.util.Map<java.lang.String, java.lang.String> + getLabelsMap(); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -374,13 +306,11 @@ public interface InstanceOrBuilder * <code>map<string, string> labels = 7;</code> */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * * <pre> * Cloud Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and @@ -407,132 +337,101 @@ java.lang.String getLabelsOrDefault( * * <code>map<string, string> labels = 7;</code> */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @return A list containing the endpointUris. */ - java.util.List<java.lang.String> getEndpointUrisList(); + java.util.List<java.lang.String> + getEndpointUrisList(); /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @return The count of endpointUris. */ int getEndpointUrisCount(); /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param index The index of the element to return. * @return The endpointUris at the given index. */ java.lang.String getEndpointUris(int index); /** - * - * * <pre> * Deprecated. This field is not populated. * </pre> * * <code>repeated string endpoint_uris = 8;</code> - * * @param index The index of the value to return. * @return The bytes of the endpointUris at the given index. */ - com.google.protobuf.ByteString getEndpointUrisBytes(int index); + com.google.protobuf.ByteString + getEndpointUrisBytes(int index); /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * * <pre> * Output only. The time at which the instance was created. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * * <pre> * Output only. The time at which the instance was most recently updated. * </pre> * - * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java similarity index 76% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java index e92b768f4b1..0c9dba57d58 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations]. @@ -28,18 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest} */ -public final class ListInstanceConfigOperationsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstanceConfigOperationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) ListInstanceConfigOperationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstanceConfigOperationsRequest.newBuilder() to construct. - private ListInstanceConfigOperationsRequest( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private ListInstanceConfigOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListInstanceConfigOperationsRequest() { parent_ = ""; filter_ = ""; @@ -48,41 +28,34 @@ private ListInstanceConfigOperationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstanceConfigOperationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.class, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.Builder.class); + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.class, com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -91,32 +64,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -178,7 +146,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ @java.lang.Override @@ -187,15 +154,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -243,15 +209,16 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -262,15 +229,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -279,12 +243,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -294,7 +255,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ @java.lang.Override @@ -303,15 +263,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -321,15 +280,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -338,7 +298,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,7 +309,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -379,7 +339,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -392,19 +353,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest)) { + if (!(obj instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest other = - (com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest other = (com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -430,105 +393,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest 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.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest - 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.admin.instance.v1.ListInstanceConfigOperationsRequest 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.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations]. @@ -536,34 +492,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.class, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.Builder - .class); + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.class, com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.Builder.class); } - // Construct using - // com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -576,22 +531,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest - getDefaultInstanceForType() { - return com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest - .getDefaultInstance(); + public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest getDefaultInstanceForType() { + return com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.getDefaultInstance(); } @java.lang.Override public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest build() { - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest result = - buildPartial(); + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -600,17 +552,13 @@ public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest @java.lang.Override public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest buildPartial() { - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest result = - new com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest result = new com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -630,52 +578,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) { - return mergeFrom( - (com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) other); + if (other instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) { + return mergeFrom((com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest other) { - if (other - == com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest other) { + if (other == com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -720,37 +662,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -760,28 +697,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -790,24 +722,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -815,41 +744,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -859,24 +777,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -886,8 +798,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -935,13 +845,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -950,8 +860,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -999,14 +907,15 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1014,8 +923,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -1063,22 +970,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>string filter = 2;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -1126,7 +1029,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>string filter = 2;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1136,8 +1038,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -1185,14 +1085,12 @@ public Builder clearFilter() { * </pre> * * <code>string filter = 2;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1200,17 +1098,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -1218,15 +1113,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1238,15 +1130,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1258,8 +1147,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -1269,13 +1156,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1284,8 +1171,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -1295,14 +1180,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1310,8 +1196,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -1321,22 +1205,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -1346,7 +1226,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1356,8 +1235,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -1367,23 +1244,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1393,44 +1268,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) - private static final com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest(); + DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest(); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListInstanceConfigOperationsRequest> PARSER = - new com.google.protobuf.AbstractParser<ListInstanceConfigOperationsRequest>() { - @java.lang.Override - public ListInstanceConfigOperationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListInstanceConfigOperationsRequest> + PARSER = new com.google.protobuf.AbstractParser<ListInstanceConfigOperationsRequest>() { + @java.lang.Override + public ListInstanceConfigOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListInstanceConfigOperationsRequest> parser() { return PARSER; @@ -1442,8 +1314,9 @@ public com.google.protobuf.Parser<ListInstanceConfigOperationsRequest> getParser } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java similarity index 85% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java index f07f113e887..24cd4561a7d 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface ListInstanceConfigOperationsRequestOrBuilder - extends +public interface ListInstanceConfigOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The project of the instance config operations. * Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -104,13 +77,10 @@ public interface ListInstanceConfigOperationsRequestOrBuilder * </pre> * * <code>string filter = 2;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * An expression that filters the list of returned operations. * @@ -158,28 +128,23 @@ public interface ListInstanceConfigOperationsRequestOrBuilder * </pre> * * <code>string filter = 2;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * * <pre> * Number of operations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -189,13 +154,10 @@ public interface ListInstanceConfigOperationsRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token] @@ -205,8 +167,8 @@ public interface ListInstanceConfigOperationsRequestOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java similarity index 73% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java index 13089b74288..4054022f83b 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The response for * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations]. @@ -28,18 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse} */ -public final class ListInstanceConfigOperationsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstanceConfigOperationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) ListInstanceConfigOperationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstanceConfigOperationsResponse.newBuilder() to construct. - private ListInstanceConfigOperationsResponse( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private ListInstanceConfigOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListInstanceConfigOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,33 +27,28 @@ private ListInstanceConfigOperationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstanceConfigOperationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.class, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.Builder - .class); + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.class, com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.Builder.class); } public static final int OPERATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.longrunning.Operation> operations_; /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -89,8 +64,6 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { return operations_; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -102,13 +75,11 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { * <code>repeated .google.longrunning.Operation operations = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> getOperationsOrBuilderList() { return operations_; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -124,8 +95,6 @@ public int getOperationsCount() { return operations_.size(); } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -141,8 +110,6 @@ public com.google.longrunning.Operation getOperations(int index) { return operations_.get(index); } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -154,17 +121,15 @@ public com.google.longrunning.Operation getOperations(int index) { * <code>repeated .google.longrunning.Operation operations = 1;</code> */ @java.lang.Override - public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -172,7 +137,6 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -181,15 +145,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -197,15 +160,16 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,7 +178,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < operations_.size(); i++) { output.writeMessage(1, operations_.get(i)); } @@ -243,7 +207,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < operations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, operations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -256,17 +221,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse)) { + if (!(obj instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse other = - (com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) obj; + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse other = (com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) obj; - if (!getOperationsList().equals(other.getOperationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getOperationsList() + .equals(other.getOperationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,105 +255,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse 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.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - 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.admin.instance.v1.ListInstanceConfigOperationsResponse 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.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations]. @@ -396,34 +354,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.class, - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.Builder - .class); + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.class, com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.Builder.class); } - // Construct using - // com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -440,22 +397,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - getDefaultInstanceForType() { - return com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - .getDefaultInstance(); + public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse getDefaultInstanceForType() { + return com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.getDefaultInstance(); } @java.lang.Override public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse build() { - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse result = - buildPartial(); + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -463,20 +417,15 @@ public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - buildPartial() { - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse result = - new com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse(this); + public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse buildPartial() { + com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse result = new com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse result) { if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); @@ -488,8 +437,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -500,52 +448,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) { - return mergeFrom( - (com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) other); + if (other instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) { + return mergeFrom((com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse other) { - if (other - == com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse other) { + if (other == com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.getDefaultInstance()) return this; if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { @@ -564,10 +506,9 @@ public Builder mergeFrom( operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); - operationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOperationsFieldBuilder() - : null; + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } @@ -604,31 +545,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.longrunning.Operation m = - input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry); - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.add(m); - } else { - operationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.longrunning.Operation m = + input.readMessage( + com.google.longrunning.Operation.parser(), + extensionRegistry); + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(m); + } else { + operationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -638,28 +578,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.longrunning.Operation> operations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList<com.google.longrunning.Operation>(operations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> - operationsBuilder_; + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> operationsBuilder_; /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -678,8 +611,6 @@ public java.util.List<com.google.longrunning.Operation> getOperationsList() { } } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -698,8 +629,6 @@ public int getOperationsCount() { } } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -718,8 +647,6 @@ public com.google.longrunning.Operation getOperations(int index) { } } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -730,7 +657,8 @@ public com.google.longrunning.Operation getOperations(int index) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder setOperations(int index, com.google.longrunning.Operation value) { + public Builder setOperations( + int index, com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -744,8 +672,6 @@ public Builder setOperations(int index, com.google.longrunning.Operation value) return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -768,8 +694,6 @@ public Builder setOperations( return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -794,8 +718,6 @@ public Builder addOperations(com.google.longrunning.Operation value) { return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -806,7 +728,8 @@ public Builder addOperations(com.google.longrunning.Operation value) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder addOperations(int index, com.google.longrunning.Operation value) { + public Builder addOperations( + int index, com.google.longrunning.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -820,8 +743,6 @@ public Builder addOperations(int index, com.google.longrunning.Operation value) return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -832,7 +753,8 @@ public Builder addOperations(int index, com.google.longrunning.Operation value) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public Builder addOperations(com.google.longrunning.Operation.Builder builderForValue) { + public Builder addOperations( + com.google.longrunning.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); @@ -843,8 +765,6 @@ public Builder addOperations(com.google.longrunning.Operation.Builder builderFor return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -867,8 +787,6 @@ public Builder addOperations( return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -883,7 +801,8 @@ public Builder addAllOperations( java.lang.Iterable<? extends com.google.longrunning.Operation> values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); @@ -891,8 +810,6 @@ public Builder addAllOperations( return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -914,8 +831,6 @@ public Builder clearOperations() { return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -937,8 +852,6 @@ public Builder removeOperations(int index) { return this; } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -949,12 +862,11 @@ public Builder removeOperations(int index) { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) { + public com.google.longrunning.Operation.Builder getOperationsBuilder( + int index) { return getOperationsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -965,16 +877,14 @@ public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index) { if (operationsBuilder_ == null) { - return operations_.get(index); - } else { + return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -985,8 +895,8 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> - getOperationsOrBuilderList() { + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { @@ -994,8 +904,6 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde } } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1007,12 +915,10 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * <code>repeated .google.longrunning.Operation operations = 1;</code> */ public com.google.longrunning.Operation.Builder addOperationsBuilder() { - return getOperationsFieldBuilder() - .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); + return getOperationsFieldBuilder().addBuilder( + com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1023,13 +929,12 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder() { * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) { - return getOperationsFieldBuilder() - .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder().addBuilder( + index, com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -1040,22 +945,20 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBuilderList() { + public java.util.List<com.google.longrunning.Operation.Builder> + getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { - operationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder>( - operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); operations_ = null; } return operationsBuilder_; @@ -1063,8 +966,6 @@ public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBui private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -1072,13 +973,13 @@ public java.util.List<com.google.longrunning.Operation.Builder> getOperationsBui * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1087,8 +988,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -1096,14 +995,15 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1111,8 +1011,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -1120,22 +1018,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -1143,7 +1037,6 @@ public Builder setNextPageToken(java.lang.String value) { * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1153,8 +1046,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -1162,23 +1053,21 @@ public Builder clearNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1188,44 +1077,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) - private static final com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse(); + DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse(); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListInstanceConfigOperationsResponse> PARSER = - new com.google.protobuf.AbstractParser<ListInstanceConfigOperationsResponse>() { - @java.lang.Override - public ListInstanceConfigOperationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListInstanceConfigOperationsResponse> + PARSER = new com.google.protobuf.AbstractParser<ListInstanceConfigOperationsResponse>() { + @java.lang.Override + public ListInstanceConfigOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListInstanceConfigOperationsResponse> parser() { return PARSER; @@ -1237,8 +1123,9 @@ public com.google.protobuf.Parser<ListInstanceConfigOperationsResponse> getParse } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java index f2ee88e1cbf..356a5ae4231 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface ListInstanceConfigOperationsResponseOrBuilder - extends +public interface ListInstanceConfigOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -36,10 +18,9 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - java.util.List<com.google.longrunning.Operation> getOperationsList(); + java.util.List<com.google.longrunning.Operation> + getOperationsList(); /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -52,8 +33,6 @@ public interface ListInstanceConfigOperationsResponseOrBuilder */ com.google.longrunning.Operation getOperations(int index); /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -66,8 +45,6 @@ public interface ListInstanceConfigOperationsResponseOrBuilder */ int getOperationsCount(); /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -78,10 +55,9 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - java.util.List<? extends com.google.longrunning.OperationOrBuilder> getOperationsOrBuilderList(); + java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getOperationsOrBuilderList(); /** - * - * * <pre> * The list of matching instance config [long-running * operations][google.longrunning.Operation]. Each operation's name will be @@ -92,11 +68,10 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * * <code>repeated .google.longrunning.Operation operations = 1;</code> */ - com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int index); + com.google.longrunning.OperationOrBuilder getOperationsOrBuilder( + int index); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -104,13 +79,10 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations] @@ -118,8 +90,8 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java similarity index 67% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java index 5e8a8d11666..5a36a03d212 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstanceConfigsRequest} */ -public final class ListInstanceConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstanceConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.ListInstanceConfigsRequest) ListInstanceConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstanceConfigsRequest.newBuilder() to construct. private ListInstanceConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListInstanceConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,42 +27,35 @@ private ListInstanceConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstanceConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.class, - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.Builder.class); + com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.class, com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,15 +99,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * * <pre> * Number of instance configurations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ @java.lang.Override @@ -143,12 +113,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -157,7 +124,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -183,15 +148,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -200,7 +166,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -235,7 +201,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -248,17 +215,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest other = - (com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest) obj; + com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest other = (com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,104 +251,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest 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.admin.instance.v1.ListInstanceConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. @@ -387,32 +350,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstanceConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.ListInstanceConfigsRequest) com.google.spanner.admin.instance.v1.ListInstanceConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.class, - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.Builder.class); + com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.class, com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,14 +388,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.getDefaultInstance(); } @@ -446,17 +409,13 @@ public com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest build() { @java.lang.Override public com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest buildPartial() { - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest result = - new com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest result = new com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -473,50 +432,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest other) { - if (other - == com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest other) { + if (other == com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -556,31 +511,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -590,29 +541,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,25 +567,22 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -647,43 +590,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -693,25 +625,19 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -719,17 +645,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of instance configurations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ @java.lang.Override @@ -737,15 +660,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of instance configurations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -757,15 +677,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of instance configurations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -777,8 +694,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -787,13 +702,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -802,8 +717,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -812,14 +725,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -827,8 +741,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -837,22 +749,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 3;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -861,7 +769,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -871,8 +778,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -881,23 +786,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -907,43 +810,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.ListInstanceConfigsRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigsRequest) - private static final com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest(); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListInstanceConfigsRequest> PARSER = - new com.google.protobuf.AbstractParser<ListInstanceConfigsRequest>() { - @java.lang.Override - public ListInstanceConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListInstanceConfigsRequest> + PARSER = new com.google.protobuf.AbstractParser<ListInstanceConfigsRequest>() { + @java.lang.Override + public ListInstanceConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListInstanceConfigsRequest> parser() { return PARSER; @@ -955,8 +856,9 @@ public com.google.protobuf.Parser<ListInstanceConfigsRequest> getParserForType() } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.ListInstanceConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java index 1776f0fb515..f5eaa7fdd12 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsRequestOrBuilder.java @@ -1,78 +1,48 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface ListInstanceConfigsRequestOrBuilder - extends +public interface ListInstanceConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.ListInstanceConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The name of the project for which a list of supported instance * configurations is requested. Values are of the form * `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Number of instance configurations to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -81,13 +51,10 @@ public interface ListInstanceConfigsRequestOrBuilder * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] @@ -96,8 +63,8 @@ public interface ListInstanceConfigsRequestOrBuilder * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java similarity index 72% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java index 69956ba6452..81e6f555a68 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponse.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The response for * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstanceConfigsResponse} */ -public final class ListInstanceConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstanceConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.ListInstanceConfigsResponse) ListInstanceConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstanceConfigsResponse.newBuilder() to construct. private ListInstanceConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListInstanceConfigsResponse() { instanceConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListInstanceConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstanceConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.class, - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.Builder.class); + com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.class, com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.Builder.class); } public static final int INSTANCE_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> instanceConfigs_; /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -78,13 +56,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ @java.lang.Override - public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> - getInstanceConfigsList() { + public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> getInstanceConfigsList() { return instanceConfigs_; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -92,13 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> + public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> getInstanceConfigsOrBuilderList() { return instanceConfigs_; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -110,8 +83,6 @@ public int getInstanceConfigsCount() { return instanceConfigs_.size(); } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -123,8 +94,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfigs(in return instanceConfigs_.get(index); } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -138,12 +107,9 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -151,7 +117,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -160,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -176,15 +140,16 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -193,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < instanceConfigs_.size(); i++) { output.writeMessage(1, instanceConfigs_.get(i)); } @@ -222,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instanceConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instanceConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instanceConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -235,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse other = - (com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse) obj; + com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse other = (com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse) obj; - if (!getInstanceConfigsList().equals(other.getInstanceConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getInstanceConfigsList() + .equals(other.getInstanceConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,104 +235,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse 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.admin.instance.v1.ListInstanceConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. @@ -373,32 +334,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstanceConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.ListInstanceConfigsResponse) com.google.spanner.admin.instance.v1.ListInstanceConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.class, - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.Builder.class); + com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.class, com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,14 +377,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.getDefaultInstance(); } @@ -437,18 +398,14 @@ public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse build() @java.lang.Override public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse buildPartial() { - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse result = - new com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse(this); + com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse result = new com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse result) { if (instanceConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { instanceConfigs_ = java.util.Collections.unmodifiableList(instanceConfigs_); @@ -460,8 +417,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -472,50 +428,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse) { - return mergeFrom((com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse) other); + return mergeFrom((com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse other) { - if (other - == com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse other) { + if (other == com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.getDefaultInstance()) return this; if (instanceConfigsBuilder_ == null) { if (!other.instanceConfigs_.isEmpty()) { if (instanceConfigs_.isEmpty()) { @@ -534,10 +486,9 @@ public Builder mergeFrom( instanceConfigsBuilder_ = null; instanceConfigs_ = other.instanceConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - instanceConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstanceConfigsFieldBuilder() - : null; + instanceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstanceConfigsFieldBuilder() : null; } else { instanceConfigsBuilder_.addAllMessages(other.instanceConfigs_); } @@ -574,33 +525,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.instance.v1.InstanceConfig m = - input.readMessage( - com.google.spanner.admin.instance.v1.InstanceConfig.parser(), - extensionRegistry); - if (instanceConfigsBuilder_ == null) { - ensureInstanceConfigsIsMutable(); - instanceConfigs_.add(m); - } else { - instanceConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.instance.v1.InstanceConfig m = + input.readMessage( + com.google.spanner.admin.instance.v1.InstanceConfig.parser(), + extensionRegistry); + if (instanceConfigsBuilder_ == null) { + ensureInstanceConfigsIsMutable(); + instanceConfigs_.add(m); + } else { + instanceConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,38 +558,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> instanceConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstanceConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instanceConfigs_ = - new java.util.ArrayList<com.google.spanner.admin.instance.v1.InstanceConfig>( - instanceConfigs_); + instanceConfigs_ = new java.util.ArrayList<com.google.spanner.admin.instance.v1.InstanceConfig>(instanceConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.InstanceConfig, - com.google.spanner.admin.instance.v1.InstanceConfig.Builder, - com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> - instanceConfigsBuilder_; + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> instanceConfigsBuilder_; /** - * - * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> - getInstanceConfigsList() { + public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> getInstanceConfigsList() { if (instanceConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(instanceConfigs_); } else { @@ -649,8 +587,6 @@ private void ensureInstanceConfigsIsMutable() { } } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -665,8 +601,6 @@ public int getInstanceConfigsCount() { } } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -681,8 +615,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfigs(in } } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -704,8 +636,6 @@ public Builder setInstanceConfigs( return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -724,8 +654,6 @@ public Builder setInstanceConfigs( return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -746,8 +674,6 @@ public Builder addInstanceConfigs(com.google.spanner.admin.instance.v1.InstanceC return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -769,8 +695,6 @@ public Builder addInstanceConfigs( return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -789,8 +713,6 @@ public Builder addInstanceConfigs( return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -809,8 +731,6 @@ public Builder addInstanceConfigs( return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -821,7 +741,8 @@ public Builder addAllInstanceConfigs( java.lang.Iterable<? extends com.google.spanner.admin.instance.v1.InstanceConfig> values) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceConfigs_); onChanged(); } else { instanceConfigsBuilder_.addAllMessages(values); @@ -829,8 +750,6 @@ public Builder addAllInstanceConfigs( return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -848,8 +767,6 @@ public Builder clearInstanceConfigs() { return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -867,8 +784,6 @@ public Builder removeInstanceConfigs(int index) { return this; } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -880,8 +795,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo return getInstanceConfigsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -891,22 +804,19 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigsOrBuilder( int index) { if (instanceConfigsBuilder_ == null) { - return instanceConfigs_.get(index); - } else { + return instanceConfigs_.get(index); } else { return instanceConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> - getInstanceConfigsOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> + getInstanceConfigsOrBuilderList() { if (instanceConfigsBuilder_ != null) { return instanceConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -914,8 +824,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC } } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -923,12 +831,10 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder addInstanceConfigsBuilder() { - return getInstanceConfigsFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()); + return getInstanceConfigsFieldBuilder().addBuilder( + com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()); } /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -937,35 +843,26 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder addInstanceCo */ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder addInstanceConfigsBuilder( int index) { - return getInstanceConfigsFieldBuilder() - .addBuilder( - index, com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()); + return getInstanceConfigsFieldBuilder().addBuilder( + index, com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()); } /** - * - * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig.Builder> - getInstanceConfigsBuilderList() { + public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig.Builder> + getInstanceConfigsBuilderList() { return getInstanceConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.InstanceConfig, - com.google.spanner.admin.instance.v1.InstanceConfig.Builder, - com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> getInstanceConfigsFieldBuilder() { if (instanceConfigsBuilder_ == null) { - instanceConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.InstanceConfig, - com.google.spanner.admin.instance.v1.InstanceConfig.Builder, - com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>( + instanceConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>( instanceConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -977,8 +874,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder addInstanceCo private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -986,13 +881,13 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder addInstanceCo * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1001,8 +896,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -1010,14 +903,15 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1025,8 +919,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -1034,22 +926,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -1057,7 +945,6 @@ public Builder setNextPageToken(java.lang.String value) { * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1067,8 +954,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -1076,23 +961,21 @@ public Builder clearNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,43 +985,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.ListInstanceConfigsResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigsResponse) - private static final com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse(); } - public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListInstanceConfigsResponse> PARSER = - new com.google.protobuf.AbstractParser<ListInstanceConfigsResponse>() { - @java.lang.Override - public ListInstanceConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListInstanceConfigsResponse> + PARSER = new com.google.protobuf.AbstractParser<ListInstanceConfigsResponse>() { + @java.lang.Override + public ListInstanceConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListInstanceConfigsResponse> parser() { return PARSER; @@ -1150,8 +1031,9 @@ public com.google.protobuf.Parser<ListInstanceConfigsResponse> getParserForType( } @java.lang.Override - public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java index c2942f5005c..626758766ce 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface ListInstanceConfigsResponseOrBuilder - extends +public interface ListInstanceConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.ListInstanceConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ - java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> getInstanceConfigsList(); + java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> + getInstanceConfigsList(); /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -44,8 +25,6 @@ public interface ListInstanceConfigsResponseOrBuilder */ com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfigs(int index); /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -54,19 +33,15 @@ public interface ListInstanceConfigsResponseOrBuilder */ int getInstanceConfigsCount(); /** - * - * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> + java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> getInstanceConfigsOrBuilderList(); /** - * - * * <pre> * The list of requested instance configurations. * </pre> @@ -77,8 +52,6 @@ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigsO int index); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -86,13 +59,10 @@ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigsO * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] @@ -100,8 +70,8 @@ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigsO * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java similarity index 74% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java index dd38de27baf..8802245a596 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,41 +28,34 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstancesRequest.class, - com.google.spanner.admin.instance.v1.ListInstancesRequest.Builder.class); + com.google.spanner.admin.instance.v1.ListInstancesRequest.class, com.google.spanner.admin.instance.v1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -89,32 +64,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,15 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or less, defaults * to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -156,7 +123,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ @java.lang.Override @@ -165,15 +131,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -182,15 +147,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -199,12 +165,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -228,7 +191,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string filter = 4;</code> - * * @return The filter. */ @java.lang.Override @@ -237,15 +199,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -269,15 +230,16 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 4;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -286,7 +248,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -324,7 +286,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -340,18 +303,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.ListInstancesRequest other = - (com.google.spanner.admin.instance.v1.ListInstancesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.spanner.admin.instance.v1.ListInstancesRequest other = (com.google.spanner.admin.instance.v1.ListInstancesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,104 +343,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.ListInstancesRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]. @@ -482,32 +442,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.ListInstancesRequest) com.google.spanner.admin.instance.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstancesRequest.class, - com.google.spanner.admin.instance.v1.ListInstancesRequest.Builder.class); + com.google.spanner.admin.instance.v1.ListInstancesRequest.class, com.google.spanner.admin.instance.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.ListInstancesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -541,11 +502,8 @@ public com.google.spanner.admin.instance.v1.ListInstancesRequest build() { @java.lang.Override public com.google.spanner.admin.instance.v1.ListInstancesRequest buildPartial() { - com.google.spanner.admin.instance.v1.ListInstancesRequest result = - new com.google.spanner.admin.instance.v1.ListInstancesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.ListInstancesRequest result = new com.google.spanner.admin.instance.v1.ListInstancesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -570,39 +528,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.ListInstancesReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.ListInstancesRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.ListInstancesRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -610,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.ListInstancesRequest other) { - if (other == com.google.spanner.admin.instance.v1.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -656,37 +612,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -696,28 +647,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -726,24 +672,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -751,41 +694,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -795,24 +727,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -820,17 +746,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or less, defaults * to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ @java.lang.Override @@ -838,15 +761,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or less, defaults * to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -858,15 +778,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or less, defaults * to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -878,8 +795,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -888,13 +803,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -903,8 +818,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -913,14 +826,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -928,8 +842,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -938,22 +850,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 3;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -962,7 +870,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -972,8 +879,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -982,14 +887,12 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 3;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -999,8 +902,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -1024,13 +925,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string filter = 4;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1039,8 +940,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -1064,14 +963,15 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 4;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1079,8 +979,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -1104,22 +1002,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>string filter = 4;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -1143,7 +1037,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>string filter = 4;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1153,8 +1046,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -1178,23 +1069,21 @@ public Builder clearFilter() { * </pre> * * <code>string filter = 4;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1204,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstancesRequest) private static final com.google.spanner.admin.instance.v1.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.ListInstancesRequest(); } @@ -1218,27 +1107,27 @@ public static com.google.spanner.admin.instance.v1.ListInstancesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListInstancesRequest> PARSER = - new com.google.protobuf.AbstractParser<ListInstancesRequest>() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListInstancesRequest> + PARSER = new com.google.protobuf.AbstractParser<ListInstancesRequest>() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListInstancesRequest> parser() { return PARSER; @@ -1253,4 +1142,6 @@ public com.google.protobuf.Parser<ListInstancesRequest> getParserForType() { public com.google.spanner.admin.instance.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java index 60ec0277046..63ad09ac801 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesRequestOrBuilder.java @@ -1,76 +1,46 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The name of the project for which a list of instances is * requested. Values are of the form `projects/<project>`. * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or less, defaults * to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 2;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -79,13 +49,10 @@ public interface ListInstancesRequestOrBuilder * </pre> * * <code>string page_token = 3;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, `page_token` should contain a * [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] @@ -94,14 +61,12 @@ public interface ListInstancesRequestOrBuilder * </pre> * * <code>string page_token = 3;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -125,13 +90,10 @@ public interface ListInstancesRequestOrBuilder * </pre> * * <code>string filter = 4;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -155,8 +117,8 @@ public interface ListInstancesRequestOrBuilder * </pre> * * <code>string filter = 4;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java similarity index 72% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java index 70c637a4301..7304f78e62e 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponse.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The response for * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstancesResponse.class, - com.google.spanner.admin.instance.v1.ListInstancesResponse.Builder.class); + com.google.spanner.admin.instance.v1.ListInstancesResponse.class, com.google.spanner.admin.instance.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.instance.v1.Instance> instances_; /** - * - * * <pre> * The list of requested instances. * </pre> @@ -82,8 +60,6 @@ public java.util.List<com.google.spanner.admin.instance.v1.Instance> getInstance return instances_; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -91,13 +67,11 @@ public java.util.List<com.google.spanner.admin.instance.v1.Instance> getInstance * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> + public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> getInstancesOrBuilderList() { return instances_; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -109,8 +83,6 @@ public int getInstancesCount() { return instances_.size(); } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -122,8 +94,6 @@ public com.google.spanner.admin.instance.v1.Instance getInstances(int index) { return instances_.get(index); } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -131,17 +101,15 @@ public com.google.spanner.admin.instance.v1.Instance getInstances(int index) { * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuilder(int index) { + public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuilder( + int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -149,7 +117,6 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuil * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -174,15 +140,16 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.ListInstancesResponse other = - (com.google.spanner.admin.instance.v1.ListInstancesResponse) obj; + com.google.spanner.admin.instance.v1.ListInstancesResponse other = (com.google.spanner.admin.instance.v1.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,104 +235,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.ListInstancesResponse prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The response for * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]. @@ -371,32 +334,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.ListInstancesResponse) com.google.spanner.admin.instance.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ListInstancesResponse.class, - com.google.spanner.admin.instance.v1.ListInstancesResponse.Builder.class); + com.google.spanner.admin.instance.v1.ListInstancesResponse.class, com.google.spanner.admin.instance.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.ListInstancesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -434,18 +398,14 @@ public com.google.spanner.admin.instance.v1.ListInstancesResponse build() { @java.lang.Override public com.google.spanner.admin.instance.v1.ListInstancesResponse buildPartial() { - com.google.spanner.admin.instance.v1.ListInstancesResponse result = - new com.google.spanner.admin.instance.v1.ListInstancesResponse(this); + com.google.spanner.admin.instance.v1.ListInstancesResponse result = new com.google.spanner.admin.instance.v1.ListInstancesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.instance.v1.ListInstancesResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.admin.instance.v1.ListInstancesResponse result) { if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -468,39 +428,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.ListInstancesRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.ListInstancesResponse) { - return mergeFrom((com.google.spanner.admin.instance.v1.ListInstancesResponse) other); + return mergeFrom((com.google.spanner.admin.instance.v1.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -508,8 +467,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.ListInstancesResponse other) { - if (other == com.google.spanner.admin.instance.v1.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -528,10 +486,9 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.ListInstancesRespo instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -568,32 +525,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.instance.v1.Instance m = - input.readMessage( - com.google.spanner.admin.instance.v1.Instance.parser(), extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.instance.v1.Instance m = + input.readMessage( + com.google.spanner.admin.instance.v1.Instance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,29 +558,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.admin.instance.v1.Instance> instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList<com.google.spanner.admin.instance.v1.Instance>(instances_); + instances_ = new java.util.ArrayList<com.google.spanner.admin.instance.v1.Instance>(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.Instance, - com.google.spanner.admin.instance.v1.Instance.Builder, - com.google.spanner.admin.instance.v1.InstanceOrBuilder> - instancesBuilder_; + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> instancesBuilder_; /** - * - * * <pre> * The list of requested instances. * </pre> @@ -640,8 +587,6 @@ public java.util.List<com.google.spanner.admin.instance.v1.Instance> getInstance } } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -656,8 +601,6 @@ public int getInstancesCount() { } } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -672,15 +615,14 @@ public com.google.spanner.admin.instance.v1.Instance getInstances(int index) { } } /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - public Builder setInstances(int index, com.google.spanner.admin.instance.v1.Instance value) { + public Builder setInstances( + int index, com.google.spanner.admin.instance.v1.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,8 +636,6 @@ public Builder setInstances(int index, com.google.spanner.admin.instance.v1.Inst return this; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -714,8 +654,6 @@ public Builder setInstances( return this; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -736,15 +674,14 @@ public Builder addInstances(com.google.spanner.admin.instance.v1.Instance value) return this; } /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - public Builder addInstances(int index, com.google.spanner.admin.instance.v1.Instance value) { + public Builder addInstances( + int index, com.google.spanner.admin.instance.v1.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -758,8 +695,6 @@ public Builder addInstances(int index, com.google.spanner.admin.instance.v1.Inst return this; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -778,8 +713,6 @@ public Builder addInstances( return this; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -798,8 +731,6 @@ public Builder addInstances( return this; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -810,7 +741,8 @@ public Builder addAllInstances( java.lang.Iterable<? extends com.google.spanner.admin.instance.v1.Instance> values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -818,8 +750,6 @@ public Builder addAllInstances( return this; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -837,8 +767,6 @@ public Builder clearInstances() { return this; } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -856,44 +784,39 @@ public Builder removeInstances(int index) { return this; } /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - public com.google.spanner.admin.instance.v1.Instance.Builder getInstancesBuilder(int index) { + public com.google.spanner.admin.instance.v1.Instance.Builder getInstancesBuilder( + int index) { return getInstancesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuilder(int index) { + public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuilder( + int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> - getInstancesOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -901,8 +824,6 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuil } } /** - * - * * <pre> * The list of requested instances. * </pre> @@ -910,48 +831,42 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuil * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); + return getInstancesFieldBuilder().addBuilder( + com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); } /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - public com.google.spanner.admin.instance.v1.Instance.Builder addInstancesBuilder(int index) { - return getInstancesFieldBuilder() - .addBuilder(index, com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); + public com.google.spanner.admin.instance.v1.Instance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); } /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.Instance.Builder> - getInstancesBuilderList() { + public java.util.List<com.google.spanner.admin.instance.v1.Instance.Builder> + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.Instance, - com.google.spanner.admin.instance.v1.Instance.Builder, - com.google.spanner.admin.instance.v1.InstanceOrBuilder> + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.Instance, - com.google.spanner.admin.instance.v1.Instance.Builder, - com.google.spanner.admin.instance.v1.InstanceOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder>( + instances_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; @@ -959,8 +874,6 @@ public com.google.spanner.admin.instance.v1.Instance.Builder addInstancesBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -968,13 +881,13 @@ public com.google.spanner.admin.instance.v1.Instance.Builder addInstancesBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -983,8 +896,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -992,14 +903,15 @@ public java.lang.String getNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1007,8 +919,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -1016,22 +926,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -1039,7 +945,6 @@ public Builder setNextPageToken(java.lang.String value) { * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1049,8 +954,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -1058,23 +961,21 @@ public Builder clearNextPageToken() { * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1084,12 +985,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstancesResponse) private static final com.google.spanner.admin.instance.v1.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.ListInstancesResponse(); } @@ -1098,27 +999,27 @@ public static com.google.spanner.admin.instance.v1.ListInstancesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListInstancesResponse> PARSER = - new com.google.protobuf.AbstractParser<ListInstancesResponse>() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListInstancesResponse> + PARSER = new com.google.protobuf.AbstractParser<ListInstancesResponse>() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListInstancesResponse> parser() { return PARSER; @@ -1133,4 +1034,6 @@ public com.google.protobuf.Parser<ListInstancesResponse> getParserForType() { public com.google.spanner.admin.instance.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java index 41ab85f5df8..26eae91ef8a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - java.util.List<com.google.spanner.admin.instance.v1.Instance> getInstancesList(); + java.util.List<com.google.spanner.admin.instance.v1.Instance> + getInstancesList(); /** - * - * * <pre> * The list of requested instances. * </pre> @@ -44,8 +25,6 @@ public interface ListInstancesResponseOrBuilder */ com.google.spanner.admin.instance.v1.Instance getInstances(int index); /** - * - * * <pre> * The list of requested instances. * </pre> @@ -54,30 +33,25 @@ public interface ListInstancesResponseOrBuilder */ int getInstancesCount(); /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> + java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> getInstancesOrBuilderList(); /** - * - * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance instances = 1;</code> */ - com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuilder(int index); + com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstancesOrBuilder( + int index); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -85,13 +59,10 @@ public interface ListInstancesResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] @@ -99,8 +70,8 @@ public interface ListInstancesResponseOrBuilder * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java similarity index 70% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java index 1046948b1fd..d2aa7615907 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgress.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/common.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * Encapsulates progress related information for a Cloud Spanner long * running instance operations. @@ -28,51 +11,47 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.OperationProgress} */ -public final class OperationProgress extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationProgress extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.OperationProgress) OperationProgressOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationProgress.newBuilder() to construct. private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private OperationProgress() {} + private OperationProgress() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationProgress(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.CommonProto - .internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.CommonProto.internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.CommonProto - .internal_static_google_spanner_admin_instance_v1_OperationProgress_fieldAccessorTable + return com.google.spanner.admin.instance.v1.CommonProto.internal_static_google_spanner_admin_instance_v1_OperationProgress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.OperationProgress.class, - com.google.spanner.admin.instance.v1.OperationProgress.Builder.class); + com.google.spanner.admin.instance.v1.OperationProgress.class, com.google.spanner.admin.instance.v1.OperationProgress.Builder.class); } public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1; private int progressPercent_ = 0; /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @return The progressPercent. */ @java.lang.Override @@ -83,14 +62,11 @@ public int getProgressPercent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -98,14 +74,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ @java.lang.Override @@ -113,8 +86,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * * <pre> * Time the request was received. * </pre> @@ -129,15 +100,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -145,15 +113,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ @java.lang.Override @@ -161,8 +126,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -176,7 +139,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -208,13 +171,16 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -224,22 +190,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.OperationProgress)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.OperationProgress other = - (com.google.spanner.admin.instance.v1.OperationProgress) obj; + com.google.spanner.admin.instance.v1.OperationProgress other = (com.google.spanner.admin.instance.v1.OperationProgress) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,104 +236,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.OperationProgress 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.admin.instance.v1.OperationProgress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.OperationProgress parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.OperationProgress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.OperationProgress parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.OperationProgress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.OperationProgress prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.OperationProgress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Encapsulates progress related information for a Cloud Spanner long * running instance operations. @@ -373,32 +335,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.OperationProgress} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.OperationProgress) com.google.spanner.admin.instance.v1.OperationProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.CommonProto - .internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.CommonProto.internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.CommonProto - .internal_static_google_spanner_admin_instance_v1_OperationProgress_fieldAccessorTable + return com.google.spanner.admin.instance.v1.CommonProto.internal_static_google_spanner_admin_instance_v1_OperationProgress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.OperationProgress.class, - com.google.spanner.admin.instance.v1.OperationProgress.Builder.class); + com.google.spanner.admin.instance.v1.OperationProgress.class, com.google.spanner.admin.instance.v1.OperationProgress.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.OperationProgress.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.CommonProto - .internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.CommonProto.internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor; } @java.lang.Override @@ -439,11 +402,8 @@ public com.google.spanner.admin.instance.v1.OperationProgress build() { @java.lang.Override public com.google.spanner.admin.instance.v1.OperationProgress buildPartial() { - com.google.spanner.admin.instance.v1.OperationProgress result = - new com.google.spanner.admin.instance.v1.OperationProgress(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.OperationProgress result = new com.google.spanner.admin.instance.v1.OperationProgress(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -454,10 +414,14 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.OperationProgres result.progressPercent_ = progressPercent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } } @@ -465,39 +429,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.OperationProgres public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.OperationProgress) { - return mergeFrom((com.google.spanner.admin.instance.v1.OperationProgress) other); + return mergeFrom((com.google.spanner.admin.instance.v1.OperationProgress)other); } else { super.mergeFrom(other); return this; @@ -505,8 +468,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.OperationProgress other) { - if (other == com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance()) return this; if (other.getProgressPercent() != 0) { setProgressPercent(other.getProgressPercent()); } @@ -542,31 +504,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - progressPercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,20 +538,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int progressPercent_; + private int progressPercent_ ; /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @return The progressPercent. */ @java.lang.Override @@ -597,15 +555,12 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -617,15 +572,12 @@ public Builder setProgressPercent(int value) { return this; } /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -637,33 +589,24 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -674,8 +617,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * * <pre> * Time the request was received. * </pre> @@ -696,15 +637,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -715,8 +655,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * * <pre> * Time the request was received. * </pre> @@ -725,9 +663,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -740,8 +678,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Time the request was received. * </pre> @@ -759,8 +695,6 @@ public Builder clearStartTime() { return this; } /** - * - * * <pre> * Time the request was received. * </pre> @@ -773,8 +707,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Time the request was received. * </pre> @@ -785,12 +717,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * * <pre> * Time the request was received. * </pre> @@ -798,17 +729,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * <code>.google.protobuf.Timestamp start_time = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -816,35 +744,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -855,8 +774,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -878,8 +795,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -887,7 +802,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp end_time = 3;</code> */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -898,8 +814,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -909,9 +823,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -924,8 +838,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -944,8 +856,6 @@ public Builder clearEndTime() { return this; } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -959,8 +869,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -972,12 +880,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. @@ -986,24 +893,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * <code>.google.protobuf.Timestamp end_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1013,12 +917,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.OperationProgress) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.OperationProgress) private static final com.google.spanner.admin.instance.v1.OperationProgress DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.OperationProgress(); } @@ -1027,27 +931,27 @@ public static com.google.spanner.admin.instance.v1.OperationProgress getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<OperationProgress> PARSER = - new com.google.protobuf.AbstractParser<OperationProgress>() { - @java.lang.Override - public OperationProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<OperationProgress> + PARSER = new com.google.protobuf.AbstractParser<OperationProgress>() { + @java.lang.Override + public OperationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<OperationProgress> parser() { return PARSER; @@ -1062,4 +966,6 @@ public com.google.protobuf.Parser<OperationProgress> getParserForType() { public com.google.spanner.admin.instance.v1.OperationProgress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java similarity index 72% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java index 0cd1e8f90fe..267bab2a579 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/OperationProgressOrBuilder.java @@ -1,69 +1,42 @@ -/* - * 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/admin/instance/v1/common.proto package com.google.spanner.admin.instance.v1; -public interface OperationProgressOrBuilder - extends +public interface OperationProgressOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.OperationProgress) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Percent completion of the operation. * Values are between 0 and 100 inclusive. * </pre> * * <code>int32 progress_percent = 1;</code> - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * * <pre> * Time the request was received. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * * <pre> * Time the request was received. * </pre> @@ -73,34 +46,26 @@ public interface OperationProgressOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * * <pre> * If set, the time at which this operation failed or was completed * successfully. diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java similarity index 100% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java similarity index 71% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java index 503d8ca6587..7c0e67e5f61 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java @@ -1,34 +1,20 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -/** Protobuf type {@code google.spanner.admin.instance.v1.ReplicaInfo} */ -public final class ReplicaInfo extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.spanner.admin.instance.v1.ReplicaInfo} + */ +public final class ReplicaInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.ReplicaInfo) ReplicaInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReplicaInfo.newBuilder() to construct. private ReplicaInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ReplicaInfo() { location_ = ""; type_ = 0; @@ -36,28 +22,25 @@ private ReplicaInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReplicaInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ReplicaInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ReplicaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ReplicaInfo_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ReplicaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ReplicaInfo.class, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder.class); + com.google.spanner.admin.instance.v1.ReplicaInfo.class, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder.class); } /** - * - * * <pre> * Indicates the type of replica. See the [replica types * documentation](https://cloud.google.com/spanner/docs/replication#replica_types) @@ -66,10 +49,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Protobuf enum {@code google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType} */ - public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { + public enum ReplicaType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * Not specified. * </pre> @@ -78,8 +60,6 @@ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * * <pre> * Read-write replicas support both reads and writes. These replicas: * @@ -94,8 +74,6 @@ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { */ READ_WRITE(1), /** - * - * * <pre> * Read-only replicas only support reads (not writes). Read-only replicas: * @@ -109,8 +87,6 @@ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { */ READ_ONLY(2), /** - * - * * <pre> * Witness replicas don't support reads but do participate in voting to * commit writes. Witness replicas: @@ -128,8 +104,6 @@ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * Not specified. * </pre> @@ -138,8 +112,6 @@ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * Read-write replicas support both reads and writes. These replicas: * @@ -154,8 +126,6 @@ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_WRITE_VALUE = 1; /** - * - * * <pre> * Read-only replicas only support reads (not writes). Read-only replicas: * @@ -169,8 +139,6 @@ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_ONLY_VALUE = 2; /** - * - * * <pre> * Witness replicas don't support reads but do participate in voting to * commit writes. Witness replicas: @@ -185,6 +153,7 @@ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WITNESS_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -209,51 +178,50 @@ public static ReplicaType valueOf(int value) { */ public static ReplicaType forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return READ_WRITE; - case 2: - return READ_ONLY; - case 3: - return WITNESS; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return READ_WRITE; + case 2: return READ_ONLY; + case 3: return WITNESS; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<ReplicaType> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<ReplicaType> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ReplicaType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<ReplicaType>() { + public ReplicaType findValueByNumber(int number) { + return ReplicaType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<ReplicaType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<ReplicaType>() { - public ReplicaType findValueByNumber(int number) { - return ReplicaType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.spanner.admin.instance.v1.ReplicaInfo.getDescriptor().getEnumTypes().get(0); } private static final ReplicaType[] VALUES = values(); - public static ReplicaType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ReplicaType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -271,18 +239,14 @@ private ReplicaType(int value) { } public static final int LOCATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @return The location. */ @java.lang.Override @@ -291,29 +255,29 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -324,45 +288,32 @@ public com.google.protobuf.ByteString getLocationBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @return The type. */ - @java.lang.Override - public com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType getType() { - com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType result = - com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.forNumber(type_); - return result == null - ? com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType getType() { + com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType result = com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.forNumber(type_); + return result == null ? com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.UNRECOGNIZED : result; } public static final int DEFAULT_LEADER_LOCATION_FIELD_NUMBER = 3; private boolean defaultLeaderLocation_ = false; /** - * - * * <pre> * If true, this location is designated as the default leader location where * leader replicas are placed. See the [region types @@ -371,7 +322,6 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType getType() { * </pre> * * <code>bool default_leader_location = 3;</code> - * * @return The defaultLeaderLocation. */ @java.lang.Override @@ -380,7 +330,6 @@ public boolean getDefaultLeaderLocation() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,13 +341,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } - if (type_ - != com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (defaultLeaderLocation_ != false) { @@ -416,13 +364,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } - if (type_ - != com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (defaultLeaderLocation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, defaultLeaderLocation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, defaultLeaderLocation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -432,17 +380,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.ReplicaInfo)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.ReplicaInfo other = - (com.google.spanner.admin.instance.v1.ReplicaInfo) obj; + com.google.spanner.admin.instance.v1.ReplicaInfo other = (com.google.spanner.admin.instance.v1.ReplicaInfo) obj; - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; if (type_ != other.type_) return false; - if (getDefaultLeaderLocation() != other.getDefaultLeaderLocation()) return false; + if (getDefaultLeaderLocation() + != other.getDefaultLeaderLocation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -459,134 +408,135 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + DEFAULT_LEADER_LOCATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultLeaderLocation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDefaultLeaderLocation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ReplicaInfo 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.admin.instance.v1.ReplicaInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.ReplicaInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.ReplicaInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.ReplicaInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.spanner.admin.instance.v1.ReplicaInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + /** + * Protobuf type {@code google.spanner.admin.instance.v1.ReplicaInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.ReplicaInfo) com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ReplicaInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ReplicaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ReplicaInfo_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ReplicaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.ReplicaInfo.class, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder.class); + com.google.spanner.admin.instance.v1.ReplicaInfo.class, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.ReplicaInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_ReplicaInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_ReplicaInfo_descriptor; } @java.lang.Override @@ -619,11 +569,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo build() { @java.lang.Override public com.google.spanner.admin.instance.v1.ReplicaInfo buildPartial() { - com.google.spanner.admin.instance.v1.ReplicaInfo result = - new com.google.spanner.admin.instance.v1.ReplicaInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.ReplicaInfo result = new com.google.spanner.admin.instance.v1.ReplicaInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -645,39 +592,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.ReplicaInfo resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.ReplicaInfo) { - return mergeFrom((com.google.spanner.admin.instance.v1.ReplicaInfo) other); + return mergeFrom((com.google.spanner.admin.instance.v1.ReplicaInfo)other); } else { super.mergeFrom(other); return this; @@ -685,8 +631,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.ReplicaInfo other) { - if (other == com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; bitField0_ |= 0x00000001; @@ -724,31 +669,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - defaultLeaderLocation_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + defaultLeaderLocation_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,25 +699,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object location_ = ""; /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -785,21 +723,20 @@ public java.lang.String getLocation() { } } /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -807,35 +744,28 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -845,21 +775,17 @@ public Builder clearLocation() { return this; } /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000001; @@ -869,29 +795,22 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -902,33 +821,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @return The type. */ @java.lang.Override public com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType getType() { - com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType result = - com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.forNumber(type_); - return result == null - ? com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.UNRECOGNIZED - : result; + com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType result = com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.forNumber(type_); + return result == null ? com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.UNRECOGNIZED : result; } /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @param value The type to set. * @return This builder for chaining. */ @@ -942,14 +852,11 @@ public Builder setType(com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaT return this; } /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @return This builder for chaining. */ public Builder clearType() { @@ -959,10 +866,8 @@ public Builder clearType() { return this; } - private boolean defaultLeaderLocation_; + private boolean defaultLeaderLocation_ ; /** - * - * * <pre> * If true, this location is designated as the default leader location where * leader replicas are placed. See the [region types @@ -971,7 +876,6 @@ public Builder clearType() { * </pre> * * <code>bool default_leader_location = 3;</code> - * * @return The defaultLeaderLocation. */ @java.lang.Override @@ -979,8 +883,6 @@ public boolean getDefaultLeaderLocation() { return defaultLeaderLocation_; } /** - * - * * <pre> * If true, this location is designated as the default leader location where * leader replicas are placed. See the [region types @@ -989,7 +891,6 @@ public boolean getDefaultLeaderLocation() { * </pre> * * <code>bool default_leader_location = 3;</code> - * * @param value The defaultLeaderLocation to set. * @return This builder for chaining. */ @@ -1001,8 +902,6 @@ public Builder setDefaultLeaderLocation(boolean value) { return this; } /** - * - * * <pre> * If true, this location is designated as the default leader location where * leader replicas are placed. See the [region types @@ -1011,7 +910,6 @@ public Builder setDefaultLeaderLocation(boolean value) { * </pre> * * <code>bool default_leader_location = 3;</code> - * * @return This builder for chaining. */ public Builder clearDefaultLeaderLocation() { @@ -1020,9 +918,9 @@ public Builder clearDefaultLeaderLocation() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1032,12 +930,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.ReplicaInfo) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ReplicaInfo) private static final com.google.spanner.admin.instance.v1.ReplicaInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.ReplicaInfo(); } @@ -1046,27 +944,27 @@ public static com.google.spanner.admin.instance.v1.ReplicaInfo getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ReplicaInfo> PARSER = - new com.google.protobuf.AbstractParser<ReplicaInfo>() { - @java.lang.Override - public ReplicaInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ReplicaInfo> + PARSER = new com.google.protobuf.AbstractParser<ReplicaInfo>() { + @java.lang.Override + public ReplicaInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ReplicaInfo> parser() { return PARSER; @@ -1081,4 +979,6 @@ public com.google.protobuf.Parser<ReplicaInfo> getParserForType() { public com.google.spanner.admin.instance.v1.ReplicaInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java similarity index 67% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java index e166098b1ac..1fbda309525 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java @@ -1,81 +1,52 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface ReplicaInfoOrBuilder - extends +public interface ReplicaInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.ReplicaInfo) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @return The location. */ java.lang.String getLocation(); /** - * - * * <pre> * The location of the serving resources, e.g. "us-central1". * </pre> * * <code>string location = 1;</code> - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * * <pre> * The type of replica. * </pre> * * <code>.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;</code> - * * @return The type. */ com.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType getType(); /** - * - * * <pre> * If true, this location is designated as the default leader location where * leader replicas are placed. See the [region types @@ -84,7 +55,6 @@ public interface ReplicaInfoOrBuilder * </pre> * * <code>bool default_leader_location = 3;</code> - * * @return The defaultLeaderLocation. */ boolean getDefaultLeaderLocation(); diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java new file mode 100644 index 00000000000..482bf0d4c55 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java @@ -0,0 +1,583 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/instance/v1/spanner_instance_admin.proto + +package com.google.spanner.admin.instance.v1; + +public final class SpannerInstanceAdminProto { + private SpannerInstanceAdminProto() {} + 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_admin_instance_v1_ReplicaInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_ReplicaInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_InstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_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/admin/instance/v1/spann" + + "er_instance_admin.proto\022 google.spanner." + + "admin.instance.v1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032\036google/iam/v1/iam_policy.p" + + "roto\032\032google/iam/v1/policy.proto\032#google" + + "/longrunning/operations.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\032-google/spanner/admin/instance/v1/" + + "common.proto\"\332\001\n\013ReplicaInfo\022\020\n\010location" + + "\030\001 \001(\t\022G\n\004type\030\002 \001(\01629.google.spanner.ad" + + "min.instance.v1.ReplicaInfo.ReplicaType\022" + + "\037\n\027default_leader_location\030\003 \001(\010\"O\n\013Repl" + + "icaType\022\024\n\020TYPE_UNSPECIFIED\020\000\022\016\n\nREAD_WR" + + "ITE\020\001\022\r\n\tREAD_ONLY\020\002\022\013\n\007WITNESS\020\003\"\302\006\n\016In" + + "stanceConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_na" + + "me\030\002 \001(\t\022P\n\013config_type\030\005 \001(\01625.google.s" + + "panner.admin.instance.v1.InstanceConfig." + + "TypeB\004\342A\001\003\022?\n\010replicas\030\003 \003(\0132-.google.sp" + + "anner.admin.instance.v1.ReplicaInfo\022N\n\021o" + + "ptional_replicas\030\006 \003(\0132-.google.spanner." + + "admin.instance.v1.ReplicaInfoB\004\342A\001\003\022?\n\013b" + + "ase_config\030\007 \001(\tB*\372A\'\n%spanner.googleapi" + + "s.com/InstanceConfig\022L\n\006labels\030\010 \003(\0132<.g" + + "oogle.spanner.admin.instance.v1.Instance" + + "Config.LabelsEntry\022\014\n\004etag\030\t \001(\t\022\026\n\016lead" + + "er_options\030\004 \003(\t\022\031\n\013reconciling\030\n \001(\010B\004\342" + + "A\001\003\022K\n\005state\030\013 \001(\01626.google.spanner.admi" + + "n.instance.v1.InstanceConfig.StateB\004\342A\001\003" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"B\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n" + + "\016GOOGLE_MANAGED\020\001\022\020\n\014USER_MANAGED\020\002\"7\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020" + + "\001\022\t\n\005READY\020\002:`\352A]\n%spanner.googleapis.co" + + "m/InstanceConfig\0224projects/{project}/ins" + + "tanceConfigs/{instance_config}\"\367\003\n\021Autos" + + "calingConfig\022g\n\022autoscaling_limits\030\001 \001(\013" + + "2E.google.spanner.admin.instance.v1.Auto" + + "scalingConfig.AutoscalingLimitsB\004\342A\001\002\022i\n" + + "\023autoscaling_targets\030\002 \001(\0132F.google.span" + + "ner.admin.instance.v1.AutoscalingConfig." + + "AutoscalingTargetsB\004\342A\001\002\032\227\001\n\021Autoscaling" + + "Limits\022\023\n\tmin_nodes\030\001 \001(\005H\000\022\036\n\024min_proce" + + "ssing_units\030\002 \001(\005H\000\022\023\n\tmax_nodes\030\003 \001(\005H\001" + + "\022\036\n\024max_processing_units\030\004 \001(\005H\001B\013\n\tmin_" + + "limitB\013\n\tmax_limit\032t\n\022AutoscalingTargets" + + "\0223\n%high_priority_cpu_utilization_percen" + + "t\030\001 \001(\005B\004\342A\001\002\022)\n\033storage_utilization_per" + + "cent\030\002 \001(\005B\004\342A\001\002\"\312\005\n\010Instance\022\022\n\004name\030\001 " + + "\001(\tB\004\342A\001\002\022>\n\006config\030\002 \001(\tB.\342A\001\002\372A\'\n%span" + + "ner.googleapis.com/InstanceConfig\022\032\n\014dis" + + "play_name\030\003 \001(\tB\004\342A\001\002\022\022\n\nnode_count\030\005 \001(" + + "\005\022\030\n\020processing_units\030\t \001(\005\022U\n\022autoscali" + + "ng_config\030\021 \001(\01323.google.spanner.admin.i" + + "nstance.v1.AutoscalingConfigB\004\342A\001\001\022E\n\005st" + + "ate\030\006 \001(\01620.google.spanner.admin.instanc" + + "e.v1.Instance.StateB\004\342A\001\003\022F\n\006labels\030\007 \003(" + + "\01326.google.spanner.admin.instance.v1.Ins" + + "tance.LabelsEntry\022\025\n\rendpoint_uris\030\010 \003(\t" + + "\0225\n\013create_time\030\013 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\0225\n\013update_time\030\014 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\004\342A\001\003\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATIN" + + "G\020\001\022\t\n\005READY\020\002:M\352AJ\n\037spanner.googleapis." + + "com/Instance\022\'projects/{project}/instanc" + + "es/{instance}\"\211\001\n\032ListInstanceConfigsReq" + + "uest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudreso" + + "urcemanager.googleapis.com/Project\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\033Li" + + "stInstanceConfigsResponse\022J\n\020instance_co" + + "nfigs\030\001 \003(\01320.google.spanner.admin.insta" + + "nce.v1.InstanceConfig\022\027\n\017next_page_token" + + "\030\002 \001(\t\"X\n\030GetInstanceConfigRequest\022<\n\004na" + + "me\030\001 \001(\tB.\342A\001\002\372A\'\n%spanner.googleapis.co" + + "m/InstanceConfig\"\355\001\n\033CreateInstanceConfi" + + "gRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022 " + + "\n\022instance_config_id\030\002 \001(\tB\004\342A\001\002\022O\n\017inst" + + "ance_config\030\003 \001(\01320.google.spanner.admin" + + ".instance.v1.InstanceConfigB\004\342A\001\002\022\025\n\rval" + + "idate_only\030\004 \001(\010\"\274\001\n\033UpdateInstanceConfi" + + "gRequest\022O\n\017instance_config\030\001 \001(\01320.goog" + + "le.spanner.admin.instance.v1.InstanceCon" + + "figB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\004\342A\001\002\022\025\n\rvalidate_onl" + + "y\030\003 \001(\010\"\200\001\n\033DeleteInstanceConfigRequest\022" + + "<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%spanner.googleap" + + "is.com/InstanceConfig\022\014\n\004etag\030\002 \001(\t\022\025\n\rv" + + "alidate_only\030\003 \001(\010\"\242\001\n#ListInstanceConfi" + + "gOperationsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002" + + "\372A-\n+cloudresourcemanager.googleapis.com" + + "/Project\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 " + + "\001(\005\022\022\n\npage_token\030\004 \001(\t\"r\n$ListInstanceC" + + "onfigOperationsResponse\0221\n\noperations\030\001 " + + "\003(\0132\035.google.longrunning.Operation\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"|\n\022GetInstanceReques" + + "t\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.google" + + "apis.com/Instance\022.\n\nfield_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMask\"\274\001\n\025CreateInst" + + "anceRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cl" + + "oudresourcemanager.googleapis.com/Projec" + + "t\022\031\n\013instance_id\030\002 \001(\tB\004\342A\001\002\022B\n\010instance" + + "\030\003 \001(\0132*.google.spanner.admin.instance.v" + + "1.InstanceB\004\342A\001\002\"\223\001\n\024ListInstancesReques" + + "t\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourc" + + "emanager.googleapis.com/Project\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter" + + "\030\004 \001(\t\"o\n\025ListInstancesResponse\022=\n\tinsta" + + "nces\030\001 \003(\0132*.google.spanner.admin.instan" + + "ce.v1.Instance\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\221\001\n\025UpdateInstanceRequest\022B\n\010instance\030\001 " + + "\001(\0132*.google.spanner.admin.instance.v1.I" + + "nstanceB\004\342A\001\002\0224\n\nfield_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\004\342A\001\002\"O\n\025DeleteIns" + + "tanceRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037spa" + + "nner.googleapis.com/Instance\"\345\001\n\026CreateI" + + "nstanceMetadata\022<\n\010instance\030\001 \001(\0132*.goog" + + "le.spanner.admin.instance.v1.Instance\022.\n" + + "\nstart_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022/\n\013cancel_time\030\003 \001(\0132\032.google.prot" + + "obuf.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\345\001\n\026UpdateInstanceM" + + "etadata\022<\n\010instance\030\001 \001(\0132*.google.spann" + + "er.admin.instance.v1.Instance\022.\n\nstart_t" + + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013cancel_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\004 \001(\0132\032.google.protob" + + "uf.Timestamp\"\341\001\n\034CreateInstanceConfigMet" + + "adata\022I\n\017instance_config\030\001 \001(\01320.google." + + "spanner.admin.instance.v1.InstanceConfig" + + "\022E\n\010progress\030\002 \001(\01323.google.spanner.admi" + + "n.instance.v1.OperationProgress\022/\n\013cance" + + "l_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\"\341\001\n\034UpdateInstanceConfigMetadata\022I\n\017ins" + + "tance_config\030\001 \001(\01320.google.spanner.admi" + + "n.instance.v1.InstanceConfig\022E\n\010progress" + + "\030\002 \001(\01323.google.spanner.admin.instance.v" + + "1.OperationProgress\022/\n\013cancel_time\030\003 \001(\013" + + "2\032.google.protobuf.Timestamp2\362\030\n\rInstanc" + + "eAdmin\022\314\001\n\023ListInstanceConfigs\022<.google." + + "spanner.admin.instance.v1.ListInstanceCo" + + "nfigsRequest\032=.google.spanner.admin.inst" + + "ance.v1.ListInstanceConfigsResponse\"8\332A\006" + + "parent\202\323\344\223\002)\022\'/v1/{parent=projects/*}/in" + + "stanceConfigs\022\271\001\n\021GetInstanceConfig\022:.go" + + "ogle.spanner.admin.instance.v1.GetInstan" + + "ceConfigRequest\0320.google.spanner.admin.i" + + "nstance.v1.InstanceConfig\"6\332A\004name\202\323\344\223\002)" + + "\022\'/v1/{name=projects/*/instanceConfigs/*" + + "}\022\310\002\n\024CreateInstanceConfig\022=.google.span" + + "ner.admin.instance.v1.CreateInstanceConf" + + "igRequest\032\035.google.longrunning.Operation" + + "\"\321\001\312Ap\n/google.spanner.admin.instance.v1" + + ".InstanceConfig\022=google.spanner.admin.in" + + "stance.v1.CreateInstanceConfigMetadata\332A" + + ")parent,instance_config,instance_config_" + + "id\202\323\344\223\002,\"\'/v1/{parent=projects/*}/instan" + + "ceConfigs:\001*\022\312\002\n\024UpdateInstanceConfig\022=." + + "google.spanner.admin.instance.v1.UpdateI" + + "nstanceConfigRequest\032\035.google.longrunnin" + + "g.Operation\"\323\001\312Ap\n/google.spanner.admin." + + "instance.v1.InstanceConfig\022=google.spann" + + "er.admin.instance.v1.UpdateInstanceConfi" + + "gMetadata\332A\033instance_config,update_mask\202" + + "\323\344\223\002<27/v1/{instance_config.name=project" + + "s/*/instanceConfigs/*}:\001*\022\245\001\n\024DeleteInst" + + "anceConfig\022=.google.spanner.admin.instan" + + "ce.v1.DeleteInstanceConfigRequest\032\026.goog" + + "le.protobuf.Empty\"6\332A\004name\202\323\344\223\002)*\'/v1/{n" + + "ame=projects/*/instanceConfigs/*}\022\360\001\n\034Li" + + "stInstanceConfigOperations\022E.google.span" + + "ner.admin.instance.v1.ListInstanceConfig" + + "OperationsRequest\032F.google.spanner.admin" + + ".instance.v1.ListInstanceConfigOperation" + + "sResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=" + + "projects/*}/instanceConfigOperations\022\264\001\n" + + "\rListInstances\0226.google.spanner.admin.in" + + "stance.v1.ListInstancesRequest\0327.google." + + "spanner.admin.instance.v1.ListInstancesR" + + "esponse\"2\332A\006parent\202\323\344\223\002#\022!/v1/{parent=pr" + + "ojects/*}/instances\022\241\001\n\013GetInstance\0224.go" + + "ogle.spanner.admin.instance.v1.GetInstan" + + "ceRequest\032*.google.spanner.admin.instanc" + + "e.v1.Instance\"0\332A\004name\202\323\344\223\002#\022!/v1/{name=" + + "projects/*/instances/*}\022\234\002\n\016CreateInstan" + + "ce\0227.google.spanner.admin.instance.v1.Cr" + + "eateInstanceRequest\032\035.google.longrunning" + + ".Operation\"\261\001\312Ad\n)google.spanner.admin.i" + + "nstance.v1.Instance\0227google.spanner.admi" + + "n.instance.v1.CreateInstanceMetadata\332A\033p" + + "arent,instance_id,instance\202\323\344\223\002&\"!/v1/{p" + + "arent=projects/*}/instances:\001*\022\235\002\n\016Updat" + + "eInstance\0227.google.spanner.admin.instanc" + + "e.v1.UpdateInstanceRequest\032\035.google.long" + + "running.Operation\"\262\001\312Ad\n)google.spanner." + + "admin.instance.v1.Instance\0227google.spann" + + "er.admin.instance.v1.UpdateInstanceMetad" + + "ata\332A\023instance,field_mask\202\323\344\223\002/2*/v1/{in" + + "stance.name=projects/*/instances/*}:\001*\022\223" + + "\001\n\016DeleteInstance\0227.google.spanner.admin" + + ".instance.v1.DeleteInstanceRequest\032\026.goo" + + "gle.protobuf.Empty\"0\332A\004name\202\323\344\223\002#*!/v1/{" + + "name=projects/*/instances/*}\022\232\001\n\014SetIamP" + + "olicy\022\".google.iam.v1.SetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"O\332A\017resource,po" + + "licy\202\323\344\223\0027\"2/v1/{resource=projects/*/ins" + + "tances/*}:setIamPolicy:\001*\022\223\001\n\014GetIamPoli" + + "cy\022\".google.iam.v1.GetIamPolicyRequest\032\025" + + ".google.iam.v1.Policy\"H\332A\010resource\202\323\344\223\0027" + + "\"2/v1/{resource=projects/*/instances/*}:" + + "getIamPolicy:\001*\022\305\001\n\022TestIamPermissions\022(" + + ".google.iam.v1.TestIamPermissionsRequest" + + "\032).google.iam.v1.TestIamPermissionsRespo" + + "nse\"Z\332A\024resource,permissions\202\323\344\223\002=\"8/v1/" + + "{resource=projects/*/instances/*}:testIa" + + "mPermissions:\001*\032x\312A\026spanner.googleapis.c" + + "om\322A\\https://www.googleapis.com/auth/clo" + + "ud-platform,https://www.googleapis.com/a" + + "uth/spanner.adminB\213\002\n$com.google.spanner" + + ".admin.instance.v1B\031SpannerInstanceAdmin" + + "ProtoP\001ZFcloud.google.com/go/spanner/adm" + + "in/instance/apiv1/instancepb;instancepb\252" + + "\002&Google.Cloud.Spanner.Admin.Instance.V1" + + "\312\002&Google\\Cloud\\Spanner\\Admin\\Instance\\V" + + "1\352\002+Google::Cloud::Spanner::Admin::Insta" + + "nce::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.spanner.admin.instance.v1.CommonProto.getDescriptor(), + }); + internal_static_google_spanner_admin_instance_v1_ReplicaInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_spanner_admin_instance_v1_ReplicaInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_ReplicaInfo_descriptor, + new java.lang.String[] { "Location", "Type", "DefaultLeaderLocation", }); + internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_spanner_admin_instance_v1_InstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "ConfigType", "Replicas", "OptionalReplicas", "BaseConfig", "Labels", "Etag", "LeaderOptions", "Reconciling", "State", }); + internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor = + internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor.getNestedTypes().get(0); + internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor, + new java.lang.String[] { "AutoscalingLimits", "AutoscalingTargets", }); + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor = + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor.getNestedTypes().get(0); + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingLimits_descriptor, + new java.lang.String[] { "MinNodes", "MinProcessingUnits", "MaxNodes", "MaxProcessingUnits", "MinLimit", "MaxLimit", }); + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor = + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_descriptor.getNestedTypes().get(1); + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_AutoscalingConfig_AutoscalingTargets_descriptor, + new java.lang.String[] { "HighPriorityCpuUtilizationPercent", "StorageUtilizationPercent", }); + internal_static_google_spanner_admin_instance_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_spanner_admin_instance_v1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_Instance_descriptor, + new java.lang.String[] { "Name", "Config", "DisplayName", "NodeCount", "ProcessingUnits", "AutoscalingConfig", "State", "Labels", "EndpointUris", "CreateTime", "UpdateTime", }); + internal_static_google_spanner_admin_instance_v1_Instance_LabelsEntry_descriptor = + internal_static_google_spanner_admin_instance_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_spanner_admin_instance_v1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigsResponse_descriptor, + new java.lang.String[] { "InstanceConfigs", "NextPageToken", }); + internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_GetInstanceConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceConfigId", "InstanceConfig", "ValidateOnly", }); + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor, + new java.lang.String[] { "InstanceConfig", "UpdateMask", "ValidateOnly", }); + internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_DeleteInstanceConfigRequest_descriptor, + new java.lang.String[] { "Name", "Etag", "ValidateOnly", }); + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_ListInstanceConfigOperationsResponse_descriptor, + new java.lang.String[] { "Operations", "NextPageToken", }); + internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", "FieldMask", }); + internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", }); + internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "Instance", "FieldMask", }); + internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_CreateInstanceMetadata_descriptor, + new java.lang.String[] { "Instance", "StartTime", "CancelTime", "EndTime", }); + internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor, + new java.lang.String[] { "Instance", "StartTime", "CancelTime", "EndTime", }); + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor, + new java.lang.String[] { "InstanceConfig", "Progress", "CancelTime", }); + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor, + new java.lang.String[] { "InstanceConfig", "Progress", "CancelTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.spanner.admin.instance.v1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java similarity index 68% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java index 9a271d701a4..b46591265fe 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * Metadata type for the operation returned by * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig]. @@ -28,50 +11,46 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata} */ -public final class UpdateInstanceConfigMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceConfigMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) UpdateInstanceConfigMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceConfigMetadata.newBuilder() to construct. private UpdateInstanceConfigMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private UpdateInstanceConfigMetadata() {} + private UpdateInstanceConfigMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceConfigMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.class, - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.Builder.class); + com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.class, com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.Builder.class); } public static final int INSTANCE_CONFIG_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_; /** - * - * * <pre> * The desired instance config after updating. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @return Whether the instanceConfig field is set. */ @java.lang.Override @@ -79,25 +58,18 @@ public boolean hasInstanceConfig() { return instanceConfig_ != null; } /** - * - * * <pre> * The desired instance config after updating. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } /** - * - * * <pre> * The desired instance config after updating. * </pre> @@ -106,16 +78,12 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder() { - return instanceConfig_ == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() - : instanceConfig_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } public static final int PROGRESS_FIELD_NUMBER = 2; private com.google.spanner.admin.instance.v1.OperationProgress progress_; /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -123,7 +91,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ @java.lang.Override @@ -131,8 +98,6 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -140,18 +105,13 @@ public boolean hasProgress() { * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ @java.lang.Override public com.google.spanner.admin.instance.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() : progress_; } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -162,22 +122,17 @@ public com.google.spanner.admin.instance.v1.OperationProgress getProgress() { */ @java.lang.Override public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() : progress_; } public static final int CANCEL_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp cancelTime_; /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ @java.lang.Override @@ -185,14 +140,11 @@ public boolean hasCancelTime() { return cancelTime_ != null; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ @java.lang.Override @@ -200,8 +152,6 @@ public com.google.protobuf.Timestamp getCancelTime() { return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -214,7 +164,6 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (instanceConfig_ != null) { output.writeMessage(1, getInstanceConfig()); } @@ -246,13 +196,16 @@ public int getSerializedSize() { size = 0; if (instanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInstanceConfig()); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgress()); } if (cancelTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCancelTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -262,25 +215,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata other = - (com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) obj; + com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata other = (com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) obj; if (hasInstanceConfig() != other.hasInstanceConfig()) return false; if (hasInstanceConfig()) { - if (!getInstanceConfig().equals(other.getInstanceConfig())) return false; + if (!getInstanceConfig() + .equals(other.getInstanceConfig())) return false; } if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (hasCancelTime() != other.hasCancelTime()) return false; if (hasCancelTime()) { - if (!getCancelTime().equals(other.getCancelTime())) return false; + if (!getCancelTime() + .equals(other.getCancelTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -311,105 +266,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata 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.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata - 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.admin.instance.v1.UpdateInstanceConfigMetadata 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.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the operation returned by * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig]. @@ -417,33 +365,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.class, - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.Builder.class); + com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.class, com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.Builder.class); } - // Construct using - // com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.newBuilder() - private Builder() {} + // Construct using com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -467,14 +415,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.getDefaultInstance(); } @@ -489,27 +436,28 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata build() @java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata buildPartial() { - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata result = - new com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata result = new com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.instanceConfig_ = - instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + result.instanceConfig_ = instanceConfigBuilder_ == null + ? instanceConfig_ + : instanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + result.cancelTime_ = cancelTimeBuilder_ == null + ? cancelTime_ + : cancelTimeBuilder_.build(); } } @@ -517,50 +465,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) { - return mergeFrom((com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) other); + return mergeFrom((com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata other) { - if (other - == com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata other) { + if (other == com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.getDefaultInstance()) return this; if (other.hasInstanceConfig()) { mergeInstanceConfig(other.getInstanceConfig()); } @@ -596,31 +540,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCancelTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCancelTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -630,52 +576,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_; + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> instanceConfigBuilder_; /** - * - * * <pre> * The desired instance config after updating. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @return Whether the instanceConfig field is set. */ public boolean hasInstanceConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The desired instance config after updating. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } else { return instanceConfigBuilder_.getMessage(); } } /** - * - * * <pre> * The desired instance config after updating. * </pre> @@ -696,8 +628,6 @@ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceCo return this; } /** - * - * * <pre> * The desired instance config after updating. * </pre> @@ -716,8 +646,6 @@ public Builder setInstanceConfig( return this; } /** - * - * * <pre> * The desired instance config after updating. * </pre> @@ -726,10 +654,9 @@ public Builder setInstanceConfig( */ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.InstanceConfig value) { if (instanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && instanceConfig_ != null - && instanceConfig_ - != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + instanceConfig_ != null && + instanceConfig_ != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) { getInstanceConfigBuilder().mergeFrom(value); } else { instanceConfig_ = value; @@ -742,8 +669,6 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance return this; } /** - * - * * <pre> * The desired instance config after updating. * </pre> @@ -761,8 +686,6 @@ public Builder clearInstanceConfig() { return this; } /** - * - * * <pre> * The desired instance config after updating. * </pre> @@ -775,27 +698,21 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo return getInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * The desired instance config after updating. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder - getInstanceConfigOrBuilder() { + 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_; + return instanceConfig_ == null ? + com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } } /** - * - * * <pre> * The desired instance config after updating. * </pre> @@ -803,17 +720,14 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> */ 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> + 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()); + 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_; @@ -821,13 +735,8 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo private com.google.spanner.admin.instance.v1.OperationProgress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.OperationProgress, - com.google.spanner.admin.instance.v1.OperationProgress.Builder, - com.google.spanner.admin.instance.v1.OperationProgressOrBuilder> - progressBuilder_; + com.google.spanner.admin.instance.v1.OperationProgress, com.google.spanner.admin.instance.v1.OperationProgress.Builder, com.google.spanner.admin.instance.v1.OperationProgressOrBuilder> progressBuilder_; /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -835,15 +744,12 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -851,21 +757,16 @@ public boolean hasProgress() { * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ public com.google.spanner.admin.instance.v1.OperationProgress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -888,8 +789,6 @@ public Builder setProgress(com.google.spanner.admin.instance.v1.OperationProgres return this; } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -910,8 +809,6 @@ public Builder setProgress( return this; } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -922,10 +819,9 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.spanner.admin.instance.v1.OperationProgress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && progress_ != null - && progress_ - != com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + progress_ != null && + progress_ != com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -938,8 +834,6 @@ public Builder mergeProgress(com.google.spanner.admin.instance.v1.OperationProgr return this; } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -959,8 +853,6 @@ public Builder clearProgress() { return this; } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -975,8 +867,6 @@ public com.google.spanner.admin.instance.v1.OperationProgress.Builder getProgres return getProgressFieldBuilder().getBuilder(); } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -989,14 +879,11 @@ public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgre if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.spanner.admin.instance.v1.OperationProgress.getDefaultInstance() : progress_; } } /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -1006,17 +893,14 @@ public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgre * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.OperationProgress, - com.google.spanner.admin.instance.v1.OperationProgress.Builder, - com.google.spanner.admin.instance.v1.OperationProgressOrBuilder> + com.google.spanner.admin.instance.v1.OperationProgress, com.google.spanner.admin.instance.v1.OperationProgress.Builder, com.google.spanner.admin.instance.v1.OperationProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.admin.instance.v1.OperationProgress, - com.google.spanner.admin.instance.v1.OperationProgress.Builder, - com.google.spanner.admin.instance.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.instance.v1.OperationProgress, com.google.spanner.admin.instance.v1.OperationProgress.Builder, com.google.spanner.admin.instance.v1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; @@ -1024,47 +908,34 @@ public com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgre private com.google.protobuf.Timestamp cancelTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cancelTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelTimeBuilder_; /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ public boolean hasCancelTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ public com.google.protobuf.Timestamp getCancelTime() { if (cancelTimeBuilder_ == null) { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } else { return cancelTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1085,15 +956,14 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ - public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCancelTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelTimeBuilder_ == null) { cancelTime_ = builderForValue.build(); } else { @@ -1104,8 +974,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1114,9 +982,9 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { if (cancelTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cancelTime_ != null - && cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cancelTime_ != null && + cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelTimeBuilder().mergeFrom(value); } else { cancelTime_ = value; @@ -1129,8 +997,6 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1148,8 +1014,6 @@ public Builder clearCancelTime() { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1162,8 +1026,6 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() { return getCancelTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1174,14 +1036,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { if (cancelTimeBuilder_ != null) { return cancelTimeBuilder_.getMessageOrBuilder(); } else { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } } /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> @@ -1189,24 +1048,21 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelTimeFieldBuilder() { if (cancelTimeBuilder_ == null) { - cancelTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCancelTime(), getParentForChildren(), isClean()); + cancelTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCancelTime(), + getParentForChildren(), + isClean()); cancelTime_ = null; } return cancelTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,43 +1072,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) - private static final com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata(); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateInstanceConfigMetadata> PARSER = - new com.google.protobuf.AbstractParser<UpdateInstanceConfigMetadata>() { - @java.lang.Override - public UpdateInstanceConfigMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateInstanceConfigMetadata> + PARSER = new com.google.protobuf.AbstractParser<UpdateInstanceConfigMetadata>() { + @java.lang.Override + public UpdateInstanceConfigMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateInstanceConfigMetadata> parser() { return PARSER; @@ -1264,8 +1118,9 @@ public com.google.protobuf.Parser<UpdateInstanceConfigMetadata> getParserForType } @java.lang.Override - public com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java similarity index 78% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java index 8f52d338583..fe8c4ba9c60 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface UpdateInstanceConfigMetadataOrBuilder - extends +public interface UpdateInstanceConfigMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The desired instance config after updating. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @return Whether the instanceConfig field is set. */ boolean hasInstanceConfig(); /** - * - * * <pre> * The desired instance config after updating. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1;</code> - * * @return The instanceConfig. */ com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig(); /** - * - * * <pre> * The desired instance config after updating. * </pre> @@ -59,8 +35,6 @@ public interface UpdateInstanceConfigMetadataOrBuilder com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder(); /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -68,13 +42,10 @@ public interface UpdateInstanceConfigMetadataOrBuilder * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -82,13 +53,10 @@ public interface UpdateInstanceConfigMetadataOrBuilder * </pre> * * <code>.google.spanner.admin.instance.v1.OperationProgress progress = 2;</code> - * * @return The progress. */ com.google.spanner.admin.instance.v1.OperationProgress getProgress(); /** - * - * * <pre> * The progress of the * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig] @@ -100,32 +68,24 @@ public interface UpdateInstanceConfigMetadataOrBuilder com.google.spanner.admin.instance.v1.OperationProgressOrBuilder getProgressOrBuilder(); /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ boolean hasCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ com.google.protobuf.Timestamp getCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. * </pre> diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java similarity index 70% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java index ab6d545bf53..28cb557336d 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [UpdateInstanceConfigRequest][InstanceAdmin.UpdateInstanceConfigRequest]. @@ -28,44 +11,41 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceConfigRequest} */ -public final class UpdateInstanceConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) UpdateInstanceConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceConfigRequest.newBuilder() to construct. private UpdateInstanceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private UpdateInstanceConfigRequest() {} + private UpdateInstanceConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.class, - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.Builder.class); + com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.class, com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.Builder.class); } public static final int INSTANCE_CONFIG_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_; /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -75,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instanceConfig field is set. */ @java.lang.Override @@ -86,8 +63,6 @@ public boolean hasInstanceConfig() { return instanceConfig_ != null; } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -97,21 +72,14 @@ public boolean hasInstanceConfig() { * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -121,22 +89,16 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder() { - return instanceConfig_ == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() - : instanceConfig_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -146,9 +108,7 @@ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceC * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ @java.lang.Override @@ -156,8 +116,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -167,9 +125,7 @@ public boolean hasUpdateMask() { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ @java.lang.Override @@ -177,8 +133,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -188,8 +142,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -199,15 +152,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @return The validateOnly. */ @java.lang.Override @@ -216,7 +166,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (instanceConfig_ != null) { output.writeMessage(1, getInstanceConfig()); } @@ -248,13 +198,16 @@ public int getSerializedSize() { size = 0; if (instanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInstanceConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,23 +217,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest other = - (com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) obj; + com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest other = (com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) obj; if (hasInstanceConfig() != other.hasInstanceConfig()) return false; if (hasInstanceConfig()) { - if (!getInstanceConfig().equals(other.getInstanceConfig())) return false; + if (!getInstanceConfig() + .equals(other.getInstanceConfig())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,111 +256,106 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest 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.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [UpdateInstanceConfigRequest][InstanceAdmin.UpdateInstanceConfigRequest]. @@ -413,32 +363,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.class, - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.Builder.class); + com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.class, com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -458,14 +409,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigRequest_descriptor; } @java.lang.Override - public com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.getDefaultInstance(); } @@ -480,24 +430,23 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest build() @java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest buildPartial() { - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest result = - new com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest result = new com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest result) { + private void buildPartial0(com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.instanceConfig_ = - instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + result.instanceConfig_ = instanceConfigBuilder_ == null + ? instanceConfig_ + : instanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -508,50 +457,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest other) { - if (other - == com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest other) { + if (other == com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.getDefaultInstance()) return this; if (other.hasInstanceConfig()) { mergeInstanceConfig(other.getInstanceConfig()); } @@ -587,31 +532,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,18 +566,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_; + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> instanceConfigBuilder_; /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -642,18 +581,13 @@ public Builder mergeFrom( * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instanceConfig field is set. */ public boolean hasInstanceConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -663,24 +597,17 @@ public boolean hasInstanceConfig() { * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } else { return instanceConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -690,9 +617,7 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceConfig value) { if (instanceConfigBuilder_ == null) { @@ -708,8 +633,6 @@ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceCo return this; } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -719,9 +642,7 @@ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceCo * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setInstanceConfig( com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { @@ -735,8 +656,6 @@ public Builder setInstanceConfig( return this; } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -746,16 +665,13 @@ public Builder setInstanceConfig( * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.InstanceConfig value) { if (instanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && instanceConfig_ != null - && instanceConfig_ - != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + instanceConfig_ != null && + instanceConfig_ != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) { getInstanceConfigBuilder().mergeFrom(value); } else { instanceConfig_ = value; @@ -768,8 +684,6 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance return this; } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -779,9 +693,7 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -794,8 +706,6 @@ public Builder clearInstanceConfig() { return this; } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -805,9 +715,7 @@ public Builder clearInstanceConfig() { * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceConfigBuilder() { bitField0_ |= 0x00000001; @@ -815,8 +723,6 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo return getInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -826,23 +732,17 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder - getInstanceConfigOrBuilder() { + 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_; + return instanceConfig_ == null ? + com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } } /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -852,22 +752,17 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ 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> + 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()); + 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_; @@ -875,13 +770,8 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -891,17 +781,13 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -911,23 +797,17 @@ public boolean hasUpdateMask() { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -937,8 +817,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -954,8 +833,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -965,10 +842,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -979,8 +856,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -990,14 +865,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1010,8 +884,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -1021,8 +893,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1035,8 +906,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -1046,8 +915,7 @@ public Builder clearUpdateMask() { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1055,8 +923,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -1066,21 +932,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -1090,37 +952,30 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @return The validateOnly. */ @java.lang.Override @@ -1128,15 +983,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1148,15 +1000,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1165,9 +1014,9 @@ public Builder clearValidateOnly() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1177,43 +1026,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) - private static final com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest(); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest - getDefaultInstance() { + public static com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateInstanceConfigRequest> PARSER = - new com.google.protobuf.AbstractParser<UpdateInstanceConfigRequest>() { - @java.lang.Override - public UpdateInstanceConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateInstanceConfigRequest> + PARSER = new com.google.protobuf.AbstractParser<UpdateInstanceConfigRequest>() { + @java.lang.Override + public UpdateInstanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateInstanceConfigRequest> parser() { return PARSER; @@ -1225,8 +1072,9 @@ public com.google.protobuf.Parser<UpdateInstanceConfigRequest> getParserForType( } @java.lang.Override - public com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest - getDefaultInstanceForType() { + public com.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java index 18c8ce272a8..053873ee0b1 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface UpdateInstanceConfigRequestOrBuilder - extends +public interface UpdateInstanceConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.UpdateInstanceConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -35,16 +17,11 @@ public interface UpdateInstanceConfigRequestOrBuilder * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instanceConfig field is set. */ boolean hasInstanceConfig(); /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -54,16 +31,11 @@ public interface UpdateInstanceConfigRequestOrBuilder * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The instanceConfig. */ com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig(); /** - * - * * <pre> * Required. The user instance config to update, which must always include the * instance config name. Otherwise, only fields mentioned in @@ -73,15 +45,11 @@ public interface UpdateInstanceConfigRequestOrBuilder * be used. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder(); /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -91,15 +59,11 @@ public interface UpdateInstanceConfigRequestOrBuilder * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -109,15 +73,11 @@ public interface UpdateInstanceConfigRequestOrBuilder * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * * <pre> * Required. A mask specifying which fields in * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] should be @@ -127,21 +87,17 @@ public interface UpdateInstanceConfigRequestOrBuilder * display_name and labels can be updated. * </pre> * - * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * * <pre> * An option to validate, but not actually execute, a request, * and provide the same response. * </pre> * * <code>bool validate_only = 3;</code> - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java similarity index 73% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java index 9b4e9855386..629dddd19f6 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadata.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * Metadata type for the operation returned by * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]. @@ -28,50 +11,46 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceMetadata} */ -public final class UpdateInstanceMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.UpdateInstanceMetadata) UpdateInstanceMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceMetadata.newBuilder() to construct. private UpdateInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private UpdateInstanceMetadata() {} + private UpdateInstanceMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.class, - com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.Builder.class); + com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.class, com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.Instance instance_; /** - * - * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @return Whether the instance field is set. */ @java.lang.Override @@ -79,25 +58,18 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -106,16 +78,12 @@ public com.google.spanner.admin.instance.v1.Instance getInstance() { */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { - return instance_ == null - ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -123,7 +91,6 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -131,8 +98,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -140,7 +105,6 @@ public boolean hasStartTime() { * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ @java.lang.Override @@ -148,8 +112,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -166,8 +128,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int CANCEL_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp cancelTime_; /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -175,7 +135,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ @java.lang.Override @@ -183,8 +142,6 @@ public boolean hasCancelTime() { return cancelTime_ != null; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -192,7 +149,6 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ @java.lang.Override @@ -200,8 +156,6 @@ public com.google.protobuf.Timestamp getCancelTime() { return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -218,14 +172,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp endTime_; /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -233,14 +184,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return The endTime. */ @java.lang.Override @@ -248,8 +196,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -262,7 +208,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +219,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (instance_ != null) { output.writeMessage(1, getInstance()); } @@ -297,16 +243,20 @@ public int getSerializedSize() { size = 0; if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInstance()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (cancelTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCancelTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -316,29 +266,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.UpdateInstanceMetadata)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other = - (com.google.spanner.admin.instance.v1.UpdateInstanceMetadata) obj; + com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other = (com.google.spanner.admin.instance.v1.UpdateInstanceMetadata) obj; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasCancelTime() != other.hasCancelTime()) return false; if (hasCancelTime()) { - if (!getCancelTime().equals(other.getCancelTime())) return false; + if (!getCancelTime() + .equals(other.getCancelTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -373,104 +326,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata 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.admin.instance.v1.UpdateInstanceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.UpdateInstanceMetadata prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.UpdateInstanceMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Metadata type for the operation returned by * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]. @@ -478,32 +425,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.UpdateInstanceMetadata) com.google.spanner.admin.instance.v1.UpdateInstanceMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.class, - com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.Builder.class); + com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.class, com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -532,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor; } @java.lang.Override @@ -553,11 +501,8 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceMetadata build() { @java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceMetadata buildPartial() { - com.google.spanner.admin.instance.v1.UpdateInstanceMetadata result = - new com.google.spanner.admin.instance.v1.UpdateInstanceMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.UpdateInstanceMetadata result = new com.google.spanner.admin.instance.v1.UpdateInstanceMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -565,16 +510,24 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceMetadata buildPartial( private void buildPartial0(com.google.spanner.admin.instance.v1.UpdateInstanceMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + result.instance_ = instanceBuilder_ == null + ? instance_ + : instanceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cancelTime_ = cancelTimeBuilder_ == null ? cancelTime_ : cancelTimeBuilder_.build(); + result.cancelTime_ = cancelTimeBuilder_ == null + ? cancelTime_ + : cancelTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } } @@ -582,39 +535,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.UpdateInstanceMe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.UpdateInstanceMetadata) { - return mergeFrom((com.google.spanner.admin.instance.v1.UpdateInstanceMetadata) other); + return mergeFrom((com.google.spanner.admin.instance.v1.UpdateInstanceMetadata)other); } else { super.mergeFrom(other); return this; @@ -622,8 +574,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other) { - if (other == com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } @@ -662,37 +613,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCancelTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCancelTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -702,52 +656,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_; + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @return Whether the instance field is set. */ public boolean hasInstance() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -768,8 +708,6 @@ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) return this; } /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -788,8 +726,6 @@ public Builder setInstance( return this; } /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -798,9 +734,9 @@ public Builder setInstance( */ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value) { if (instanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && instance_ != null - && instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + instance_ != null && + instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) { getInstanceBuilder().mergeFrom(value); } else { instance_ = value; @@ -813,8 +749,6 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value return this; } /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -832,8 +766,6 @@ public Builder clearInstance() { return this; } /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -846,8 +778,6 @@ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder( return getInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -858,14 +788,11 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -873,17 +800,14 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ 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> + 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()); + 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_; @@ -891,13 +815,8 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -905,15 +824,12 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -921,7 +837,6 @@ public boolean hasStartTime() { * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -932,8 +847,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -956,8 +869,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -966,7 +877,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp start_time = 2;</code> */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -977,8 +889,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -989,9 +899,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1004,8 +914,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -1025,8 +933,6 @@ public Builder clearStartTime() { return this; } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -1041,8 +947,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -1055,12 +959,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -1070,17 +973,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * <code>.google.protobuf.Timestamp start_time = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1088,13 +988,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp cancelTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cancelTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cancelTimeBuilder_; /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1102,15 +997,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ public boolean hasCancelTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1118,21 +1010,16 @@ public boolean hasCancelTime() { * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ public com.google.protobuf.Timestamp getCancelTime() { if (cancelTimeBuilder_ == null) { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } else { return cancelTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1155,8 +1042,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1165,7 +1050,8 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ - public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCancelTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (cancelTimeBuilder_ == null) { cancelTime_ = builderForValue.build(); } else { @@ -1176,8 +1062,6 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1188,9 +1072,9 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { if (cancelTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cancelTime_ != null - && cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cancelTime_ != null && + cancelTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCancelTimeBuilder().mergeFrom(value); } else { cancelTime_ = value; @@ -1203,8 +1087,6 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1224,8 +1106,6 @@ public Builder clearCancelTime() { return this; } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1240,8 +1120,6 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() { return getCancelTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1254,14 +1132,11 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { if (cancelTimeBuilder_ != null) { return cancelTimeBuilder_.getMessageOrBuilder(); } else { - return cancelTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cancelTime_; + return cancelTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : cancelTime_; } } /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -1271,17 +1146,14 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { * <code>.google.protobuf.Timestamp cancel_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCancelTimeFieldBuilder() { if (cancelTimeBuilder_ == null) { - cancelTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCancelTime(), getParentForChildren(), isClean()); + cancelTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCancelTime(), + getParentForChildren(), + isClean()); cancelTime_ = null; } return cancelTimeBuilder_; @@ -1289,33 +1161,24 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1326,8 +1189,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1348,15 +1209,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1367,8 +1227,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1377,9 +1235,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1392,8 +1250,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1411,8 +1267,6 @@ public Builder clearEndTime() { return this; } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1425,8 +1279,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1437,12 +1289,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> @@ -1450,24 +1301,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * <code>.google.protobuf.Timestamp end_time = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1477,12 +1325,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.UpdateInstanceMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceMetadata) private static final com.google.spanner.admin.instance.v1.UpdateInstanceMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.UpdateInstanceMetadata(); } @@ -1491,27 +1339,27 @@ public static com.google.spanner.admin.instance.v1.UpdateInstanceMetadata getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateInstanceMetadata> PARSER = - new com.google.protobuf.AbstractParser<UpdateInstanceMetadata>() { - @java.lang.Override - public UpdateInstanceMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateInstanceMetadata> + PARSER = new com.google.protobuf.AbstractParser<UpdateInstanceMetadata>() { + @java.lang.Override + public UpdateInstanceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateInstanceMetadata> parser() { return PARSER; @@ -1526,4 +1374,6 @@ public com.google.protobuf.Parser<UpdateInstanceMetadata> getParserForType() { public com.google.spanner.admin.instance.v1.UpdateInstanceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java similarity index 82% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java index e520e83b19f..aa1ff424f3a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface UpdateInstanceMetadataOrBuilder - extends +public interface UpdateInstanceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.UpdateInstanceMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> - * * @return The instance. */ com.google.spanner.admin.instance.v1.Instance getInstance(); /** - * - * * <pre> * The desired end state of the update. * </pre> @@ -59,8 +35,6 @@ public interface UpdateInstanceMetadataOrBuilder com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder(); /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -68,13 +42,10 @@ public interface UpdateInstanceMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -82,13 +53,10 @@ public interface UpdateInstanceMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * * <pre> * The time at which * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] @@ -100,8 +68,6 @@ public interface UpdateInstanceMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -109,13 +75,10 @@ public interface UpdateInstanceMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return Whether the cancelTime field is set. */ boolean hasCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -123,13 +86,10 @@ public interface UpdateInstanceMetadataOrBuilder * </pre> * * <code>.google.protobuf.Timestamp cancel_time = 3;</code> - * * @return The cancelTime. */ com.google.protobuf.Timestamp getCancelTime(); /** - * - * * <pre> * The time at which this operation was cancelled. If set, this operation is * in the process of undoing itself (which is guaranteed to succeed) and @@ -141,32 +101,24 @@ public interface UpdateInstanceMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder(); /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> * * <code>.google.protobuf.Timestamp end_time = 4;</code> - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * * <pre> * The time at which this operation failed or was completed successfully. * </pre> diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java similarity index 69% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java index a0b42cf11d5..f7a1158ee2e 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequest.java @@ -1,26 +1,9 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; /** - * - * * <pre> * The request for * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]. @@ -28,44 +11,41 @@ * * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.UpdateInstanceRequest.class, - com.google.spanner.admin.instance.v1.UpdateInstanceRequest.Builder.class); + com.google.spanner.admin.instance.v1.UpdateInstanceRequest.class, com.google.spanner.admin.instance.v1.UpdateInstanceRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.spanner.admin.instance.v1.Instance instance_; /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -73,10 +53,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instance field is set. */ @java.lang.Override @@ -84,8 +61,6 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -93,21 +68,14 @@ public boolean hasInstance() { * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -115,22 +83,16 @@ public com.google.spanner.admin.instance.v1.Instance getInstance() { * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { - return instance_ == null - ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } public static final int FIELD_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask fieldMask_; /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -139,9 +101,7 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -149,8 +109,6 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -159,9 +117,7 @@ public boolean hasFieldMask() { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The fieldMask. */ @java.lang.Override @@ -169,8 +125,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -179,8 +133,7 @@ public com.google.protobuf.FieldMask getFieldMask() { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { @@ -188,7 +141,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +152,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (instance_ != null) { output.writeMessage(1, getInstance()); } @@ -217,10 +170,12 @@ public int getSerializedSize() { size = 0; if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInstance()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFieldMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,21 +185,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.spanner.admin.instance.v1.UpdateInstanceRequest other = - (com.google.spanner.admin.instance.v1.UpdateInstanceRequest) obj; + com.google.spanner.admin.instance.v1.UpdateInstanceRequest other = (com.google.spanner.admin.instance.v1.UpdateInstanceRequest) obj; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -271,104 +227,98 @@ public int hashCode() { } public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.admin.instance.v1.UpdateInstanceRequest prototype) { + public static Builder newBuilder(com.google.spanner.admin.instance.v1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * The request for * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]. @@ -376,32 +326,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.UpdateInstanceRequest) com.google.spanner.admin.instance.v1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.admin.instance.v1.UpdateInstanceRequest.class, - com.google.spanner.admin.instance.v1.UpdateInstanceRequest.Builder.class); + com.google.spanner.admin.instance.v1.UpdateInstanceRequest.class, com.google.spanner.admin.instance.v1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.spanner.admin.instance.v1.UpdateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto - .internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.internal_static_google_spanner_admin_instance_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -441,11 +392,8 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceRequest build() { @java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceRequest buildPartial() { - com.google.spanner.admin.instance.v1.UpdateInstanceRequest result = - new com.google.spanner.admin.instance.v1.UpdateInstanceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.admin.instance.v1.UpdateInstanceRequest result = new com.google.spanner.admin.instance.v1.UpdateInstanceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -453,10 +401,14 @@ public com.google.spanner.admin.instance.v1.UpdateInstanceRequest buildPartial() private void buildPartial0(com.google.spanner.admin.instance.v1.UpdateInstanceRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + result.instance_ = instanceBuilder_ == null + ? instance_ + : instanceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.fieldMask_ = fieldMaskBuilder_ == null ? fieldMask_ : fieldMaskBuilder_.build(); + result.fieldMask_ = fieldMaskBuilder_ == null + ? fieldMask_ + : fieldMaskBuilder_.build(); } } @@ -464,39 +416,38 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.UpdateInstanceRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.admin.instance.v1.UpdateInstanceRequest) { - return mergeFrom((com.google.spanner.admin.instance.v1.UpdateInstanceRequest) other); + return mergeFrom((com.google.spanner.admin.instance.v1.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -504,8 +455,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceRequest other) { - if (other == com.google.spanner.admin.instance.v1.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.admin.instance.v1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } @@ -538,25 +488,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getFieldMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getFieldMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -566,18 +517,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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_; + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -585,18 +530,13 @@ public Builder mergeFrom( * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instance field is set. */ public boolean hasInstance() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -604,24 +544,17 @@ public boolean hasInstance() { * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -629,9 +562,7 @@ public com.google.spanner.admin.instance.v1.Instance getInstance() { * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) { if (instanceBuilder_ == null) { @@ -647,8 +578,6 @@ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) return this; } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -656,9 +585,7 @@ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setInstance( com.google.spanner.admin.instance.v1.Instance.Builder builderForValue) { @@ -672,8 +599,6 @@ public Builder setInstance( return this; } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -681,15 +606,13 @@ public Builder setInstance( * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value) { if (instanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && instance_ != null - && instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + instance_ != null && + instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) { getInstanceBuilder().mergeFrom(value); } else { instance_ = value; @@ -702,8 +625,6 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value return this; } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -711,9 +632,7 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearInstance() { bitField0_ = (bitField0_ & ~0x00000001); @@ -726,8 +645,6 @@ public Builder clearInstance() { return this; } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -735,9 +652,7 @@ public Builder clearInstance() { * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder() { bitField0_ |= 0x00000001; @@ -745,8 +660,6 @@ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder( return getInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -754,22 +667,17 @@ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder( * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ 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_; + return instance_ == null ? + com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -777,22 +685,17 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ 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> + 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()); + 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_; @@ -800,13 +703,8 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - fieldMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_; /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -815,17 +713,13 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -834,9 +728,7 @@ public boolean hasFieldMask() { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -847,8 +739,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -857,8 +747,7 @@ public com.google.protobuf.FieldMask getFieldMask() { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -874,8 +763,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -884,10 +771,10 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); } else { @@ -898,8 +785,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu return this; } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -908,14 +793,13 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && fieldMask_ != null - && fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + fieldMask_ != null && + fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getFieldMaskBuilder().mergeFrom(value); } else { fieldMask_ = value; @@ -928,8 +812,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -938,8 +820,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public Builder clearFieldMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -952,8 +833,6 @@ public Builder clearFieldMask() { return this; } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -962,8 +841,7 @@ public Builder clearFieldMask() { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { bitField0_ |= 0x00000002; @@ -971,8 +849,6 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { return getFieldMaskFieldBuilder().getBuilder(); } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -981,19 +857,17 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -1002,28 +876,24 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getFieldMaskFieldBuilder() { if (fieldMaskBuilder_ == null) { - fieldMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getFieldMask(), getParentForChildren(), isClean()); + fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), + getParentForChildren(), + isClean()); fieldMask_ = null; } return fieldMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceRequest) private static final com.google.spanner.admin.instance.v1.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.UpdateInstanceRequest(); } @@ -1047,27 +917,27 @@ public static com.google.spanner.admin.instance.v1.UpdateInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateInstanceRequest> PARSER = - new com.google.protobuf.AbstractParser<UpdateInstanceRequest>() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateInstanceRequest> + PARSER = new com.google.protobuf.AbstractParser<UpdateInstanceRequest>() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateInstanceRequest> parser() { return PARSER; @@ -1082,4 +952,6 @@ public com.google.protobuf.Parser<UpdateInstanceRequest> getParserForType() { public com.google.spanner.admin.instance.v1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java index 1733dec0e18..07e2673a78d 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/admin/instance/v1/spanner_instance_admin.proto package com.google.spanner.admin.instance.v1; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -33,16 +15,11 @@ public interface UpdateInstanceRequestOrBuilder * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -50,16 +27,11 @@ public interface UpdateInstanceRequestOrBuilder * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return The instance. */ com.google.spanner.admin.instance.v1.Instance getInstance(); /** - * - * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in @@ -67,15 +39,11 @@ public interface UpdateInstanceRequestOrBuilder * need be included. * </pre> * - * <code> - * .google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.spanner.admin.instance.v1.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder(); /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -84,15 +52,11 @@ public interface UpdateInstanceRequestOrBuilder * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -101,15 +65,11 @@ public interface UpdateInstanceRequestOrBuilder * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> - * + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * * <pre> * Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. @@ -118,8 +78,7 @@ public interface UpdateInstanceRequestOrBuilder * accidentally by clients that do not know about them. * </pre> * - * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * </code> + * <code>.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code> */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/common.proto b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/common.proto similarity index 100% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/common.proto rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/common.proto diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto b/owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto similarity index 100% rename from proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto rename to owl-bot-staging/v1/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java index 0477201f7a6..cb9eef03d10 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminAction.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * AdminAction defines all the cloud spanner admin actions, including * instance/database admin ops, backup ops and operation actions. @@ -28,47 +11,43 @@ * * Protobuf type {@code google.spanner.executor.v1.AdminAction} */ -public final class AdminAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +private static final long serialVersionUID = 0L; // Use AdminAction.newBuilder() to construct. private AdminAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private AdminAction() {} + private AdminAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE_USER_INSTANCE_CONFIG(1), UPDATE_USER_INSTANCE_CONFIG(2), @@ -100,7 +79,6 @@ public enum ActionCase RECONFIGURE_CLOUD_DATABASE(28), ACTION_NOT_SET(0); private final int value; - private ActionCase(int value) { this.value = value; } @@ -116,90 +94,56 @@ public static ActionCase valueOf(int 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; + 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 ActionCase + getActionCase() { + return ActionCase.forNumber( + actionCase_); } public static final int CREATE_USER_INSTANCE_CONFIG_FIELD_NUMBER = 1; /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> - * + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> * @return Whether the createUserInstanceConfig field is set. */ @java.lang.Override @@ -207,58 +151,42 @@ public boolean hasCreateUserInstanceConfig() { return actionCase_ == 1; } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> - * + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> * @return The createUserInstanceConfig. */ @java.lang.Override - public com.google.spanner.executor.v1.CreateUserInstanceConfigAction - getCreateUserInstanceConfig() { + 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) action_; } return com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance(); } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder - getCreateUserInstanceConfigOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance(); } public static final int UPDATE_USER_INSTANCE_CONFIG_FIELD_NUMBER = 2; /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> * @return Whether the updateUserInstanceConfig field is set. */ @java.lang.Override @@ -266,58 +194,42 @@ public boolean hasUpdateUserInstanceConfig() { return actionCase_ == 2; } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> * @return The updateUserInstanceConfig. */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateUserInstanceConfigAction - getUpdateUserInstanceConfig() { + 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) action_; } return com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.getDefaultInstance(); } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder - getUpdateUserInstanceConfigOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.getDefaultInstance(); } public static final int DELETE_USER_INSTANCE_CONFIG_FIELD_NUMBER = 3; /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> - * + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> * @return Whether the deleteUserInstanceConfig field is set. */ @java.lang.Override @@ -325,57 +237,42 @@ public boolean hasDeleteUserInstanceConfig() { return actionCase_ == 3; } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> - * + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> * @return The deleteUserInstanceConfig. */ @java.lang.Override - public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction - getDeleteUserInstanceConfig() { + 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) action_; } return com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance(); } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder - getDeleteUserInstanceConfigOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance(); } public static final int GET_CLOUD_INSTANCE_CONFIG_FIELD_NUMBER = 4; /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> - * + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> * @return Whether the getCloudInstanceConfig field is set. */ @java.lang.Override @@ -383,54 +280,42 @@ public boolean hasGetCloudInstanceConfig() { return actionCase_ == 4; } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> - * + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> * @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) action_; } return com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance(); } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder - getGetCloudInstanceConfigOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance(); } public static final int LIST_INSTANCE_CONFIGS_FIELD_NUMBER = 5; /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> * @return Whether the listInstanceConfigs field is set. */ @java.lang.Override @@ -438,53 +323,42 @@ public boolean hasListInstanceConfigs() { return actionCase_ == 5; } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> * @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) action_; } return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance(); } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder - getListInstanceConfigsOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance(); } public static final int CREATE_CLOUD_INSTANCE_FIELD_NUMBER = 6; /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> - * * @return Whether the createCloudInstance field is set. */ @java.lang.Override @@ -492,26 +366,21 @@ public boolean hasCreateCloudInstance() { return actionCase_ == 6; } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> - * * @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) action_; } return com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance(); } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> @@ -519,24 +388,20 @@ public com.google.spanner.executor.v1.CreateCloudInstanceAction getCreateCloudIn * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder - getCreateCloudInstanceOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance(); } public static final int UPDATE_CLOUD_INSTANCE_FIELD_NUMBER = 7; /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> - * * @return Whether the updateCloudInstance field is set. */ @java.lang.Override @@ -544,26 +409,21 @@ public boolean hasUpdateCloudInstance() { return actionCase_ == 7; } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> - * * @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) action_; } return com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance(); } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> @@ -571,24 +431,20 @@ public com.google.spanner.executor.v1.UpdateCloudInstanceAction getUpdateCloudIn * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder - getUpdateCloudInstanceOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance(); } public static final int DELETE_CLOUD_INSTANCE_FIELD_NUMBER = 8; /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> - * * @return Whether the deleteCloudInstance field is set. */ @java.lang.Override @@ -596,26 +452,21 @@ public boolean hasDeleteCloudInstance() { return actionCase_ == 8; } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> - * * @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) action_; } return com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance(); } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> @@ -623,24 +474,20 @@ public com.google.spanner.executor.v1.DeleteCloudInstanceAction getDeleteCloudIn * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder - getDeleteCloudInstanceOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance(); } public static final int LIST_CLOUD_INSTANCES_FIELD_NUMBER = 9; /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> - * * @return Whether the listCloudInstances field is set. */ @java.lang.Override @@ -648,26 +495,21 @@ public boolean hasListCloudInstances() { return actionCase_ == 9; } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> - * * @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) action_; } return com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance(); } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> @@ -675,24 +517,20 @@ public com.google.spanner.executor.v1.ListCloudInstancesAction getListCloudInsta * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder - getListCloudInstancesOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance(); } public static final int GET_CLOUD_INSTANCE_FIELD_NUMBER = 10; /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> - * * @return Whether the getCloudInstance field is set. */ @java.lang.Override @@ -700,26 +538,21 @@ public boolean hasGetCloudInstance() { return actionCase_ == 10; } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> - * * @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) action_; } return com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance(); } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> @@ -727,24 +560,20 @@ public com.google.spanner.executor.v1.GetCloudInstanceAction getGetCloudInstance * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder - getGetCloudInstanceOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance(); } public static final int CREATE_CLOUD_DATABASE_FIELD_NUMBER = 11; /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> - * * @return Whether the createCloudDatabase field is set. */ @java.lang.Override @@ -752,26 +581,21 @@ public boolean hasCreateCloudDatabase() { return actionCase_ == 11; } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> - * * @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) action_; } return com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance(); } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> @@ -779,25 +603,20 @@ public com.google.spanner.executor.v1.CreateCloudDatabaseAction getCreateCloudDa * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder - getCreateCloudDatabaseOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance(); } public static final int UPDATE_CLOUD_DATABASE_DDL_FIELD_NUMBER = 12; /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> * @return Whether the updateCloudDatabaseDdl field is set. */ @java.lang.Override @@ -805,53 +624,42 @@ public boolean hasUpdateCloudDatabaseDdl() { return actionCase_ == 12; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> * @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) action_; } return com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance(); } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder - getUpdateCloudDatabaseDdlOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance(); } public static final int UPDATE_CLOUD_DATABASE_FIELD_NUMBER = 27; /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> - * * @return Whether the updateCloudDatabase field is set. */ @java.lang.Override @@ -859,26 +667,21 @@ public boolean hasUpdateCloudDatabase() { return actionCase_ == 27; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> - * * @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) action_; } return com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance(); } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> @@ -886,24 +689,20 @@ public com.google.spanner.executor.v1.UpdateCloudDatabaseAction getUpdateCloudDa * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder - getUpdateCloudDatabaseOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance(); } public static final int DROP_CLOUD_DATABASE_FIELD_NUMBER = 13; /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> - * * @return Whether the dropCloudDatabase field is set. */ @java.lang.Override @@ -911,26 +710,21 @@ public boolean hasDropCloudDatabase() { return actionCase_ == 13; } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> - * * @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) action_; } return com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance(); } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> @@ -938,24 +732,20 @@ public com.google.spanner.executor.v1.DropCloudDatabaseAction getDropCloudDataba * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder - getDropCloudDatabaseOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance(); } public static final int LIST_CLOUD_DATABASES_FIELD_NUMBER = 14; /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> - * * @return Whether the listCloudDatabases field is set. */ @java.lang.Override @@ -963,26 +753,21 @@ public boolean hasListCloudDatabases() { return actionCase_ == 14; } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> - * * @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) action_; } return com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance(); } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> @@ -990,26 +775,20 @@ public com.google.spanner.executor.v1.ListCloudDatabasesAction getListCloudDatab * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder - getListCloudDatabasesOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance(); } public static final int LIST_CLOUD_DATABASE_OPERATIONS_FIELD_NUMBER = 15; /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> * @return Whether the listCloudDatabaseOperations field is set. */ @java.lang.Override @@ -1017,57 +796,42 @@ public boolean hasListCloudDatabaseOperations() { return actionCase_ == 15; } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> * @return The listCloudDatabaseOperations. */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction - getListCloudDatabaseOperations() { + 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) action_; } return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance(); } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder - getListCloudDatabaseOperationsOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance(); } public static final int RESTORE_CLOUD_DATABASE_FIELD_NUMBER = 16; /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> - * + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> * @return Whether the restoreCloudDatabase field is set. */ @java.lang.Override @@ -1075,53 +839,42 @@ public boolean hasRestoreCloudDatabase() { return actionCase_ == 16; } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> - * + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> * @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) action_; } return com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance(); } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder - getRestoreCloudDatabaseOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance(); } public static final int GET_CLOUD_DATABASE_FIELD_NUMBER = 17; /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> - * * @return Whether the getCloudDatabase field is set. */ @java.lang.Override @@ -1129,26 +882,21 @@ public boolean hasGetCloudDatabase() { return actionCase_ == 17; } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> - * * @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) action_; } return com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance(); } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> @@ -1156,24 +904,20 @@ public com.google.spanner.executor.v1.GetCloudDatabaseAction getGetCloudDatabase * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder - getGetCloudDatabaseOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance(); } public static final int CREATE_CLOUD_BACKUP_FIELD_NUMBER = 18; /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> - * * @return Whether the createCloudBackup field is set. */ @java.lang.Override @@ -1181,26 +925,21 @@ public boolean hasCreateCloudBackup() { return actionCase_ == 18; } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> - * * @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) action_; } return com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance(); } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> @@ -1208,24 +947,20 @@ public com.google.spanner.executor.v1.CreateCloudBackupAction getCreateCloudBack * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder - getCreateCloudBackupOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance(); } public static final int COPY_CLOUD_BACKUP_FIELD_NUMBER = 19; /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> - * * @return Whether the copyCloudBackup field is set. */ @java.lang.Override @@ -1233,26 +968,21 @@ public boolean hasCopyCloudBackup() { return actionCase_ == 19; } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> - * * @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) action_; } return com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance(); } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> @@ -1260,24 +990,20 @@ public com.google.spanner.executor.v1.CopyCloudBackupAction getCopyCloudBackup() * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder - getCopyCloudBackupOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance(); } public static final int GET_CLOUD_BACKUP_FIELD_NUMBER = 20; /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;</code> - * * @return Whether the getCloudBackup field is set. */ @java.lang.Override @@ -1285,26 +1011,21 @@ public boolean hasGetCloudBackup() { return actionCase_ == 20; } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;</code> - * * @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) action_; } return com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance(); } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -1314,21 +1035,18 @@ public com.google.spanner.executor.v1.GetCloudBackupAction getGetCloudBackup() { @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) action_; } return com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance(); } public static final int UPDATE_CLOUD_BACKUP_FIELD_NUMBER = 21; /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> - * * @return Whether the updateCloudBackup field is set. */ @java.lang.Override @@ -1336,26 +1054,21 @@ public boolean hasUpdateCloudBackup() { return actionCase_ == 21; } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> - * * @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) action_; } return com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance(); } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> @@ -1363,24 +1076,20 @@ public com.google.spanner.executor.v1.UpdateCloudBackupAction getUpdateCloudBack * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder - getUpdateCloudBackupOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance(); } public static final int DELETE_CLOUD_BACKUP_FIELD_NUMBER = 22; /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> - * * @return Whether the deleteCloudBackup field is set. */ @java.lang.Override @@ -1388,26 +1097,21 @@ public boolean hasDeleteCloudBackup() { return actionCase_ == 22; } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> - * * @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) action_; } return com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance(); } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> @@ -1415,24 +1119,20 @@ public com.google.spanner.executor.v1.DeleteCloudBackupAction getDeleteCloudBack * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder - getDeleteCloudBackupOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance(); } public static final int LIST_CLOUD_BACKUPS_FIELD_NUMBER = 23; /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> - * * @return Whether the listCloudBackups field is set. */ @java.lang.Override @@ -1440,26 +1140,21 @@ public boolean hasListCloudBackups() { return actionCase_ == 23; } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> - * * @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) action_; } return com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance(); } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> @@ -1467,26 +1162,20 @@ public com.google.spanner.executor.v1.ListCloudBackupsAction getListCloudBackups * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder - getListCloudBackupsOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance(); } public static final int LIST_CLOUD_BACKUP_OPERATIONS_FIELD_NUMBER = 24; /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> * @return Whether the listCloudBackupOperations field is set. */ @java.lang.Override @@ -1494,56 +1183,42 @@ public boolean hasListCloudBackupOperations() { return actionCase_ == 24; } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> * @return The listCloudBackupOperations. */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudBackupOperationsAction - getListCloudBackupOperations() { + 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) action_; } return com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance(); } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder - getListCloudBackupOperationsOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance(); } public static final int GET_OPERATION_FIELD_NUMBER = 25; /** - * - * * <pre> * Action that gets an operation. * </pre> * * <code>.google.spanner.executor.v1.GetOperationAction get_operation = 25;</code> - * * @return Whether the getOperation field is set. */ @java.lang.Override @@ -1551,26 +1226,21 @@ public boolean hasGetOperation() { return actionCase_ == 25; } /** - * - * * <pre> * Action that gets an operation. * </pre> * * <code>.google.spanner.executor.v1.GetOperationAction get_operation = 25;</code> - * * @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) action_; } return com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance(); } /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -1580,21 +1250,18 @@ public com.google.spanner.executor.v1.GetOperationAction getGetOperation() { @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) action_; } return com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance(); } public static final int CANCEL_OPERATION_FIELD_NUMBER = 26; /** - * - * * <pre> * Action that cancels an operation. * </pre> * * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> - * * @return Whether the cancelOperation field is set. */ @java.lang.Override @@ -1602,26 +1269,21 @@ public boolean hasCancelOperation() { return actionCase_ == 26; } /** - * - * * <pre> * Action that cancels an operation. * </pre> * * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> - * * @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) action_; } return com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance(); } /** - * - * * <pre> * Action that cancels an operation. * </pre> @@ -1629,26 +1291,20 @@ public com.google.spanner.executor.v1.CancelOperationAction getCancelOperation() * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CancelOperationActionOrBuilder - getCancelOperationOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance(); } public static final int RECONFIGURE_CLOUD_DATABASE_FIELD_NUMBER = 28; /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> - * + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> * @return Whether the reconfigureCloudDatabase field is set. */ @java.lang.Override @@ -1656,48 +1312,36 @@ public boolean hasReconfigureCloudDatabase() { return actionCase_ == 28; } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> - * + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> * @return The reconfigureCloudDatabase. */ @java.lang.Override - public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction - getReconfigureCloudDatabase() { + 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) action_; } return com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance(); } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder - getReconfigureCloudDatabaseOrBuilder() { + 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) action_; } return com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1709,25 +1353,22 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); + output.writeMessage(1, (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_); } if (actionCase_ == 2) { - output.writeMessage( - 2, (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_); + output.writeMessage(2, (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_); } if (actionCase_ == 3) { - output.writeMessage( - 3, (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_); + 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_); + output.writeMessage(5, (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_); } if (actionCase_ == 6) { output.writeMessage(6, (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_); @@ -1748,8 +1389,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(11, (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_); } if (actionCase_ == 12) { - output.writeMessage( - 12, (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_); + output.writeMessage(12, (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_); } if (actionCase_ == 13) { output.writeMessage(13, (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_); @@ -1758,8 +1398,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(14, (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_); } if (actionCase_ == 15) { - output.writeMessage( - 15, (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_); + output.writeMessage(15, (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_); } if (actionCase_ == 16) { output.writeMessage(16, (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_); @@ -1786,8 +1425,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(23, (com.google.spanner.executor.v1.ListCloudBackupsAction) action_); } if (actionCase_ == 24) { - output.writeMessage( - 24, (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_); + output.writeMessage(24, (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_); } if (actionCase_ == 25) { output.writeMessage(25, (com.google.spanner.executor.v1.GetOperationAction) action_); @@ -1799,8 +1437,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(27, (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_); } if (actionCase_ == 28) { - output.writeMessage( - 28, (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_); + output.writeMessage(28, (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_); } getUnknownFields().writeTo(output); } @@ -1812,144 +1449,116 @@ public int getSerializedSize() { size = 0; if (actionCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1959,105 +1568,126 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + if (!getCreateUserInstanceConfig() + .equals(other.getCreateUserInstanceConfig())) return false; break; case 2: - if (!getUpdateUserInstanceConfig().equals(other.getUpdateUserInstanceConfig())) - return false; + if (!getUpdateUserInstanceConfig() + .equals(other.getUpdateUserInstanceConfig())) return false; break; case 3: - if (!getDeleteUserInstanceConfig().equals(other.getDeleteUserInstanceConfig())) - return false; + if (!getDeleteUserInstanceConfig() + .equals(other.getDeleteUserInstanceConfig())) return false; break; case 4: - if (!getGetCloudInstanceConfig().equals(other.getGetCloudInstanceConfig())) return false; + if (!getGetCloudInstanceConfig() + .equals(other.getGetCloudInstanceConfig())) return false; break; case 5: - if (!getListInstanceConfigs().equals(other.getListInstanceConfigs())) return false; + if (!getListInstanceConfigs() + .equals(other.getListInstanceConfigs())) return false; break; case 6: - if (!getCreateCloudInstance().equals(other.getCreateCloudInstance())) return false; + if (!getCreateCloudInstance() + .equals(other.getCreateCloudInstance())) return false; break; case 7: - if (!getUpdateCloudInstance().equals(other.getUpdateCloudInstance())) return false; + if (!getUpdateCloudInstance() + .equals(other.getUpdateCloudInstance())) return false; break; case 8: - if (!getDeleteCloudInstance().equals(other.getDeleteCloudInstance())) return false; + if (!getDeleteCloudInstance() + .equals(other.getDeleteCloudInstance())) return false; break; case 9: - if (!getListCloudInstances().equals(other.getListCloudInstances())) return false; + if (!getListCloudInstances() + .equals(other.getListCloudInstances())) return false; break; case 10: - if (!getGetCloudInstance().equals(other.getGetCloudInstance())) return false; + if (!getGetCloudInstance() + .equals(other.getGetCloudInstance())) return false; break; case 11: - if (!getCreateCloudDatabase().equals(other.getCreateCloudDatabase())) return false; + if (!getCreateCloudDatabase() + .equals(other.getCreateCloudDatabase())) return false; break; case 12: - if (!getUpdateCloudDatabaseDdl().equals(other.getUpdateCloudDatabaseDdl())) return false; + if (!getUpdateCloudDatabaseDdl() + .equals(other.getUpdateCloudDatabaseDdl())) return false; break; case 27: - if (!getUpdateCloudDatabase().equals(other.getUpdateCloudDatabase())) return false; + if (!getUpdateCloudDatabase() + .equals(other.getUpdateCloudDatabase())) return false; break; case 13: - if (!getDropCloudDatabase().equals(other.getDropCloudDatabase())) return false; + if (!getDropCloudDatabase() + .equals(other.getDropCloudDatabase())) return false; break; case 14: - if (!getListCloudDatabases().equals(other.getListCloudDatabases())) return false; + if (!getListCloudDatabases() + .equals(other.getListCloudDatabases())) return false; break; case 15: - if (!getListCloudDatabaseOperations().equals(other.getListCloudDatabaseOperations())) - return false; + if (!getListCloudDatabaseOperations() + .equals(other.getListCloudDatabaseOperations())) return false; break; case 16: - if (!getRestoreCloudDatabase().equals(other.getRestoreCloudDatabase())) return false; + if (!getRestoreCloudDatabase() + .equals(other.getRestoreCloudDatabase())) return false; break; case 17: - if (!getGetCloudDatabase().equals(other.getGetCloudDatabase())) return false; + if (!getGetCloudDatabase() + .equals(other.getGetCloudDatabase())) return false; break; case 18: - if (!getCreateCloudBackup().equals(other.getCreateCloudBackup())) return false; + if (!getCreateCloudBackup() + .equals(other.getCreateCloudBackup())) return false; break; case 19: - if (!getCopyCloudBackup().equals(other.getCopyCloudBackup())) return false; + if (!getCopyCloudBackup() + .equals(other.getCopyCloudBackup())) return false; break; case 20: - if (!getGetCloudBackup().equals(other.getGetCloudBackup())) return false; + if (!getGetCloudBackup() + .equals(other.getGetCloudBackup())) return false; break; case 21: - if (!getUpdateCloudBackup().equals(other.getUpdateCloudBackup())) return false; + if (!getUpdateCloudBackup() + .equals(other.getUpdateCloudBackup())) return false; break; case 22: - if (!getDeleteCloudBackup().equals(other.getDeleteCloudBackup())) return false; + if (!getDeleteCloudBackup() + .equals(other.getDeleteCloudBackup())) return false; break; case 23: - if (!getListCloudBackups().equals(other.getListCloudBackups())) return false; + if (!getListCloudBackups() + .equals(other.getListCloudBackups())) return false; break; case 24: - if (!getListCloudBackupOperations().equals(other.getListCloudBackupOperations())) - return false; + if (!getListCloudBackupOperations() + .equals(other.getListCloudBackupOperations())) return false; break; case 25: - if (!getGetOperation().equals(other.getGetOperation())) return false; + if (!getGetOperation() + .equals(other.getGetOperation())) return false; break; case 26: - if (!getCancelOperation().equals(other.getCancelOperation())) return false; + if (!getCancelOperation() + .equals(other.getCancelOperation())) return false; break; case 28: - if (!getReconfigureCloudDatabase().equals(other.getReconfigureCloudDatabase())) - return false; + if (!getReconfigureCloudDatabase() + .equals(other.getReconfigureCloudDatabase())) return false; break; case 0: default: @@ -2194,104 +1824,99 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.AdminAction parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * AdminAction defines all the cloud spanner admin actions, including * instance/database admin ops, backup ops and operation actions. @@ -2299,32 +1924,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.AdminAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.AdminAction) com.google.spanner.executor.v1.AdminActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_AdminAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.AdminAction.class, com.google.spanner.executor.v1.AdminAction.Builder.class); } // Construct using com.google.spanner.executor.v1.AdminAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2419,9 +2045,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_AdminAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_AdminAction_descriptor; } @java.lang.Override @@ -2440,11 +2066,8 @@ public com.google.spanner.executor.v1.AdminAction build() { @java.lang.Override public com.google.spanner.executor.v1.AdminAction buildPartial() { - com.google.spanner.executor.v1.AdminAction result = - new com.google.spanner.executor.v1.AdminAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.AdminAction result = new com.google.spanner.executor.v1.AdminAction(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -2457,88 +2080,116 @@ private void buildPartial0(com.google.spanner.executor.v1.AdminAction result) { private void buildPartialOneofs(com.google.spanner.executor.v1.AdminAction result) { result.actionCase_ = actionCase_; result.action_ = this.action_; - if (actionCase_ == 1 && createUserInstanceConfigBuilder_ != null) { + if (actionCase_ == 1 && + createUserInstanceConfigBuilder_ != null) { result.action_ = createUserInstanceConfigBuilder_.build(); } - if (actionCase_ == 2 && updateUserInstanceConfigBuilder_ != null) { + if (actionCase_ == 2 && + updateUserInstanceConfigBuilder_ != null) { result.action_ = updateUserInstanceConfigBuilder_.build(); } - if (actionCase_ == 3 && deleteUserInstanceConfigBuilder_ != null) { + if (actionCase_ == 3 && + deleteUserInstanceConfigBuilder_ != null) { result.action_ = deleteUserInstanceConfigBuilder_.build(); } - if (actionCase_ == 4 && getCloudInstanceConfigBuilder_ != null) { + if (actionCase_ == 4 && + getCloudInstanceConfigBuilder_ != null) { result.action_ = getCloudInstanceConfigBuilder_.build(); } - if (actionCase_ == 5 && listInstanceConfigsBuilder_ != null) { + if (actionCase_ == 5 && + listInstanceConfigsBuilder_ != null) { result.action_ = listInstanceConfigsBuilder_.build(); } - if (actionCase_ == 6 && createCloudInstanceBuilder_ != null) { + if (actionCase_ == 6 && + createCloudInstanceBuilder_ != null) { result.action_ = createCloudInstanceBuilder_.build(); } - if (actionCase_ == 7 && updateCloudInstanceBuilder_ != null) { + if (actionCase_ == 7 && + updateCloudInstanceBuilder_ != null) { result.action_ = updateCloudInstanceBuilder_.build(); } - if (actionCase_ == 8 && deleteCloudInstanceBuilder_ != null) { + if (actionCase_ == 8 && + deleteCloudInstanceBuilder_ != null) { result.action_ = deleteCloudInstanceBuilder_.build(); } - if (actionCase_ == 9 && listCloudInstancesBuilder_ != null) { + if (actionCase_ == 9 && + listCloudInstancesBuilder_ != null) { result.action_ = listCloudInstancesBuilder_.build(); } - if (actionCase_ == 10 && getCloudInstanceBuilder_ != null) { + if (actionCase_ == 10 && + getCloudInstanceBuilder_ != null) { result.action_ = getCloudInstanceBuilder_.build(); } - if (actionCase_ == 11 && createCloudDatabaseBuilder_ != null) { + if (actionCase_ == 11 && + createCloudDatabaseBuilder_ != null) { result.action_ = createCloudDatabaseBuilder_.build(); } - if (actionCase_ == 12 && updateCloudDatabaseDdlBuilder_ != null) { + if (actionCase_ == 12 && + updateCloudDatabaseDdlBuilder_ != null) { result.action_ = updateCloudDatabaseDdlBuilder_.build(); } - if (actionCase_ == 27 && updateCloudDatabaseBuilder_ != null) { + if (actionCase_ == 27 && + updateCloudDatabaseBuilder_ != null) { result.action_ = updateCloudDatabaseBuilder_.build(); } - if (actionCase_ == 13 && dropCloudDatabaseBuilder_ != null) { + if (actionCase_ == 13 && + dropCloudDatabaseBuilder_ != null) { result.action_ = dropCloudDatabaseBuilder_.build(); } - if (actionCase_ == 14 && listCloudDatabasesBuilder_ != null) { + if (actionCase_ == 14 && + listCloudDatabasesBuilder_ != null) { result.action_ = listCloudDatabasesBuilder_.build(); } - if (actionCase_ == 15 && listCloudDatabaseOperationsBuilder_ != null) { + if (actionCase_ == 15 && + listCloudDatabaseOperationsBuilder_ != null) { result.action_ = listCloudDatabaseOperationsBuilder_.build(); } - if (actionCase_ == 16 && restoreCloudDatabaseBuilder_ != null) { + if (actionCase_ == 16 && + restoreCloudDatabaseBuilder_ != null) { result.action_ = restoreCloudDatabaseBuilder_.build(); } - if (actionCase_ == 17 && getCloudDatabaseBuilder_ != null) { + if (actionCase_ == 17 && + getCloudDatabaseBuilder_ != null) { result.action_ = getCloudDatabaseBuilder_.build(); } - if (actionCase_ == 18 && createCloudBackupBuilder_ != null) { + if (actionCase_ == 18 && + createCloudBackupBuilder_ != null) { result.action_ = createCloudBackupBuilder_.build(); } - if (actionCase_ == 19 && copyCloudBackupBuilder_ != null) { + if (actionCase_ == 19 && + copyCloudBackupBuilder_ != null) { result.action_ = copyCloudBackupBuilder_.build(); } - if (actionCase_ == 20 && getCloudBackupBuilder_ != null) { + if (actionCase_ == 20 && + getCloudBackupBuilder_ != null) { result.action_ = getCloudBackupBuilder_.build(); } - if (actionCase_ == 21 && updateCloudBackupBuilder_ != null) { + if (actionCase_ == 21 && + updateCloudBackupBuilder_ != null) { result.action_ = updateCloudBackupBuilder_.build(); } - if (actionCase_ == 22 && deleteCloudBackupBuilder_ != null) { + if (actionCase_ == 22 && + deleteCloudBackupBuilder_ != null) { result.action_ = deleteCloudBackupBuilder_.build(); } - if (actionCase_ == 23 && listCloudBackupsBuilder_ != null) { + if (actionCase_ == 23 && + listCloudBackupsBuilder_ != null) { result.action_ = listCloudBackupsBuilder_.build(); } - if (actionCase_ == 24 && listCloudBackupOperationsBuilder_ != null) { + if (actionCase_ == 24 && + listCloudBackupOperationsBuilder_ != null) { result.action_ = listCloudBackupOperationsBuilder_.build(); } - if (actionCase_ == 25 && getOperationBuilder_ != null) { + if (actionCase_ == 25 && + getOperationBuilder_ != null) { result.action_ = getOperationBuilder_.build(); } - if (actionCase_ == 26 && cancelOperationBuilder_ != null) { + if (actionCase_ == 26 && + cancelOperationBuilder_ != null) { result.action_ = cancelOperationBuilder_.build(); } - if (actionCase_ == 28 && reconfigureCloudDatabaseBuilder_ != null) { + if (actionCase_ == 28 && + reconfigureCloudDatabaseBuilder_ != null) { result.action_ = reconfigureCloudDatabaseBuilder_.build(); } } @@ -2547,39 +2198,38 @@ private void buildPartialOneofs(com.google.spanner.executor.v1.AdminAction resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.AdminAction) { - return mergeFrom((com.google.spanner.executor.v1.AdminAction) other); + return mergeFrom((com.google.spanner.executor.v1.AdminAction)other); } else { super.mergeFrom(other); return this; @@ -2589,150 +2239,121 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.spanner.executor.v1.AdminAction other) { if (other == com.google.spanner.executor.v1.AdminAction.getDefaultInstance()) return this; switch (other.getActionCase()) { - case CREATE_USER_INSTANCE_CONFIG: - { - mergeCreateUserInstanceConfig(other.getCreateUserInstanceConfig()); - break; - } - case UPDATE_USER_INSTANCE_CONFIG: - { - mergeUpdateUserInstanceConfig(other.getUpdateUserInstanceConfig()); - break; - } - case DELETE_USER_INSTANCE_CONFIG: - { - mergeDeleteUserInstanceConfig(other.getDeleteUserInstanceConfig()); - break; - } - case GET_CLOUD_INSTANCE_CONFIG: - { - mergeGetCloudInstanceConfig(other.getGetCloudInstanceConfig()); - break; - } - case LIST_INSTANCE_CONFIGS: - { - mergeListInstanceConfigs(other.getListInstanceConfigs()); - break; - } - case CREATE_CLOUD_INSTANCE: - { - mergeCreateCloudInstance(other.getCreateCloudInstance()); - break; - } - case UPDATE_CLOUD_INSTANCE: - { - mergeUpdateCloudInstance(other.getUpdateCloudInstance()); - break; - } - case DELETE_CLOUD_INSTANCE: - { - mergeDeleteCloudInstance(other.getDeleteCloudInstance()); - break; - } - case LIST_CLOUD_INSTANCES: - { - mergeListCloudInstances(other.getListCloudInstances()); - break; - } - case GET_CLOUD_INSTANCE: - { - mergeGetCloudInstance(other.getGetCloudInstance()); - break; - } - case CREATE_CLOUD_DATABASE: - { - mergeCreateCloudDatabase(other.getCreateCloudDatabase()); - break; - } - case UPDATE_CLOUD_DATABASE_DDL: - { - mergeUpdateCloudDatabaseDdl(other.getUpdateCloudDatabaseDdl()); - break; - } - case UPDATE_CLOUD_DATABASE: - { - mergeUpdateCloudDatabase(other.getUpdateCloudDatabase()); - break; - } - case DROP_CLOUD_DATABASE: - { - mergeDropCloudDatabase(other.getDropCloudDatabase()); - break; - } - case LIST_CLOUD_DATABASES: - { - mergeListCloudDatabases(other.getListCloudDatabases()); - break; - } - case LIST_CLOUD_DATABASE_OPERATIONS: - { - mergeListCloudDatabaseOperations(other.getListCloudDatabaseOperations()); - break; - } - case RESTORE_CLOUD_DATABASE: - { - mergeRestoreCloudDatabase(other.getRestoreCloudDatabase()); - break; - } - case GET_CLOUD_DATABASE: - { - mergeGetCloudDatabase(other.getGetCloudDatabase()); - break; - } - case CREATE_CLOUD_BACKUP: - { - mergeCreateCloudBackup(other.getCreateCloudBackup()); - break; - } - case COPY_CLOUD_BACKUP: - { - mergeCopyCloudBackup(other.getCopyCloudBackup()); - break; - } - case GET_CLOUD_BACKUP: - { - mergeGetCloudBackup(other.getGetCloudBackup()); - break; - } - case UPDATE_CLOUD_BACKUP: - { - mergeUpdateCloudBackup(other.getUpdateCloudBackup()); - break; - } - case DELETE_CLOUD_BACKUP: - { - mergeDeleteCloudBackup(other.getDeleteCloudBackup()); - break; - } - case LIST_CLOUD_BACKUPS: - { - mergeListCloudBackups(other.getListCloudBackups()); - break; - } - case LIST_CLOUD_BACKUP_OPERATIONS: - { - mergeListCloudBackupOperations(other.getListCloudBackupOperations()); - break; - } - case GET_OPERATION: - { - mergeGetOperation(other.getGetOperation()); - break; - } - case CANCEL_OPERATION: - { - mergeCancelOperation(other.getCancelOperation()); - break; - } - case RECONFIGURE_CLOUD_DATABASE: - { - mergeReconfigureCloudDatabase(other.getReconfigureCloudDatabase()); - break; - } - case ACTION_NOT_SET: - { - break; - } + case CREATE_USER_INSTANCE_CONFIG: { + mergeCreateUserInstanceConfig(other.getCreateUserInstanceConfig()); + break; + } + case UPDATE_USER_INSTANCE_CONFIG: { + mergeUpdateUserInstanceConfig(other.getUpdateUserInstanceConfig()); + break; + } + case DELETE_USER_INSTANCE_CONFIG: { + mergeDeleteUserInstanceConfig(other.getDeleteUserInstanceConfig()); + break; + } + case GET_CLOUD_INSTANCE_CONFIG: { + mergeGetCloudInstanceConfig(other.getGetCloudInstanceConfig()); + break; + } + case LIST_INSTANCE_CONFIGS: { + mergeListInstanceConfigs(other.getListInstanceConfigs()); + break; + } + case CREATE_CLOUD_INSTANCE: { + mergeCreateCloudInstance(other.getCreateCloudInstance()); + break; + } + case UPDATE_CLOUD_INSTANCE: { + mergeUpdateCloudInstance(other.getUpdateCloudInstance()); + break; + } + case DELETE_CLOUD_INSTANCE: { + mergeDeleteCloudInstance(other.getDeleteCloudInstance()); + break; + } + case LIST_CLOUD_INSTANCES: { + mergeListCloudInstances(other.getListCloudInstances()); + break; + } + case GET_CLOUD_INSTANCE: { + mergeGetCloudInstance(other.getGetCloudInstance()); + break; + } + case CREATE_CLOUD_DATABASE: { + mergeCreateCloudDatabase(other.getCreateCloudDatabase()); + break; + } + case UPDATE_CLOUD_DATABASE_DDL: { + mergeUpdateCloudDatabaseDdl(other.getUpdateCloudDatabaseDdl()); + break; + } + case UPDATE_CLOUD_DATABASE: { + mergeUpdateCloudDatabase(other.getUpdateCloudDatabase()); + break; + } + case DROP_CLOUD_DATABASE: { + mergeDropCloudDatabase(other.getDropCloudDatabase()); + break; + } + case LIST_CLOUD_DATABASES: { + mergeListCloudDatabases(other.getListCloudDatabases()); + break; + } + case LIST_CLOUD_DATABASE_OPERATIONS: { + mergeListCloudDatabaseOperations(other.getListCloudDatabaseOperations()); + break; + } + case RESTORE_CLOUD_DATABASE: { + mergeRestoreCloudDatabase(other.getRestoreCloudDatabase()); + break; + } + case GET_CLOUD_DATABASE: { + mergeGetCloudDatabase(other.getGetCloudDatabase()); + break; + } + case CREATE_CLOUD_BACKUP: { + mergeCreateCloudBackup(other.getCreateCloudBackup()); + break; + } + case COPY_CLOUD_BACKUP: { + mergeCopyCloudBackup(other.getCopyCloudBackup()); + break; + } + case GET_CLOUD_BACKUP: { + mergeGetCloudBackup(other.getGetCloudBackup()); + break; + } + case UPDATE_CLOUD_BACKUP: { + mergeUpdateCloudBackup(other.getUpdateCloudBackup()); + break; + } + case DELETE_CLOUD_BACKUP: { + mergeDeleteCloudBackup(other.getDeleteCloudBackup()); + break; + } + case LIST_CLOUD_BACKUPS: { + mergeListCloudBackups(other.getListCloudBackups()); + break; + } + case LIST_CLOUD_BACKUP_OPERATIONS: { + mergeListCloudBackupOperations(other.getListCloudBackupOperations()); + break; + } + case GET_OPERATION: { + mergeGetOperation(other.getGetOperation()); + break; + } + case CANCEL_OPERATION: { + mergeCancelOperation(other.getCancelOperation()); + break; + } + case RECONFIGURE_CLOUD_DATABASE: { + mergeReconfigureCloudDatabase(other.getReconfigureCloudDatabase()); + break; + } + case ACTION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2760,205 +2381,208 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getCreateUserInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getUpdateUserInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - getDeleteUserInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getGetCloudInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage( - getListInstanceConfigsFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage( - getCreateCloudInstanceFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getUpdateCloudInstanceFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage( - getDeleteCloudInstanceFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage( - getListCloudInstancesFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage( - getGetCloudInstanceFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 10; - break; - } // case 82 - case 90: - { - input.readMessage( - getCreateCloudDatabaseFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 11; - break; - } // case 90 - case 98: - { - input.readMessage( - getUpdateCloudDatabaseDdlFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 12; - break; - } // case 98 - case 106: - { - input.readMessage( - getDropCloudDatabaseFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 13; - break; - } // case 106 - case 114: - { - input.readMessage( - getListCloudDatabasesFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 14; - break; - } // case 114 - case 122: - { - input.readMessage( - getListCloudDatabaseOperationsFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 15; - break; - } // case 122 - case 130: - { - input.readMessage( - getRestoreCloudDatabaseFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 16; - break; - } // case 130 - case 138: - { - input.readMessage( - getGetCloudDatabaseFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 17; - break; - } // case 138 - case 146: - { - input.readMessage( - getCreateCloudBackupFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 18; - break; - } // case 146 - case 154: - { - input.readMessage(getCopyCloudBackupFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 19; - break; - } // case 154 - case 162: - { - input.readMessage(getGetCloudBackupFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 20; - break; - } // case 162 - case 170: - { - input.readMessage( - getUpdateCloudBackupFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 21; - break; - } // case 170 - case 178: - { - input.readMessage( - getDeleteCloudBackupFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 22; - break; - } // case 178 - case 186: - { - input.readMessage( - getListCloudBackupsFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 23; - break; - } // case 186 - case 194: - { - input.readMessage( - getListCloudBackupOperationsFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 24; - break; - } // case 194 - case 202: - { - input.readMessage(getGetOperationFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 25; - break; - } // case 202 - case 210: - { - input.readMessage(getCancelOperationFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 26; - break; - } // case 210 - case 218: - { - input.readMessage( - getUpdateCloudDatabaseFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 27; - break; - } // case 218 - case 226: - { - input.readMessage( - getReconfigureCloudDatabaseFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 28; - break; - } // case 226 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateUserInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateUserInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getDeleteUserInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getGetCloudInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getListInstanceConfigsFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateCloudInstanceFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateCloudInstanceFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getDeleteCloudInstanceFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getListCloudInstancesFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getGetCloudInstanceFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 10; + break; + } // case 82 + case 90: { + input.readMessage( + getCreateCloudDatabaseFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 11; + break; + } // case 90 + case 98: { + input.readMessage( + getUpdateCloudDatabaseDdlFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 12; + break; + } // case 98 + case 106: { + input.readMessage( + getDropCloudDatabaseFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 13; + break; + } // case 106 + case 114: { + input.readMessage( + getListCloudDatabasesFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 14; + break; + } // case 114 + case 122: { + input.readMessage( + getListCloudDatabaseOperationsFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 15; + break; + } // case 122 + case 130: { + input.readMessage( + getRestoreCloudDatabaseFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 16; + break; + } // case 130 + case 138: { + input.readMessage( + getGetCloudDatabaseFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 17; + break; + } // case 138 + case 146: { + input.readMessage( + getCreateCloudBackupFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 18; + break; + } // case 146 + case 154: { + input.readMessage( + getCopyCloudBackupFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 19; + break; + } // case 154 + case 162: { + input.readMessage( + getGetCloudBackupFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 20; + break; + } // case 162 + case 170: { + input.readMessage( + getUpdateCloudBackupFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 21; + break; + } // case 170 + case 178: { + input.readMessage( + getDeleteCloudBackupFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 22; + break; + } // case 178 + case 186: { + input.readMessage( + getListCloudBackupsFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 23; + break; + } // case 186 + case 194: { + input.readMessage( + getListCloudBackupOperationsFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 24; + break; + } // case 194 + case 202: { + input.readMessage( + getGetOperationFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 25; + break; + } // case 202 + case 210: { + input.readMessage( + getCancelOperationFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 26; + break; + } // case 210 + case 218: { + input.readMessage( + getUpdateCloudDatabaseFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 27; + break; + } // case 218 + case 226: { + input.readMessage( + getReconfigureCloudDatabaseFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 28; + break; + } // case 226 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2968,12 +2592,12 @@ public Builder mergeFrom( } // finally return this; } - private int actionCase_ = 0; private java.lang.Object action_; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + public ActionCase + getActionCase() { + return ActionCase.forNumber( + actionCase_); } public Builder clearAction() { @@ -2986,21 +2610,13 @@ public Builder clearAction() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CreateUserInstanceConfigAction, - com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder, - com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder> - createUserInstanceConfigBuilder_; + com.google.spanner.executor.v1.CreateUserInstanceConfigAction, com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder, com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder> createUserInstanceConfigBuilder_; /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> - * + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> * @return Whether the createUserInstanceConfig field is set. */ @java.lang.Override @@ -3008,21 +2624,15 @@ public boolean hasCreateUserInstanceConfig() { return actionCase_ == 1; } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> - * + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> * @return The createUserInstanceConfig. */ @java.lang.Override - public com.google.spanner.executor.v1.CreateUserInstanceConfigAction - getCreateUserInstanceConfig() { + public com.google.spanner.executor.v1.CreateUserInstanceConfigAction getCreateUserInstanceConfig() { if (createUserInstanceConfigBuilder_ == null) { if (actionCase_ == 1) { return (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_; @@ -3036,18 +2646,13 @@ public boolean hasCreateUserInstanceConfig() { } } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ - public Builder setCreateUserInstanceConfig( - com.google.spanner.executor.v1.CreateUserInstanceConfigAction value) { + public Builder setCreateUserInstanceConfig(com.google.spanner.executor.v1.CreateUserInstanceConfigAction value) { if (createUserInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3061,15 +2666,11 @@ public Builder setCreateUserInstanceConfig( return this; } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ public Builder setCreateUserInstanceConfig( com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder builderForValue) { @@ -3083,28 +2684,18 @@ public Builder setCreateUserInstanceConfig( return this; } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ - public Builder mergeCreateUserInstanceConfig( - com.google.spanner.executor.v1.CreateUserInstanceConfigAction value) { + 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(); + 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; } @@ -3120,15 +2711,11 @@ public Builder mergeCreateUserInstanceConfig( return this; } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ public Builder clearCreateUserInstanceConfig() { if (createUserInstanceConfigBuilder_ == null) { @@ -3147,34 +2734,24 @@ public Builder clearCreateUserInstanceConfig() { return this; } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ - public com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder - getCreateUserInstanceConfigBuilder() { + public com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder getCreateUserInstanceConfigBuilder() { return getCreateUserInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder - getCreateUserInstanceConfigOrBuilder() { + public com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder getCreateUserInstanceConfigOrBuilder() { if ((actionCase_ == 1) && (createUserInstanceConfigBuilder_ != null)) { return createUserInstanceConfigBuilder_.getMessageOrBuilder(); } else { @@ -3185,31 +2762,21 @@ public Builder clearCreateUserInstanceConfig() { } } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ private 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, 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>( + 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()); @@ -3221,21 +2788,13 @@ public Builder clearCreateUserInstanceConfig() { } 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_; + com.google.spanner.executor.v1.UpdateUserInstanceConfigAction, com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder, com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder> updateUserInstanceConfigBuilder_; /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> * @return Whether the updateUserInstanceConfig field is set. */ @java.lang.Override @@ -3243,21 +2802,15 @@ public boolean hasUpdateUserInstanceConfig() { return actionCase_ == 2; } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> * @return The updateUserInstanceConfig. */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateUserInstanceConfigAction - getUpdateUserInstanceConfig() { + public com.google.spanner.executor.v1.UpdateUserInstanceConfigAction getUpdateUserInstanceConfig() { if (updateUserInstanceConfigBuilder_ == null) { if (actionCase_ == 2) { return (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_; @@ -3271,18 +2824,13 @@ public boolean hasUpdateUserInstanceConfig() { } } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ - public Builder setUpdateUserInstanceConfig( - com.google.spanner.executor.v1.UpdateUserInstanceConfigAction value) { + public Builder setUpdateUserInstanceConfig(com.google.spanner.executor.v1.UpdateUserInstanceConfigAction value) { if (updateUserInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3296,15 +2844,11 @@ public Builder setUpdateUserInstanceConfig( return this; } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ public Builder setUpdateUserInstanceConfig( com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder builderForValue) { @@ -3318,28 +2862,18 @@ public Builder setUpdateUserInstanceConfig( return this; } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ - public Builder mergeUpdateUserInstanceConfig( - com.google.spanner.executor.v1.UpdateUserInstanceConfigAction value) { + 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(); + 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; } @@ -3355,15 +2889,11 @@ public Builder mergeUpdateUserInstanceConfig( return this; } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ public Builder clearUpdateUserInstanceConfig() { if (updateUserInstanceConfigBuilder_ == null) { @@ -3382,34 +2912,24 @@ public Builder clearUpdateUserInstanceConfig() { return this; } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ - public com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder - getUpdateUserInstanceConfigBuilder() { + public com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder getUpdateUserInstanceConfigBuilder() { return getUpdateUserInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder - getUpdateUserInstanceConfigOrBuilder() { + public com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder getUpdateUserInstanceConfigOrBuilder() { if ((actionCase_ == 2) && (updateUserInstanceConfigBuilder_ != null)) { return updateUserInstanceConfigBuilder_.getMessageOrBuilder(); } else { @@ -3420,31 +2940,21 @@ public Builder clearUpdateUserInstanceConfig() { } } /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ private 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, 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>( + 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()); @@ -3456,21 +2966,13 @@ public Builder clearUpdateUserInstanceConfig() { } 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_; + com.google.spanner.executor.v1.DeleteUserInstanceConfigAction, com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder, com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder> deleteUserInstanceConfigBuilder_; /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> - * + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> * @return Whether the deleteUserInstanceConfig field is set. */ @java.lang.Override @@ -3478,21 +2980,15 @@ public boolean hasDeleteUserInstanceConfig() { return actionCase_ == 3; } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> - * + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> * @return The deleteUserInstanceConfig. */ @java.lang.Override - public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction - getDeleteUserInstanceConfig() { + public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction getDeleteUserInstanceConfig() { if (deleteUserInstanceConfigBuilder_ == null) { if (actionCase_ == 3) { return (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_; @@ -3506,18 +3002,13 @@ public boolean hasDeleteUserInstanceConfig() { } } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ - public Builder setDeleteUserInstanceConfig( - com.google.spanner.executor.v1.DeleteUserInstanceConfigAction value) { + public Builder setDeleteUserInstanceConfig(com.google.spanner.executor.v1.DeleteUserInstanceConfigAction value) { if (deleteUserInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3531,15 +3022,11 @@ public Builder setDeleteUserInstanceConfig( return this; } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ public Builder setDeleteUserInstanceConfig( com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder builderForValue) { @@ -3553,28 +3040,18 @@ public Builder setDeleteUserInstanceConfig( return this; } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ - public Builder mergeDeleteUserInstanceConfig( - com.google.spanner.executor.v1.DeleteUserInstanceConfigAction value) { + 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(); + 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; } @@ -3590,15 +3067,11 @@ public Builder mergeDeleteUserInstanceConfig( return this; } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ public Builder clearDeleteUserInstanceConfig() { if (deleteUserInstanceConfigBuilder_ == null) { @@ -3617,34 +3090,24 @@ public Builder clearDeleteUserInstanceConfig() { return this; } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ - public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder - getDeleteUserInstanceConfigBuilder() { + public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder getDeleteUserInstanceConfigBuilder() { return getDeleteUserInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder - getDeleteUserInstanceConfigOrBuilder() { + public com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder getDeleteUserInstanceConfigOrBuilder() { if ((actionCase_ == 3) && (deleteUserInstanceConfigBuilder_ != null)) { return deleteUserInstanceConfigBuilder_.getMessageOrBuilder(); } else { @@ -3655,31 +3118,21 @@ public Builder clearDeleteUserInstanceConfig() { } } /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ private 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, 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>( + 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()); @@ -3691,20 +3144,13 @@ public Builder clearDeleteUserInstanceConfig() { } 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_; + com.google.spanner.executor.v1.GetCloudInstanceConfigAction, com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder, com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder> getCloudInstanceConfigBuilder_; /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> - * + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> * @return Whether the getCloudInstanceConfig field is set. */ @java.lang.Override @@ -3712,15 +3158,11 @@ public boolean hasGetCloudInstanceConfig() { return actionCase_ == 4; } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> - * + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> * @return The getCloudInstanceConfig. */ @java.lang.Override @@ -3738,17 +3180,13 @@ public com.google.spanner.executor.v1.GetCloudInstanceConfigAction getGetCloudIn } } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ - public Builder setGetCloudInstanceConfig( - com.google.spanner.executor.v1.GetCloudInstanceConfigAction value) { + public Builder setGetCloudInstanceConfig(com.google.spanner.executor.v1.GetCloudInstanceConfigAction value) { if (getCloudInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3762,14 +3200,11 @@ public Builder setGetCloudInstanceConfig( return this; } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ public Builder setGetCloudInstanceConfig( com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder builderForValue) { @@ -3783,27 +3218,18 @@ public Builder setGetCloudInstanceConfig( return this; } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ - public Builder mergeGetCloudInstanceConfig( - com.google.spanner.executor.v1.GetCloudInstanceConfigAction value) { + 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(); + 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; } @@ -3819,14 +3245,11 @@ public Builder mergeGetCloudInstanceConfig( return this; } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ public Builder clearGetCloudInstanceConfig() { if (getCloudInstanceConfigBuilder_ == null) { @@ -3845,32 +3268,24 @@ public Builder clearGetCloudInstanceConfig() { return this; } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ - public com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder - getGetCloudInstanceConfigBuilder() { + public com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder getGetCloudInstanceConfigBuilder() { return getGetCloudInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder - getGetCloudInstanceConfigOrBuilder() { + public com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder getGetCloudInstanceConfigOrBuilder() { if ((actionCase_ == 4) && (getCloudInstanceConfigBuilder_ != null)) { return getCloudInstanceConfigBuilder_.getMessageOrBuilder(); } else { @@ -3881,30 +3296,21 @@ public Builder clearGetCloudInstanceConfig() { } } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ private 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, 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>( + 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()); @@ -3916,20 +3322,13 @@ public Builder clearGetCloudInstanceConfig() { } 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_; + com.google.spanner.executor.v1.ListCloudInstanceConfigsAction, com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder, com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder> listInstanceConfigsBuilder_; /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> * @return Whether the listInstanceConfigs field is set. */ @java.lang.Override @@ -3937,15 +3336,11 @@ public boolean hasListInstanceConfigs() { return actionCase_ == 5; } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> * @return The listInstanceConfigs. */ @java.lang.Override @@ -3962,18 +3357,14 @@ public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction getListInst return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance(); } } - /** - * - * + /** * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ - public Builder setListInstanceConfigs( - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction value) { + public Builder setListInstanceConfigs(com.google.spanner.executor.v1.ListCloudInstanceConfigsAction value) { if (listInstanceConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3987,14 +3378,11 @@ public Builder setListInstanceConfigs( return this; } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ public Builder setListInstanceConfigs( com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder builderForValue) { @@ -4008,27 +3396,18 @@ public Builder setListInstanceConfigs( return this; } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ - public Builder mergeListInstanceConfigs( - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction value) { + 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(); + 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; } @@ -4044,14 +3423,11 @@ public Builder mergeListInstanceConfigs( return this; } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ public Builder clearListInstanceConfigs() { if (listInstanceConfigsBuilder_ == null) { @@ -4070,32 +3446,24 @@ public Builder clearListInstanceConfigs() { return this; } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ - public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder - getListInstanceConfigsBuilder() { + public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder getListInstanceConfigsBuilder() { return getListInstanceConfigsFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder - getListInstanceConfigsOrBuilder() { + public com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder getListInstanceConfigsOrBuilder() { if ((actionCase_ == 5) && (listInstanceConfigsBuilder_ != null)) { return listInstanceConfigsBuilder_.getMessageOrBuilder(); } else { @@ -4106,30 +3474,21 @@ public Builder clearListInstanceConfigs() { } } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ private 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, 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>( + 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()); @@ -4141,19 +3500,13 @@ public Builder clearListInstanceConfigs() { } 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_; + com.google.spanner.executor.v1.CreateCloudInstanceAction, com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder, com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder> createCloudInstanceBuilder_; /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> - * * @return Whether the createCloudInstance field is set. */ @java.lang.Override @@ -4161,14 +3514,11 @@ public boolean hasCreateCloudInstance() { return actionCase_ == 6; } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> - * * @return The createCloudInstance. */ @java.lang.Override @@ -4186,16 +3536,13 @@ public com.google.spanner.executor.v1.CreateCloudInstanceAction getCreateCloudIn } } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> */ - public Builder setCreateCloudInstance( - com.google.spanner.executor.v1.CreateCloudInstanceAction value) { + public Builder setCreateCloudInstance(com.google.spanner.executor.v1.CreateCloudInstanceAction value) { if (createCloudInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4209,8 +3556,6 @@ public Builder setCreateCloudInstance( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> @@ -4229,25 +3574,18 @@ public Builder setCreateCloudInstance( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> */ - public Builder mergeCreateCloudInstance( - com.google.spanner.executor.v1.CreateCloudInstanceAction value) { + 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(); + 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; } @@ -4263,8 +3601,6 @@ public Builder mergeCreateCloudInstance( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> @@ -4288,21 +3624,16 @@ public Builder clearCreateCloudInstance() { return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> */ - public com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder - getCreateCloudInstanceBuilder() { + public com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder getCreateCloudInstanceBuilder() { return getCreateCloudInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> @@ -4310,8 +3641,7 @@ public Builder clearCreateCloudInstance() { * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder - getCreateCloudInstanceOrBuilder() { + public com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder getCreateCloudInstanceOrBuilder() { if ((actionCase_ == 6) && (createCloudInstanceBuilder_ != null)) { return createCloudInstanceBuilder_.getMessageOrBuilder(); } else { @@ -4322,8 +3652,6 @@ public Builder clearCreateCloudInstance() { } } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> @@ -4331,19 +3659,14 @@ public Builder clearCreateCloudInstance() { * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> */ private 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, 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>( + 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()); @@ -4355,19 +3678,13 @@ public Builder clearCreateCloudInstance() { } 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_; + com.google.spanner.executor.v1.UpdateCloudInstanceAction, com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder, com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder> updateCloudInstanceBuilder_; /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> - * * @return Whether the updateCloudInstance field is set. */ @java.lang.Override @@ -4375,14 +3692,11 @@ public boolean hasUpdateCloudInstance() { return actionCase_ == 7; } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> - * * @return The updateCloudInstance. */ @java.lang.Override @@ -4400,16 +3714,13 @@ public com.google.spanner.executor.v1.UpdateCloudInstanceAction getUpdateCloudIn } } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> */ - public Builder setUpdateCloudInstance( - com.google.spanner.executor.v1.UpdateCloudInstanceAction value) { + public Builder setUpdateCloudInstance(com.google.spanner.executor.v1.UpdateCloudInstanceAction value) { if (updateCloudInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4423,8 +3734,6 @@ public Builder setUpdateCloudInstance( return this; } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> @@ -4443,25 +3752,18 @@ public Builder setUpdateCloudInstance( return this; } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> */ - public Builder mergeUpdateCloudInstance( - com.google.spanner.executor.v1.UpdateCloudInstanceAction value) { + 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(); + 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; } @@ -4477,8 +3779,6 @@ public Builder mergeUpdateCloudInstance( return this; } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> @@ -4502,21 +3802,16 @@ public Builder clearUpdateCloudInstance() { return this; } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> */ - public com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder - getUpdateCloudInstanceBuilder() { + public com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder getUpdateCloudInstanceBuilder() { return getUpdateCloudInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> @@ -4524,8 +3819,7 @@ public Builder clearUpdateCloudInstance() { * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder - getUpdateCloudInstanceOrBuilder() { + public com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder getUpdateCloudInstanceOrBuilder() { if ((actionCase_ == 7) && (updateCloudInstanceBuilder_ != null)) { return updateCloudInstanceBuilder_.getMessageOrBuilder(); } else { @@ -4536,8 +3830,6 @@ public Builder clearUpdateCloudInstance() { } } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> @@ -4545,19 +3837,14 @@ public Builder clearUpdateCloudInstance() { * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> */ private 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, 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>( + 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()); @@ -4569,19 +3856,13 @@ public Builder clearUpdateCloudInstance() { } 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_; + com.google.spanner.executor.v1.DeleteCloudInstanceAction, com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder, com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder> deleteCloudInstanceBuilder_; /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> - * * @return Whether the deleteCloudInstance field is set. */ @java.lang.Override @@ -4589,14 +3870,11 @@ public boolean hasDeleteCloudInstance() { return actionCase_ == 8; } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> - * * @return The deleteCloudInstance. */ @java.lang.Override @@ -4614,16 +3892,13 @@ public com.google.spanner.executor.v1.DeleteCloudInstanceAction getDeleteCloudIn } } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> */ - public Builder setDeleteCloudInstance( - com.google.spanner.executor.v1.DeleteCloudInstanceAction value) { + public Builder setDeleteCloudInstance(com.google.spanner.executor.v1.DeleteCloudInstanceAction value) { if (deleteCloudInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4637,8 +3912,6 @@ public Builder setDeleteCloudInstance( return this; } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> @@ -4657,25 +3930,18 @@ public Builder setDeleteCloudInstance( return this; } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> */ - public Builder mergeDeleteCloudInstance( - com.google.spanner.executor.v1.DeleteCloudInstanceAction value) { + 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(); + 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; } @@ -4691,8 +3957,6 @@ public Builder mergeDeleteCloudInstance( return this; } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> @@ -4716,21 +3980,16 @@ public Builder clearDeleteCloudInstance() { return this; } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> */ - public com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder - getDeleteCloudInstanceBuilder() { + public com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder getDeleteCloudInstanceBuilder() { return getDeleteCloudInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> @@ -4738,8 +3997,7 @@ public Builder clearDeleteCloudInstance() { * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder - getDeleteCloudInstanceOrBuilder() { + public com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder getDeleteCloudInstanceOrBuilder() { if ((actionCase_ == 8) && (deleteCloudInstanceBuilder_ != null)) { return deleteCloudInstanceBuilder_.getMessageOrBuilder(); } else { @@ -4750,8 +4008,6 @@ public Builder clearDeleteCloudInstance() { } } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> @@ -4759,19 +4015,14 @@ public Builder clearDeleteCloudInstance() { * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> */ private 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, 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>( + 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()); @@ -4783,19 +4034,13 @@ public Builder clearDeleteCloudInstance() { } 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_; + com.google.spanner.executor.v1.ListCloudInstancesAction, com.google.spanner.executor.v1.ListCloudInstancesAction.Builder, com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder> listCloudInstancesBuilder_; /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> - * * @return Whether the listCloudInstances field is set. */ @java.lang.Override @@ -4803,14 +4048,11 @@ public boolean hasListCloudInstances() { return actionCase_ == 9; } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> - * * @return The listCloudInstances. */ @java.lang.Override @@ -4828,16 +4070,13 @@ public com.google.spanner.executor.v1.ListCloudInstancesAction getListCloudInsta } } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> */ - public Builder setListCloudInstances( - com.google.spanner.executor.v1.ListCloudInstancesAction value) { + public Builder setListCloudInstances(com.google.spanner.executor.v1.ListCloudInstancesAction value) { if (listCloudInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4851,8 +4090,6 @@ public Builder setListCloudInstances( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> @@ -4871,25 +4108,18 @@ public Builder setListCloudInstances( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> */ - public Builder mergeListCloudInstances( - com.google.spanner.executor.v1.ListCloudInstancesAction value) { + 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(); + 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; } @@ -4905,8 +4135,6 @@ public Builder mergeListCloudInstances( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> @@ -4930,21 +4158,16 @@ public Builder clearListCloudInstances() { return this; } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> */ - public com.google.spanner.executor.v1.ListCloudInstancesAction.Builder - getListCloudInstancesBuilder() { + public com.google.spanner.executor.v1.ListCloudInstancesAction.Builder getListCloudInstancesBuilder() { return getListCloudInstancesFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> @@ -4952,8 +4175,7 @@ public Builder clearListCloudInstances() { * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder - getListCloudInstancesOrBuilder() { + public com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder getListCloudInstancesOrBuilder() { if ((actionCase_ == 9) && (listCloudInstancesBuilder_ != null)) { return listCloudInstancesBuilder_.getMessageOrBuilder(); } else { @@ -4964,8 +4186,6 @@ public Builder clearListCloudInstances() { } } /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> @@ -4973,19 +4193,14 @@ public Builder clearListCloudInstances() { * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> */ private 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, 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>( + 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()); @@ -4997,19 +4212,13 @@ public Builder clearListCloudInstances() { } 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_; + com.google.spanner.executor.v1.GetCloudInstanceAction, com.google.spanner.executor.v1.GetCloudInstanceAction.Builder, com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder> getCloudInstanceBuilder_; /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> - * * @return Whether the getCloudInstance field is set. */ @java.lang.Override @@ -5017,14 +4226,11 @@ public boolean hasGetCloudInstance() { return actionCase_ == 10; } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> - * * @return The getCloudInstance. */ @java.lang.Override @@ -5042,16 +4248,13 @@ public com.google.spanner.executor.v1.GetCloudInstanceAction getGetCloudInstance } } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> */ - public Builder setGetCloudInstance( - com.google.spanner.executor.v1.GetCloudInstanceAction value) { + public Builder setGetCloudInstance(com.google.spanner.executor.v1.GetCloudInstanceAction value) { if (getCloudInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5065,8 +4268,6 @@ public Builder setGetCloudInstance( return this; } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> @@ -5085,25 +4286,18 @@ public Builder setGetCloudInstance( return this; } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> */ - public Builder mergeGetCloudInstance( - com.google.spanner.executor.v1.GetCloudInstanceAction value) { + 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(); + 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; } @@ -5119,8 +4313,6 @@ public Builder mergeGetCloudInstance( return this; } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> @@ -5144,21 +4336,16 @@ public Builder clearGetCloudInstance() { return this; } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> */ - public com.google.spanner.executor.v1.GetCloudInstanceAction.Builder - getGetCloudInstanceBuilder() { + public com.google.spanner.executor.v1.GetCloudInstanceAction.Builder getGetCloudInstanceBuilder() { return getGetCloudInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> @@ -5166,8 +4353,7 @@ public Builder clearGetCloudInstance() { * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder - getGetCloudInstanceOrBuilder() { + public com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder getGetCloudInstanceOrBuilder() { if ((actionCase_ == 10) && (getCloudInstanceBuilder_ != null)) { return getCloudInstanceBuilder_.getMessageOrBuilder(); } else { @@ -5178,8 +4364,6 @@ public Builder clearGetCloudInstance() { } } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> @@ -5187,19 +4371,14 @@ public Builder clearGetCloudInstance() { * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> */ private 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, 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>( + 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()); @@ -5211,20 +4390,13 @@ public Builder clearGetCloudInstance() { } 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_; + com.google.spanner.executor.v1.CreateCloudDatabaseAction, com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder, com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder> createCloudDatabaseBuilder_; /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> - * + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> * @return Whether the createCloudDatabase field is set. */ @java.lang.Override @@ -5232,15 +4404,11 @@ public boolean hasCreateCloudDatabase() { return actionCase_ == 11; } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> - * + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> * @return The createCloudDatabase. */ @java.lang.Override @@ -5258,17 +4426,13 @@ public com.google.spanner.executor.v1.CreateCloudDatabaseAction getCreateCloudDa } } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ - public Builder setCreateCloudDatabase( - com.google.spanner.executor.v1.CreateCloudDatabaseAction value) { + public Builder setCreateCloudDatabase(com.google.spanner.executor.v1.CreateCloudDatabaseAction value) { if (createCloudDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5282,14 +4446,11 @@ public Builder setCreateCloudDatabase( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ public Builder setCreateCloudDatabase( com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder builderForValue) { @@ -5303,26 +4464,18 @@ public Builder setCreateCloudDatabase( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ - public Builder mergeCreateCloudDatabase( - com.google.spanner.executor.v1.CreateCloudDatabaseAction value) { + 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(); + 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; } @@ -5338,14 +4491,11 @@ public Builder mergeCreateCloudDatabase( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ public Builder clearCreateCloudDatabase() { if (createCloudDatabaseBuilder_ == null) { @@ -5364,32 +4514,24 @@ public Builder clearCreateCloudDatabase() { return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ - public com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder - getCreateCloudDatabaseBuilder() { + public com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder getCreateCloudDatabaseBuilder() { return getCreateCloudDatabaseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder - getCreateCloudDatabaseOrBuilder() { + public com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder getCreateCloudDatabaseOrBuilder() { if ((actionCase_ == 11) && (createCloudDatabaseBuilder_ != null)) { return createCloudDatabaseBuilder_.getMessageOrBuilder(); } else { @@ -5400,29 +4542,21 @@ public Builder clearCreateCloudDatabase() { } } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11; - * </code> + * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ private 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, 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>( + 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()); @@ -5434,21 +4568,13 @@ public Builder clearCreateCloudDatabase() { } 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_; + com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction, com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder, com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder> updateCloudDatabaseDdlBuilder_; /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> * @return Whether the updateCloudDatabaseDdl field is set. */ @java.lang.Override @@ -5456,16 +4582,11 @@ public boolean hasUpdateCloudDatabaseDdl() { return actionCase_ == 12; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> * @return The updateCloudDatabaseDdl. */ @java.lang.Override @@ -5483,18 +4604,13 @@ public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction getUpdateClou } } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ - public Builder setUpdateCloudDatabaseDdl( - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction value) { + public Builder setUpdateCloudDatabaseDdl(com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction value) { if (updateCloudDatabaseDdlBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5508,15 +4624,11 @@ public Builder setUpdateCloudDatabaseDdl( return this; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ public Builder setUpdateCloudDatabaseDdl( com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder builderForValue) { @@ -5530,28 +4642,18 @@ public Builder setUpdateCloudDatabaseDdl( return this; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ - public Builder mergeUpdateCloudDatabaseDdl( - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction value) { + 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(); + 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; } @@ -5567,15 +4669,11 @@ public Builder mergeUpdateCloudDatabaseDdl( return this; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ public Builder clearUpdateCloudDatabaseDdl() { if (updateCloudDatabaseDdlBuilder_ == null) { @@ -5594,34 +4692,24 @@ public Builder clearUpdateCloudDatabaseDdl() { return this; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ - public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder - getUpdateCloudDatabaseDdlBuilder() { + public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder getUpdateCloudDatabaseDdlBuilder() { return getUpdateCloudDatabaseDdlFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder - getUpdateCloudDatabaseDdlOrBuilder() { + public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder getUpdateCloudDatabaseDdlOrBuilder() { if ((actionCase_ == 12) && (updateCloudDatabaseDdlBuilder_ != null)) { return updateCloudDatabaseDdlBuilder_.getMessageOrBuilder(); } else { @@ -5632,31 +4720,21 @@ public Builder clearUpdateCloudDatabaseDdl() { } } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ private 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, 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>( + 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()); @@ -5668,20 +4746,13 @@ public Builder clearUpdateCloudDatabaseDdl() { } 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_; + com.google.spanner.executor.v1.UpdateCloudDatabaseAction, com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder, com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder> updateCloudDatabaseBuilder_; /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> * @return Whether the updateCloudDatabase field is set. */ @java.lang.Override @@ -5689,15 +4760,11 @@ public boolean hasUpdateCloudDatabase() { return actionCase_ == 27; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> * @return The updateCloudDatabase. */ @java.lang.Override @@ -5715,17 +4782,13 @@ public com.google.spanner.executor.v1.UpdateCloudDatabaseAction getUpdateCloudDa } } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ - public Builder setUpdateCloudDatabase( - com.google.spanner.executor.v1.UpdateCloudDatabaseAction value) { + public Builder setUpdateCloudDatabase(com.google.spanner.executor.v1.UpdateCloudDatabaseAction value) { if (updateCloudDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5739,14 +4802,11 @@ public Builder setUpdateCloudDatabase( return this; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ public Builder setUpdateCloudDatabase( com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder builderForValue) { @@ -5760,26 +4820,18 @@ public Builder setUpdateCloudDatabase( return this; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ - public Builder mergeUpdateCloudDatabase( - com.google.spanner.executor.v1.UpdateCloudDatabaseAction value) { + 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(); + 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; } @@ -5795,14 +4847,11 @@ public Builder mergeUpdateCloudDatabase( return this; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ public Builder clearUpdateCloudDatabase() { if (updateCloudDatabaseBuilder_ == null) { @@ -5821,32 +4870,24 @@ public Builder clearUpdateCloudDatabase() { return this; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ - public com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder - getUpdateCloudDatabaseBuilder() { + public com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder getUpdateCloudDatabaseBuilder() { return getUpdateCloudDatabaseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder - getUpdateCloudDatabaseOrBuilder() { + public com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder getUpdateCloudDatabaseOrBuilder() { if ((actionCase_ == 27) && (updateCloudDatabaseBuilder_ != null)) { return updateCloudDatabaseBuilder_.getMessageOrBuilder(); } else { @@ -5857,29 +4898,21 @@ public Builder clearUpdateCloudDatabase() { } } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ private 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, 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>( + 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()); @@ -5891,19 +4924,13 @@ public Builder clearUpdateCloudDatabase() { } 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_; + com.google.spanner.executor.v1.DropCloudDatabaseAction, com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder, com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder> dropCloudDatabaseBuilder_; /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> - * * @return Whether the dropCloudDatabase field is set. */ @java.lang.Override @@ -5911,14 +4938,11 @@ public boolean hasDropCloudDatabase() { return actionCase_ == 13; } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> - * * @return The dropCloudDatabase. */ @java.lang.Override @@ -5936,16 +4960,13 @@ public com.google.spanner.executor.v1.DropCloudDatabaseAction getDropCloudDataba } } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> */ - public Builder setDropCloudDatabase( - com.google.spanner.executor.v1.DropCloudDatabaseAction value) { + public Builder setDropCloudDatabase(com.google.spanner.executor.v1.DropCloudDatabaseAction value) { if (dropCloudDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5959,8 +4980,6 @@ public Builder setDropCloudDatabase( return this; } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> @@ -5979,25 +4998,18 @@ public Builder setDropCloudDatabase( return this; } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> */ - public Builder mergeDropCloudDatabase( - com.google.spanner.executor.v1.DropCloudDatabaseAction value) { + 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(); + 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; } @@ -6013,8 +5025,6 @@ public Builder mergeDropCloudDatabase( return this; } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> @@ -6038,21 +5048,16 @@ public Builder clearDropCloudDatabase() { return this; } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> */ - public com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder - getDropCloudDatabaseBuilder() { + public com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder getDropCloudDatabaseBuilder() { return getDropCloudDatabaseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> @@ -6060,8 +5065,7 @@ public Builder clearDropCloudDatabase() { * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder - getDropCloudDatabaseOrBuilder() { + public com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder getDropCloudDatabaseOrBuilder() { if ((actionCase_ == 13) && (dropCloudDatabaseBuilder_ != null)) { return dropCloudDatabaseBuilder_.getMessageOrBuilder(); } else { @@ -6072,8 +5076,6 @@ public Builder clearDropCloudDatabase() { } } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> @@ -6081,19 +5083,14 @@ public Builder clearDropCloudDatabase() { * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> */ private 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, 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>( + 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()); @@ -6105,19 +5102,13 @@ public Builder clearDropCloudDatabase() { } 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_; + com.google.spanner.executor.v1.ListCloudDatabasesAction, com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder, com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder> listCloudDatabasesBuilder_; /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> - * * @return Whether the listCloudDatabases field is set. */ @java.lang.Override @@ -6125,14 +5116,11 @@ public boolean hasListCloudDatabases() { return actionCase_ == 14; } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> - * * @return The listCloudDatabases. */ @java.lang.Override @@ -6150,16 +5138,13 @@ public com.google.spanner.executor.v1.ListCloudDatabasesAction getListCloudDatab } } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> */ - public Builder setListCloudDatabases( - com.google.spanner.executor.v1.ListCloudDatabasesAction value) { + public Builder setListCloudDatabases(com.google.spanner.executor.v1.ListCloudDatabasesAction value) { if (listCloudDatabasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6173,8 +5158,6 @@ public Builder setListCloudDatabases( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> @@ -6193,25 +5176,18 @@ public Builder setListCloudDatabases( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> */ - public Builder mergeListCloudDatabases( - com.google.spanner.executor.v1.ListCloudDatabasesAction value) { + 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(); + 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; } @@ -6227,8 +5203,6 @@ public Builder mergeListCloudDatabases( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> @@ -6252,21 +5226,16 @@ public Builder clearListCloudDatabases() { return this; } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> */ - public com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder - getListCloudDatabasesBuilder() { + public com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder getListCloudDatabasesBuilder() { return getListCloudDatabasesFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> @@ -6274,8 +5243,7 @@ public Builder clearListCloudDatabases() { * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder - getListCloudDatabasesOrBuilder() { + public com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder getListCloudDatabasesOrBuilder() { if ((actionCase_ == 14) && (listCloudDatabasesBuilder_ != null)) { return listCloudDatabasesBuilder_.getMessageOrBuilder(); } else { @@ -6286,8 +5254,6 @@ public Builder clearListCloudDatabases() { } } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> @@ -6295,19 +5261,14 @@ public Builder clearListCloudDatabases() { * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> */ private 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, 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>( + 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()); @@ -6319,21 +5280,13 @@ public Builder clearListCloudDatabases() { } 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_; + com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction, com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder, com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder> listCloudDatabaseOperationsBuilder_; /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> * @return Whether the listCloudDatabaseOperations field is set. */ @java.lang.Override @@ -6341,48 +5294,35 @@ public boolean hasListCloudDatabaseOperations() { return actionCase_ == 15; } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> * @return The listCloudDatabaseOperations. */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction - getListCloudDatabaseOperations() { + 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(); + return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance(); } else { if (actionCase_ == 15) { return listCloudDatabaseOperationsBuilder_.getMessage(); } - return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction - .getDefaultInstance(); + return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance(); } } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ - public Builder setListCloudDatabaseOperations( - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction value) { + public Builder setListCloudDatabaseOperations(com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction value) { if (listCloudDatabaseOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6396,15 +5336,11 @@ public Builder setListCloudDatabaseOperations( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ public Builder setListCloudDatabaseOperations( com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder builderForValue) { @@ -6418,28 +5354,18 @@ public Builder setListCloudDatabaseOperations( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ - public Builder mergeListCloudDatabaseOperations( - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction value) { + 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(); + 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; } @@ -6455,15 +5381,11 @@ public Builder mergeListCloudDatabaseOperations( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ public Builder clearListCloudDatabaseOperations() { if (listCloudDatabaseOperationsBuilder_ == null) { @@ -6482,70 +5404,49 @@ public Builder clearListCloudDatabaseOperations() { return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ - public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder - getListCloudDatabaseOperationsBuilder() { + public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder getListCloudDatabaseOperationsBuilder() { return getListCloudDatabaseOperationsFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder - getListCloudDatabaseOperationsOrBuilder() { + 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(); + return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance(); } } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ private 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, 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>( + 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()); @@ -6557,20 +5458,13 @@ public Builder clearListCloudDatabaseOperations() { } 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_; + com.google.spanner.executor.v1.RestoreCloudDatabaseAction, com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder, com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder> restoreCloudDatabaseBuilder_; /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> - * + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> * @return Whether the restoreCloudDatabase field is set. */ @java.lang.Override @@ -6578,15 +5472,11 @@ public boolean hasRestoreCloudDatabase() { return actionCase_ == 16; } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> - * + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> * @return The restoreCloudDatabase. */ @java.lang.Override @@ -6604,17 +5494,13 @@ public com.google.spanner.executor.v1.RestoreCloudDatabaseAction getRestoreCloud } } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ - public Builder setRestoreCloudDatabase( - com.google.spanner.executor.v1.RestoreCloudDatabaseAction value) { + public Builder setRestoreCloudDatabase(com.google.spanner.executor.v1.RestoreCloudDatabaseAction value) { if (restoreCloudDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6628,14 +5514,11 @@ public Builder setRestoreCloudDatabase( return this; } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ public Builder setRestoreCloudDatabase( com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder builderForValue) { @@ -6649,26 +5532,18 @@ public Builder setRestoreCloudDatabase( return this; } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ - public Builder mergeRestoreCloudDatabase( - com.google.spanner.executor.v1.RestoreCloudDatabaseAction value) { + 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(); + 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; } @@ -6684,14 +5559,11 @@ public Builder mergeRestoreCloudDatabase( return this; } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ public Builder clearRestoreCloudDatabase() { if (restoreCloudDatabaseBuilder_ == null) { @@ -6710,32 +5582,24 @@ public Builder clearRestoreCloudDatabase() { return this; } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ - public com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder - getRestoreCloudDatabaseBuilder() { + public com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder getRestoreCloudDatabaseBuilder() { return getRestoreCloudDatabaseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder - getRestoreCloudDatabaseOrBuilder() { + public com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder getRestoreCloudDatabaseOrBuilder() { if ((actionCase_ == 16) && (restoreCloudDatabaseBuilder_ != null)) { return restoreCloudDatabaseBuilder_.getMessageOrBuilder(); } else { @@ -6746,29 +5610,21 @@ public Builder clearRestoreCloudDatabase() { } } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ private 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, 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>( + 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()); @@ -6780,19 +5636,13 @@ public Builder clearRestoreCloudDatabase() { } 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_; + com.google.spanner.executor.v1.GetCloudDatabaseAction, com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder, com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder> getCloudDatabaseBuilder_; /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> - * * @return Whether the getCloudDatabase field is set. */ @java.lang.Override @@ -6800,14 +5650,11 @@ public boolean hasGetCloudDatabase() { return actionCase_ == 17; } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> - * * @return The getCloudDatabase. */ @java.lang.Override @@ -6825,16 +5672,13 @@ public com.google.spanner.executor.v1.GetCloudDatabaseAction getGetCloudDatabase } } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> */ - public Builder setGetCloudDatabase( - com.google.spanner.executor.v1.GetCloudDatabaseAction value) { + public Builder setGetCloudDatabase(com.google.spanner.executor.v1.GetCloudDatabaseAction value) { if (getCloudDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6848,8 +5692,6 @@ public Builder setGetCloudDatabase( return this; } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> @@ -6868,25 +5710,18 @@ public Builder setGetCloudDatabase( return this; } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> */ - public Builder mergeGetCloudDatabase( - com.google.spanner.executor.v1.GetCloudDatabaseAction value) { + 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(); + 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; } @@ -6902,8 +5737,6 @@ public Builder mergeGetCloudDatabase( return this; } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> @@ -6927,21 +5760,16 @@ public Builder clearGetCloudDatabase() { return this; } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> */ - public com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder - getGetCloudDatabaseBuilder() { + public com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder getGetCloudDatabaseBuilder() { return getGetCloudDatabaseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> @@ -6949,8 +5777,7 @@ public Builder clearGetCloudDatabase() { * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder - getGetCloudDatabaseOrBuilder() { + public com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder getGetCloudDatabaseOrBuilder() { if ((actionCase_ == 17) && (getCloudDatabaseBuilder_ != null)) { return getCloudDatabaseBuilder_.getMessageOrBuilder(); } else { @@ -6961,8 +5788,6 @@ public Builder clearGetCloudDatabase() { } } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> @@ -6970,19 +5795,14 @@ public Builder clearGetCloudDatabase() { * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> */ private 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, 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>( + 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()); @@ -6994,19 +5814,13 @@ public Builder clearGetCloudDatabase() { } 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_; + com.google.spanner.executor.v1.CreateCloudBackupAction, com.google.spanner.executor.v1.CreateCloudBackupAction.Builder, com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder> createCloudBackupBuilder_; /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> - * * @return Whether the createCloudBackup field is set. */ @java.lang.Override @@ -7014,14 +5828,11 @@ public boolean hasCreateCloudBackup() { return actionCase_ == 18; } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> - * * @return The createCloudBackup. */ @java.lang.Override @@ -7039,16 +5850,13 @@ public com.google.spanner.executor.v1.CreateCloudBackupAction getCreateCloudBack } } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> */ - public Builder setCreateCloudBackup( - com.google.spanner.executor.v1.CreateCloudBackupAction value) { + public Builder setCreateCloudBackup(com.google.spanner.executor.v1.CreateCloudBackupAction value) { if (createCloudBackupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7062,8 +5870,6 @@ public Builder setCreateCloudBackup( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> @@ -7082,25 +5888,18 @@ public Builder setCreateCloudBackup( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> */ - public Builder mergeCreateCloudBackup( - com.google.spanner.executor.v1.CreateCloudBackupAction value) { + 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(); + 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; } @@ -7116,8 +5915,6 @@ public Builder mergeCreateCloudBackup( return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> @@ -7141,21 +5938,16 @@ public Builder clearCreateCloudBackup() { return this; } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> */ - public com.google.spanner.executor.v1.CreateCloudBackupAction.Builder - getCreateCloudBackupBuilder() { + public com.google.spanner.executor.v1.CreateCloudBackupAction.Builder getCreateCloudBackupBuilder() { return getCreateCloudBackupFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> @@ -7163,8 +5955,7 @@ public Builder clearCreateCloudBackup() { * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder - getCreateCloudBackupOrBuilder() { + public com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder getCreateCloudBackupOrBuilder() { if ((actionCase_ == 18) && (createCloudBackupBuilder_ != null)) { return createCloudBackupBuilder_.getMessageOrBuilder(); } else { @@ -7175,8 +5966,6 @@ public Builder clearCreateCloudBackup() { } } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> @@ -7184,19 +5973,14 @@ public Builder clearCreateCloudBackup() { * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> */ private 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, 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>( + 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()); @@ -7208,19 +5992,13 @@ public Builder clearCreateCloudBackup() { } 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_; + com.google.spanner.executor.v1.CopyCloudBackupAction, com.google.spanner.executor.v1.CopyCloudBackupAction.Builder, com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder> copyCloudBackupBuilder_; /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> - * * @return Whether the copyCloudBackup field is set. */ @java.lang.Override @@ -7228,14 +6006,11 @@ public boolean hasCopyCloudBackup() { return actionCase_ == 19; } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> - * * @return The copyCloudBackup. */ @java.lang.Override @@ -7253,8 +6028,6 @@ public com.google.spanner.executor.v1.CopyCloudBackupAction getCopyCloudBackup() } } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> @@ -7275,8 +6048,6 @@ public Builder setCopyCloudBackup(com.google.spanner.executor.v1.CopyCloudBackup return this; } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> @@ -7295,25 +6066,18 @@ public Builder setCopyCloudBackup( return this; } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> */ - public Builder mergeCopyCloudBackup( - com.google.spanner.executor.v1.CopyCloudBackupAction value) { + 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(); + 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; } @@ -7329,8 +6093,6 @@ public Builder mergeCopyCloudBackup( return this; } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> @@ -7354,21 +6116,16 @@ public Builder clearCopyCloudBackup() { return this; } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> */ - public com.google.spanner.executor.v1.CopyCloudBackupAction.Builder - getCopyCloudBackupBuilder() { + public com.google.spanner.executor.v1.CopyCloudBackupAction.Builder getCopyCloudBackupBuilder() { return getCopyCloudBackupFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> @@ -7376,8 +6133,7 @@ public Builder clearCopyCloudBackup() { * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder - getCopyCloudBackupOrBuilder() { + public com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder getCopyCloudBackupOrBuilder() { if ((actionCase_ == 19) && (copyCloudBackupBuilder_ != null)) { return copyCloudBackupBuilder_.getMessageOrBuilder(); } else { @@ -7388,8 +6144,6 @@ public Builder clearCopyCloudBackup() { } } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> @@ -7397,19 +6151,14 @@ public Builder clearCopyCloudBackup() { * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> */ private 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, 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>( + 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()); @@ -7421,19 +6170,13 @@ public Builder clearCopyCloudBackup() { } 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_; + com.google.spanner.executor.v1.GetCloudBackupAction, com.google.spanner.executor.v1.GetCloudBackupAction.Builder, com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder> getCloudBackupBuilder_; /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;</code> - * * @return Whether the getCloudBackup field is set. */ @java.lang.Override @@ -7441,14 +6184,11 @@ public boolean hasGetCloudBackup() { return actionCase_ == 20; } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;</code> - * * @return The getCloudBackup. */ @java.lang.Override @@ -7466,8 +6206,6 @@ public com.google.spanner.executor.v1.GetCloudBackupAction getGetCloudBackup() { } } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -7488,8 +6226,6 @@ public Builder setGetCloudBackup(com.google.spanner.executor.v1.GetCloudBackupAc return this; } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -7508,8 +6244,6 @@ public Builder setGetCloudBackup( return this; } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -7518,14 +6252,10 @@ public Builder setGetCloudBackup( */ 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(); + 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; } @@ -7541,8 +6271,6 @@ public Builder mergeGetCloudBackup(com.google.spanner.executor.v1.GetCloudBackup return this; } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -7566,8 +6294,6 @@ public Builder clearGetCloudBackup() { return this; } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -7578,8 +6304,6 @@ public com.google.spanner.executor.v1.GetCloudBackupAction.Builder getGetCloudBa return getGetCloudBackupFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -7587,8 +6311,7 @@ public com.google.spanner.executor.v1.GetCloudBackupAction.Builder getGetCloudBa * <code>.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder - getGetCloudBackupOrBuilder() { + public com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder getGetCloudBackupOrBuilder() { if ((actionCase_ == 20) && (getCloudBackupBuilder_ != null)) { return getCloudBackupBuilder_.getMessageOrBuilder(); } else { @@ -7599,8 +6322,6 @@ public com.google.spanner.executor.v1.GetCloudBackupAction.Builder getGetCloudBa } } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -7608,19 +6329,14 @@ public com.google.spanner.executor.v1.GetCloudBackupAction.Builder getGetCloudBa * <code>.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;</code> */ private 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, 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>( + 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()); @@ -7632,19 +6348,13 @@ public com.google.spanner.executor.v1.GetCloudBackupAction.Builder getGetCloudBa } 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_; + com.google.spanner.executor.v1.UpdateCloudBackupAction, com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder, com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder> updateCloudBackupBuilder_; /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> - * * @return Whether the updateCloudBackup field is set. */ @java.lang.Override @@ -7652,14 +6362,11 @@ public boolean hasUpdateCloudBackup() { return actionCase_ == 21; } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> - * * @return The updateCloudBackup. */ @java.lang.Override @@ -7677,16 +6384,13 @@ public com.google.spanner.executor.v1.UpdateCloudBackupAction getUpdateCloudBack } } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> */ - public Builder setUpdateCloudBackup( - com.google.spanner.executor.v1.UpdateCloudBackupAction value) { + public Builder setUpdateCloudBackup(com.google.spanner.executor.v1.UpdateCloudBackupAction value) { if (updateCloudBackupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7700,8 +6404,6 @@ public Builder setUpdateCloudBackup( return this; } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> @@ -7720,25 +6422,18 @@ public Builder setUpdateCloudBackup( return this; } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> */ - public Builder mergeUpdateCloudBackup( - com.google.spanner.executor.v1.UpdateCloudBackupAction value) { + 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(); + 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; } @@ -7754,8 +6449,6 @@ public Builder mergeUpdateCloudBackup( return this; } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> @@ -7779,21 +6472,16 @@ public Builder clearUpdateCloudBackup() { return this; } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> */ - public com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder - getUpdateCloudBackupBuilder() { + public com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder getUpdateCloudBackupBuilder() { return getUpdateCloudBackupFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> @@ -7801,8 +6489,7 @@ public Builder clearUpdateCloudBackup() { * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder - getUpdateCloudBackupOrBuilder() { + public com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder getUpdateCloudBackupOrBuilder() { if ((actionCase_ == 21) && (updateCloudBackupBuilder_ != null)) { return updateCloudBackupBuilder_.getMessageOrBuilder(); } else { @@ -7813,8 +6500,6 @@ public Builder clearUpdateCloudBackup() { } } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> @@ -7822,19 +6507,14 @@ public Builder clearUpdateCloudBackup() { * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> */ private 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, 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>( + 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()); @@ -7846,19 +6526,13 @@ public Builder clearUpdateCloudBackup() { } 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_; + com.google.spanner.executor.v1.DeleteCloudBackupAction, com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder, com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder> deleteCloudBackupBuilder_; /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> - * * @return Whether the deleteCloudBackup field is set. */ @java.lang.Override @@ -7866,14 +6540,11 @@ public boolean hasDeleteCloudBackup() { return actionCase_ == 22; } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> - * * @return The deleteCloudBackup. */ @java.lang.Override @@ -7891,16 +6562,13 @@ public com.google.spanner.executor.v1.DeleteCloudBackupAction getDeleteCloudBack } } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> */ - public Builder setDeleteCloudBackup( - com.google.spanner.executor.v1.DeleteCloudBackupAction value) { + public Builder setDeleteCloudBackup(com.google.spanner.executor.v1.DeleteCloudBackupAction value) { if (deleteCloudBackupBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7914,8 +6582,6 @@ public Builder setDeleteCloudBackup( return this; } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> @@ -7934,25 +6600,18 @@ public Builder setDeleteCloudBackup( return this; } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> */ - public Builder mergeDeleteCloudBackup( - com.google.spanner.executor.v1.DeleteCloudBackupAction value) { + 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(); + 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; } @@ -7968,8 +6627,6 @@ public Builder mergeDeleteCloudBackup( return this; } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> @@ -7993,21 +6650,16 @@ public Builder clearDeleteCloudBackup() { return this; } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> */ - public com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder - getDeleteCloudBackupBuilder() { + public com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder getDeleteCloudBackupBuilder() { return getDeleteCloudBackupFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> @@ -8015,8 +6667,7 @@ public Builder clearDeleteCloudBackup() { * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder - getDeleteCloudBackupOrBuilder() { + public com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder getDeleteCloudBackupOrBuilder() { if ((actionCase_ == 22) && (deleteCloudBackupBuilder_ != null)) { return deleteCloudBackupBuilder_.getMessageOrBuilder(); } else { @@ -8027,8 +6678,6 @@ public Builder clearDeleteCloudBackup() { } } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> @@ -8036,19 +6685,14 @@ public Builder clearDeleteCloudBackup() { * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> */ private 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, 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>( + 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()); @@ -8060,19 +6704,13 @@ public Builder clearDeleteCloudBackup() { } 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_; + com.google.spanner.executor.v1.ListCloudBackupsAction, com.google.spanner.executor.v1.ListCloudBackupsAction.Builder, com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder> listCloudBackupsBuilder_; /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> - * * @return Whether the listCloudBackups field is set. */ @java.lang.Override @@ -8080,14 +6718,11 @@ public boolean hasListCloudBackups() { return actionCase_ == 23; } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> - * * @return The listCloudBackups. */ @java.lang.Override @@ -8105,16 +6740,13 @@ public com.google.spanner.executor.v1.ListCloudBackupsAction getListCloudBackups } } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> */ - public Builder setListCloudBackups( - com.google.spanner.executor.v1.ListCloudBackupsAction value) { + public Builder setListCloudBackups(com.google.spanner.executor.v1.ListCloudBackupsAction value) { if (listCloudBackupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8128,8 +6760,6 @@ public Builder setListCloudBackups( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> @@ -8148,25 +6778,18 @@ public Builder setListCloudBackups( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> */ - public Builder mergeListCloudBackups( - com.google.spanner.executor.v1.ListCloudBackupsAction value) { + 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(); + 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; } @@ -8182,8 +6805,6 @@ public Builder mergeListCloudBackups( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> @@ -8207,21 +6828,16 @@ public Builder clearListCloudBackups() { return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> */ - public com.google.spanner.executor.v1.ListCloudBackupsAction.Builder - getListCloudBackupsBuilder() { + public com.google.spanner.executor.v1.ListCloudBackupsAction.Builder getListCloudBackupsBuilder() { return getListCloudBackupsFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> @@ -8229,8 +6845,7 @@ public Builder clearListCloudBackups() { * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder - getListCloudBackupsOrBuilder() { + public com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder getListCloudBackupsOrBuilder() { if ((actionCase_ == 23) && (listCloudBackupsBuilder_ != null)) { return listCloudBackupsBuilder_.getMessageOrBuilder(); } else { @@ -8241,8 +6856,6 @@ public Builder clearListCloudBackups() { } } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> @@ -8250,19 +6863,14 @@ public Builder clearListCloudBackups() { * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> */ private 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, 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>( + 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()); @@ -8274,21 +6882,13 @@ public Builder clearListCloudBackups() { } 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_; + com.google.spanner.executor.v1.ListCloudBackupOperationsAction, com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder, com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder> listCloudBackupOperationsBuilder_; /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> * @return Whether the listCloudBackupOperations field is set. */ @java.lang.Override @@ -8296,21 +6896,15 @@ public boolean hasListCloudBackupOperations() { return actionCase_ == 24; } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> * @return The listCloudBackupOperations. */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudBackupOperationsAction - getListCloudBackupOperations() { + public com.google.spanner.executor.v1.ListCloudBackupOperationsAction getListCloudBackupOperations() { if (listCloudBackupOperationsBuilder_ == null) { if (actionCase_ == 24) { return (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_; @@ -8324,18 +6918,13 @@ public boolean hasListCloudBackupOperations() { } } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ - public Builder setListCloudBackupOperations( - com.google.spanner.executor.v1.ListCloudBackupOperationsAction value) { + public Builder setListCloudBackupOperations(com.google.spanner.executor.v1.ListCloudBackupOperationsAction value) { if (listCloudBackupOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8349,15 +6938,11 @@ public Builder setListCloudBackupOperations( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ public Builder setListCloudBackupOperations( com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder builderForValue) { @@ -8371,28 +6956,18 @@ public Builder setListCloudBackupOperations( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ - public Builder mergeListCloudBackupOperations( - com.google.spanner.executor.v1.ListCloudBackupOperationsAction value) { + 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(); + 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; } @@ -8408,15 +6983,11 @@ public Builder mergeListCloudBackupOperations( return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ public Builder clearListCloudBackupOperations() { if (listCloudBackupOperationsBuilder_ == null) { @@ -8435,34 +7006,24 @@ public Builder clearListCloudBackupOperations() { return this; } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ - public com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder - getListCloudBackupOperationsBuilder() { + public com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder getListCloudBackupOperationsBuilder() { return getListCloudBackupOperationsFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder - getListCloudBackupOperationsOrBuilder() { + public com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder getListCloudBackupOperationsOrBuilder() { if ((actionCase_ == 24) && (listCloudBackupOperationsBuilder_ != null)) { return listCloudBackupOperationsBuilder_.getMessageOrBuilder(); } else { @@ -8473,31 +7034,21 @@ public Builder clearListCloudBackupOperations() { } } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ private 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, 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>( + 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()); @@ -8509,19 +7060,13 @@ public Builder clearListCloudBackupOperations() { } 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_; + com.google.spanner.executor.v1.GetOperationAction, com.google.spanner.executor.v1.GetOperationAction.Builder, com.google.spanner.executor.v1.GetOperationActionOrBuilder> getOperationBuilder_; /** - * - * * <pre> * Action that gets an operation. * </pre> * * <code>.google.spanner.executor.v1.GetOperationAction get_operation = 25;</code> - * * @return Whether the getOperation field is set. */ @java.lang.Override @@ -8529,14 +7074,11 @@ public boolean hasGetOperation() { return actionCase_ == 25; } /** - * - * * <pre> * Action that gets an operation. * </pre> * * <code>.google.spanner.executor.v1.GetOperationAction get_operation = 25;</code> - * * @return The getOperation. */ @java.lang.Override @@ -8554,8 +7096,6 @@ public com.google.spanner.executor.v1.GetOperationAction getGetOperation() { } } /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -8576,8 +7116,6 @@ public Builder setGetOperation(com.google.spanner.executor.v1.GetOperationAction return this; } /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -8596,8 +7134,6 @@ public Builder setGetOperation( return this; } /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -8606,13 +7142,10 @@ public Builder setGetOperation( */ 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(); + 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; } @@ -8628,8 +7161,6 @@ public Builder mergeGetOperation(com.google.spanner.executor.v1.GetOperationActi return this; } /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -8653,8 +7184,6 @@ public Builder clearGetOperation() { return this; } /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -8665,8 +7194,6 @@ public com.google.spanner.executor.v1.GetOperationAction.Builder getGetOperation return getGetOperationFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -8685,8 +7212,6 @@ public com.google.spanner.executor.v1.GetOperationActionOrBuilder getGetOperatio } } /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -8694,19 +7219,14 @@ public com.google.spanner.executor.v1.GetOperationActionOrBuilder getGetOperatio * <code>.google.spanner.executor.v1.GetOperationAction get_operation = 25;</code> */ private 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, 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>( + 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()); @@ -8718,19 +7238,13 @@ public com.google.spanner.executor.v1.GetOperationActionOrBuilder getGetOperatio } 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_; + com.google.spanner.executor.v1.CancelOperationAction, com.google.spanner.executor.v1.CancelOperationAction.Builder, com.google.spanner.executor.v1.CancelOperationActionOrBuilder> cancelOperationBuilder_; /** - * - * * <pre> * Action that cancels an operation. * </pre> * * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> - * * @return Whether the cancelOperation field is set. */ @java.lang.Override @@ -8738,14 +7252,11 @@ public boolean hasCancelOperation() { return actionCase_ == 26; } /** - * - * * <pre> * Action that cancels an operation. * </pre> * * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> - * * @return The cancelOperation. */ @java.lang.Override @@ -8763,8 +7274,6 @@ public com.google.spanner.executor.v1.CancelOperationAction getCancelOperation() } } /** - * - * * <pre> * Action that cancels an operation. * </pre> @@ -8785,8 +7294,6 @@ public Builder setCancelOperation(com.google.spanner.executor.v1.CancelOperation return this; } /** - * - * * <pre> * Action that cancels an operation. * </pre> @@ -8805,25 +7312,18 @@ public Builder setCancelOperation( return this; } /** - * - * * <pre> * Action that cancels an operation. * </pre> * * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> */ - public Builder mergeCancelOperation( - com.google.spanner.executor.v1.CancelOperationAction value) { + 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(); + 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; } @@ -8839,8 +7339,6 @@ public Builder mergeCancelOperation( return this; } /** - * - * * <pre> * Action that cancels an operation. * </pre> @@ -8864,21 +7362,16 @@ public Builder clearCancelOperation() { return this; } /** - * - * * <pre> * Action that cancels an operation. * </pre> * * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> */ - public com.google.spanner.executor.v1.CancelOperationAction.Builder - getCancelOperationBuilder() { + public com.google.spanner.executor.v1.CancelOperationAction.Builder getCancelOperationBuilder() { return getCancelOperationFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that cancels an operation. * </pre> @@ -8886,8 +7379,7 @@ public Builder clearCancelOperation() { * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CancelOperationActionOrBuilder - getCancelOperationOrBuilder() { + public com.google.spanner.executor.v1.CancelOperationActionOrBuilder getCancelOperationOrBuilder() { if ((actionCase_ == 26) && (cancelOperationBuilder_ != null)) { return cancelOperationBuilder_.getMessageOrBuilder(); } else { @@ -8898,8 +7390,6 @@ public Builder clearCancelOperation() { } } /** - * - * * <pre> * Action that cancels an operation. * </pre> @@ -8907,19 +7397,14 @@ public Builder clearCancelOperation() { * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> */ private 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, 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>( + 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()); @@ -8931,21 +7416,13 @@ public Builder clearCancelOperation() { } 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_; + com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction, com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder, com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder> reconfigureCloudDatabaseBuilder_; /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> - * + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> * @return Whether the reconfigureCloudDatabase field is set. */ @java.lang.Override @@ -8953,21 +7430,15 @@ public boolean hasReconfigureCloudDatabase() { return actionCase_ == 28; } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> - * + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> * @return The reconfigureCloudDatabase. */ @java.lang.Override - public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction - getReconfigureCloudDatabase() { + public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction getReconfigureCloudDatabase() { if (reconfigureCloudDatabaseBuilder_ == null) { if (actionCase_ == 28) { return (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_; @@ -8981,18 +7452,13 @@ public boolean hasReconfigureCloudDatabase() { } } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ - public Builder setReconfigureCloudDatabase( - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction value) { + public Builder setReconfigureCloudDatabase(com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction value) { if (reconfigureCloudDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9006,15 +7472,11 @@ public Builder setReconfigureCloudDatabase( return this; } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ public Builder setReconfigureCloudDatabase( com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder builderForValue) { @@ -9028,28 +7490,18 @@ public Builder setReconfigureCloudDatabase( return this; } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ - public Builder mergeReconfigureCloudDatabase( - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction value) { + 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(); + 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; } @@ -9065,15 +7517,11 @@ public Builder mergeReconfigureCloudDatabase( return this; } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ public Builder clearReconfigureCloudDatabase() { if (reconfigureCloudDatabaseBuilder_ == null) { @@ -9092,34 +7540,24 @@ public Builder clearReconfigureCloudDatabase() { return this; } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ - public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder - getReconfigureCloudDatabaseBuilder() { + public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder getReconfigureCloudDatabaseBuilder() { return getReconfigureCloudDatabaseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder - getReconfigureCloudDatabaseOrBuilder() { + public com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder getReconfigureCloudDatabaseOrBuilder() { if ((actionCase_ == 28) && (reconfigureCloudDatabaseBuilder_ != null)) { return reconfigureCloudDatabaseBuilder_.getMessageOrBuilder(); } else { @@ -9130,31 +7568,21 @@ public Builder clearReconfigureCloudDatabase() { } } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ private 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, 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>( + 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()); @@ -9164,9 +7592,9 @@ public Builder clearReconfigureCloudDatabase() { onChanged(); return reconfigureCloudDatabaseBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9176,12 +7604,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -9190,27 +7618,27 @@ public static com.google.spanner.executor.v1.AdminAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<AdminAction> PARSER = - new com.google.protobuf.AbstractParser<AdminAction>() { - @java.lang.Override - public AdminAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<AdminAction> + PARSER = new com.google.protobuf.AbstractParser<AdminAction>() { + @java.lang.Override + public AdminAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<AdminAction> parser() { return PARSER; @@ -9225,4 +7653,6 @@ public com.google.protobuf.Parser<AdminAction> getParserForType() { public com.google.spanner.executor.v1.AdminAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java similarity index 80% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java index c8684d19270..8b7b05483bd 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminActionOrBuilder.java @@ -1,367 +1,247 @@ -/* - * 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 interface AdminActionOrBuilder - extends +public interface AdminActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.AdminAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> - * + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> * @return Whether the createUserInstanceConfig field is set. */ boolean hasCreateUserInstanceConfig(); /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> - * + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> * @return The createUserInstanceConfig. */ com.google.spanner.executor.v1.CreateUserInstanceConfigAction getCreateUserInstanceConfig(); /** - * - * * <pre> * Action that creates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1; - * </code> + * <code>.google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;</code> */ - com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder - getCreateUserInstanceConfigOrBuilder(); + com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder getCreateUserInstanceConfigOrBuilder(); /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> * @return Whether the updateUserInstanceConfig field is set. */ boolean hasUpdateUserInstanceConfig(); /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> * @return The updateUserInstanceConfig. */ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction getUpdateUserInstanceConfig(); /** - * - * * <pre> * Action that updates a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2; - * </code> + * <code>.google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;</code> */ - com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder - getUpdateUserInstanceConfigOrBuilder(); + com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder getUpdateUserInstanceConfigOrBuilder(); /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> - * + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> * @return Whether the deleteUserInstanceConfig field is set. */ boolean hasDeleteUserInstanceConfig(); /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> - * + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> * @return The deleteUserInstanceConfig. */ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction getDeleteUserInstanceConfig(); /** - * - * * <pre> * Action that deletes a user instance config. * </pre> * - * <code> - * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3; - * </code> + * <code>.google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;</code> */ - com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder - getDeleteUserInstanceConfigOrBuilder(); + com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder getDeleteUserInstanceConfigOrBuilder(); /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> - * + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> * @return Whether the getCloudInstanceConfig field is set. */ boolean hasGetCloudInstanceConfig(); /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> - * + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> * @return The getCloudInstanceConfig. */ com.google.spanner.executor.v1.GetCloudInstanceConfigAction getGetCloudInstanceConfig(); /** - * - * * <pre> * Action that gets a user instance config. * </pre> * - * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4; - * </code> + * <code>.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;</code> */ - com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder - getGetCloudInstanceConfigOrBuilder(); + com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder getGetCloudInstanceConfigOrBuilder(); /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> * @return Whether the listInstanceConfigs field is set. */ boolean hasListInstanceConfigs(); /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> * @return The listInstanceConfigs. */ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction getListInstanceConfigs(); /** - * - * * <pre> * Action that lists user instance configs. * </pre> * - * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5; - * </code> + * <code>.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;</code> */ - com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder - getListInstanceConfigsOrBuilder(); + com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder getListInstanceConfigsOrBuilder(); /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> - * * @return Whether the createCloudInstance field is set. */ boolean hasCreateCloudInstance(); /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> - * * @return The createCloudInstance. */ com.google.spanner.executor.v1.CreateCloudInstanceAction getCreateCloudInstance(); /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;</code> */ - com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder - getCreateCloudInstanceOrBuilder(); + com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder getCreateCloudInstanceOrBuilder(); /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> - * * @return Whether the updateCloudInstance field is set. */ boolean hasUpdateCloudInstance(); /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> - * * @return The updateCloudInstance. */ com.google.spanner.executor.v1.UpdateCloudInstanceAction getUpdateCloudInstance(); /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;</code> */ - com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder - getUpdateCloudInstanceOrBuilder(); + com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder getUpdateCloudInstanceOrBuilder(); /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> - * * @return Whether the deleteCloudInstance field is set. */ boolean hasDeleteCloudInstance(); /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> - * * @return The deleteCloudInstance. */ com.google.spanner.executor.v1.DeleteCloudInstanceAction getDeleteCloudInstance(); /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;</code> */ - com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder - getDeleteCloudInstanceOrBuilder(); + com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder getDeleteCloudInstanceOrBuilder(); /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> - * * @return Whether the listCloudInstances field is set. */ boolean hasListCloudInstances(); /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> * * <code>.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;</code> - * * @return The listCloudInstances. */ com.google.spanner.executor.v1.ListCloudInstancesAction getListCloudInstances(); /** - * - * * <pre> * Action that lists Cloud Spanner instances. * </pre> @@ -371,32 +251,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder getListCloudInstancesOrBuilder(); /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> - * * @return Whether the getCloudInstance field is set. */ boolean hasGetCloudInstance(); /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * <code>.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;</code> - * * @return The getCloudInstance. */ com.google.spanner.executor.v1.GetCloudInstanceAction getGetCloudInstance(); /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> @@ -406,143 +278,105 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder getGetCloudInstanceOrBuilder(); /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> - * * @return Whether the createCloudDatabase field is set. */ boolean hasCreateCloudDatabase(); /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> - * * @return The createCloudDatabase. */ com.google.spanner.executor.v1.CreateCloudDatabaseAction getCreateCloudDatabase(); /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;</code> */ - com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder - getCreateCloudDatabaseOrBuilder(); + com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder getCreateCloudDatabaseOrBuilder(); /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> * @return Whether the updateCloudDatabaseDdl field is set. */ boolean hasUpdateCloudDatabaseDdl(); /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> - * + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> * @return The updateCloudDatabaseDdl. */ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction getUpdateCloudDatabaseDdl(); /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * - * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12; - * </code> + * <code>.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;</code> */ - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder - getUpdateCloudDatabaseDdlOrBuilder(); + com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder getUpdateCloudDatabaseDdlOrBuilder(); /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> - * * @return Whether the updateCloudDatabase field is set. */ boolean hasUpdateCloudDatabase(); /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> - * * @return The updateCloudDatabase. */ com.google.spanner.executor.v1.UpdateCloudDatabaseAction getUpdateCloudDatabase(); /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;</code> */ - com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder - getUpdateCloudDatabaseOrBuilder(); + com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder getUpdateCloudDatabaseOrBuilder(); /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> - * * @return Whether the dropCloudDatabase field is set. */ boolean hasDropCloudDatabase(); /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;</code> - * * @return The dropCloudDatabase. */ com.google.spanner.executor.v1.DropCloudDatabaseAction getDropCloudDatabase(); /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> @@ -552,32 +386,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder getDropCloudDatabaseOrBuilder(); /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> - * * @return Whether the listCloudDatabases field is set. */ boolean hasListCloudDatabases(); /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * <code>.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;</code> - * * @return The listCloudDatabases. */ com.google.spanner.executor.v1.ListCloudDatabasesAction getListCloudDatabases(); /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> @@ -587,113 +413,78 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder getListCloudDatabasesOrBuilder(); /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> * @return Whether the listCloudDatabaseOperations field is set. */ boolean hasListCloudDatabaseOperations(); /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> * @return The listCloudDatabaseOperations. */ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction getListCloudDatabaseOperations(); /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15; - * </code> + * <code>.google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;</code> */ - com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder - getListCloudDatabaseOperationsOrBuilder(); + com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder getListCloudDatabaseOperationsOrBuilder(); /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> - * + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> * @return Whether the restoreCloudDatabase field is set. */ boolean hasRestoreCloudDatabase(); /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> - * + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> * @return The restoreCloudDatabase. */ com.google.spanner.executor.v1.RestoreCloudDatabaseAction getRestoreCloudDatabase(); /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * - * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16; - * </code> + * <code>.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;</code> */ - com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder - getRestoreCloudDatabaseOrBuilder(); + com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder getRestoreCloudDatabaseOrBuilder(); /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> - * * @return Whether the getCloudDatabase field is set. */ boolean hasGetCloudDatabase(); /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * <code>.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;</code> - * * @return The getCloudDatabase. */ com.google.spanner.executor.v1.GetCloudDatabaseAction getGetCloudDatabase(); /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> @@ -703,32 +494,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder getGetCloudDatabaseOrBuilder(); /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> - * * @return Whether the createCloudBackup field is set. */ boolean hasCreateCloudBackup(); /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;</code> - * * @return The createCloudBackup. */ com.google.spanner.executor.v1.CreateCloudBackupAction getCreateCloudBackup(); /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> @@ -738,32 +521,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder getCreateCloudBackupOrBuilder(); /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> - * * @return Whether the copyCloudBackup field is set. */ boolean hasCopyCloudBackup(); /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;</code> - * * @return The copyCloudBackup. */ com.google.spanner.executor.v1.CopyCloudBackupAction getCopyCloudBackup(); /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> @@ -773,32 +548,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder getCopyCloudBackupOrBuilder(); /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;</code> - * * @return Whether the getCloudBackup field is set. */ boolean hasGetCloudBackup(); /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;</code> - * * @return The getCloudBackup. */ com.google.spanner.executor.v1.GetCloudBackupAction getGetCloudBackup(); /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> @@ -808,32 +575,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder getGetCloudBackupOrBuilder(); /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> - * * @return Whether the updateCloudBackup field is set. */ boolean hasUpdateCloudBackup(); /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;</code> - * * @return The updateCloudBackup. */ com.google.spanner.executor.v1.UpdateCloudBackupAction getUpdateCloudBackup(); /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> @@ -843,32 +602,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder getUpdateCloudBackupOrBuilder(); /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> - * * @return Whether the deleteCloudBackup field is set. */ boolean hasDeleteCloudBackup(); /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * <code>.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;</code> - * * @return The deleteCloudBackup. */ com.google.spanner.executor.v1.DeleteCloudBackupAction getDeleteCloudBackup(); /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> @@ -878,32 +629,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder getDeleteCloudBackupOrBuilder(); /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> - * * @return Whether the listCloudBackups field is set. */ boolean hasListCloudBackups(); /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * <code>.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;</code> - * * @return The listCloudBackups. */ com.google.spanner.executor.v1.ListCloudBackupsAction getListCloudBackups(); /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> @@ -913,74 +656,51 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder getListCloudBackupsOrBuilder(); /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> * @return Whether the listCloudBackupOperations field is set. */ boolean hasListCloudBackupOperations(); /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> - * + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> * @return The listCloudBackupOperations. */ com.google.spanner.executor.v1.ListCloudBackupOperationsAction getListCloudBackupOperations(); /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * - * <code> - * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24; - * </code> + * <code>.google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;</code> */ - com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder - getListCloudBackupOperationsOrBuilder(); + com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder getListCloudBackupOperationsOrBuilder(); /** - * - * * <pre> * Action that gets an operation. * </pre> * * <code>.google.spanner.executor.v1.GetOperationAction get_operation = 25;</code> - * * @return Whether the getOperation field is set. */ boolean hasGetOperation(); /** - * - * * <pre> * Action that gets an operation. * </pre> * * <code>.google.spanner.executor.v1.GetOperationAction get_operation = 25;</code> - * * @return The getOperation. */ com.google.spanner.executor.v1.GetOperationAction getGetOperation(); /** - * - * * <pre> * Action that gets an operation. * </pre> @@ -990,32 +710,24 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.GetOperationActionOrBuilder getGetOperationOrBuilder(); /** - * - * * <pre> * Action that cancels an operation. * </pre> * * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> - * * @return Whether the cancelOperation field is set. */ boolean hasCancelOperation(); /** - * - * * <pre> * Action that cancels an operation. * </pre> * * <code>.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;</code> - * * @return The cancelOperation. */ com.google.spanner.executor.v1.CancelOperationAction getCancelOperation(); /** - * - * * <pre> * Action that cancels an operation. * </pre> @@ -1025,46 +737,31 @@ public interface AdminActionOrBuilder com.google.spanner.executor.v1.CancelOperationActionOrBuilder getCancelOperationOrBuilder(); /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> - * + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> * @return Whether the reconfigureCloudDatabase field is set. */ boolean hasReconfigureCloudDatabase(); /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> - * + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> * @return The reconfigureCloudDatabase. */ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction getReconfigureCloudDatabase(); /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * - * <code> - * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28; - * </code> + * <code>.google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;</code> */ - com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder - getReconfigureCloudDatabaseOrBuilder(); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java index d88a95bf2ea..5cc46fda709 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java @@ -1,76 +1,55 @@ -/* - * 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; /** - * - * * <pre> * AdminResult contains admin action results, for database/backup/operation. * </pre> * * Protobuf type {@code google.spanner.executor.v1.AdminResult} */ -public final class AdminResult extends com.google.protobuf.GeneratedMessageV3 - implements +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; +private static final long serialVersionUID = 0L; // Use AdminResult.newBuilder() to construct. private AdminResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private AdminResult() {} + private AdminResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_; /** - * - * * <pre> * Results of cloud backup related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;</code> - * * @return Whether the backupResponse field is set. */ @java.lang.Override @@ -78,25 +57,18 @@ public boolean hasBackupResponse() { return backupResponse_ != null; } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;</code> - * * @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_; + return backupResponse_ == null ? com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance() : backupResponse_; } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> @@ -105,22 +77,17 @@ public com.google.spanner.executor.v1.CloudBackupResponse getBackupResponse() { */ @java.lang.Override public com.google.spanner.executor.v1.CloudBackupResponseOrBuilder getBackupResponseOrBuilder() { - return backupResponse_ == null - ? com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance() - : backupResponse_; + 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_; /** - * - * * <pre> * Results of operation related actions. * </pre> * * <code>.google.spanner.executor.v1.OperationResponse operation_response = 2;</code> - * * @return Whether the operationResponse field is set. */ @java.lang.Override @@ -128,25 +95,18 @@ public boolean hasOperationResponse() { return operationResponse_ != null; } /** - * - * * <pre> * Results of operation related actions. * </pre> * * <code>.google.spanner.executor.v1.OperationResponse operation_response = 2;</code> - * * @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_; + return operationResponse_ == null ? com.google.spanner.executor.v1.OperationResponse.getDefaultInstance() : operationResponse_; } /** - * - * * <pre> * Results of operation related actions. * </pre> @@ -155,22 +115,17 @@ public com.google.spanner.executor.v1.OperationResponse getOperationResponse() { */ @java.lang.Override public com.google.spanner.executor.v1.OperationResponseOrBuilder getOperationResponseOrBuilder() { - return operationResponse_ == null - ? com.google.spanner.executor.v1.OperationResponse.getDefaultInstance() - : operationResponse_; + 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_; /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> - * * @return Whether the databaseResponse field is set. */ @java.lang.Override @@ -178,25 +133,18 @@ public boolean hasDatabaseResponse() { return databaseResponse_ != null; } /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> - * * @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_; + return databaseResponse_ == null ? com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance() : databaseResponse_; } /** - * - * * <pre> * Results of database related actions. * </pre> @@ -204,24 +152,18 @@ public com.google.spanner.executor.v1.CloudDatabaseResponse getDatabaseResponse( * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder - getDatabaseResponseOrBuilder() { - return databaseResponse_ == null - ? com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance() - : databaseResponse_; + 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_; /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> - * * @return Whether the instanceResponse field is set. */ @java.lang.Override @@ -229,25 +171,18 @@ public boolean hasInstanceResponse() { return instanceResponse_ != null; } /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> - * * @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_; + return instanceResponse_ == null ? com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance() : instanceResponse_; } /** - * - * * <pre> * Results of instance related actions. * </pre> @@ -255,25 +190,18 @@ public com.google.spanner.executor.v1.CloudInstanceResponse getInstanceResponse( * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder - getInstanceResponseOrBuilder() { - return instanceResponse_ == null - ? com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance() - : instanceResponse_; + 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_; /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> - * + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> * @return Whether the instanceConfigResponse field is set. */ @java.lang.Override @@ -281,43 +209,30 @@ public boolean hasInstanceConfigResponse() { return instanceConfigResponse_ != null; } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> - * + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> * @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_; + return instanceConfigResponse_ == null ? com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance() : instanceConfigResponse_; } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder - getInstanceConfigResponseOrBuilder() { - return instanceConfigResponse_ == null - ? com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance() - : instanceConfigResponse_; + 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; @@ -329,7 +244,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (backupResponse_ != null) { output.writeMessage(1, getBackupResponse()); } @@ -355,20 +271,24 @@ public int getSerializedSize() { size = 0; if (backupResponse_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackupResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBackupResponse()); } if (operationResponse_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOperationResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOperationResponse()); } if (databaseResponse_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDatabaseResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDatabaseResponse()); } if (instanceResponse_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInstanceResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInstanceResponse()); } if (instanceConfigResponse_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInstanceConfigResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInstanceConfigResponse()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -378,33 +298,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getBackupResponse() + .equals(other.getBackupResponse())) return false; } if (hasOperationResponse() != other.hasOperationResponse()) return false; if (hasOperationResponse()) { - if (!getOperationResponse().equals(other.getOperationResponse())) return false; + if (!getOperationResponse() + .equals(other.getOperationResponse())) return false; } if (hasDatabaseResponse() != other.hasDatabaseResponse()) return false; if (hasDatabaseResponse()) { - if (!getDatabaseResponse().equals(other.getDatabaseResponse())) return false; + if (!getDatabaseResponse() + .equals(other.getDatabaseResponse())) return false; } if (hasInstanceResponse() != other.hasInstanceResponse()) return false; if (hasInstanceResponse()) { - if (!getInstanceResponse().equals(other.getInstanceResponse())) return false; + if (!getInstanceResponse() + .equals(other.getInstanceResponse())) return false; } if (hasInstanceConfigResponse() != other.hasInstanceConfigResponse()) return false; if (hasInstanceConfigResponse()) { - if (!getInstanceConfigResponse().equals(other.getInstanceConfigResponse())) return false; + if (!getInstanceConfigResponse() + .equals(other.getInstanceConfigResponse())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -442,136 +366,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.AdminResult parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * AdminResult contains admin action results, for database/backup/operation. * </pre> * * Protobuf type {@code google.spanner.executor.v1.AdminResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.AdminResult) com.google.spanner.executor.v1.AdminResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_AdminResult_descriptor; + 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 + 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); + com.google.spanner.executor.v1.AdminResult.class, com.google.spanner.executor.v1.AdminResult.Builder.class); } // Construct using com.google.spanner.executor.v1.AdminResult.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -605,9 +525,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_AdminResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_AdminResult_descriptor; } @java.lang.Override @@ -626,11 +546,8 @@ public com.google.spanner.executor.v1.AdminResult build() { @java.lang.Override public com.google.spanner.executor.v1.AdminResult buildPartial() { - com.google.spanner.executor.v1.AdminResult result = - new com.google.spanner.executor.v1.AdminResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.AdminResult result = new com.google.spanner.executor.v1.AdminResult(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -638,28 +555,29 @@ public com.google.spanner.executor.v1.AdminResult buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.AdminResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.backupResponse_ = - backupResponseBuilder_ == null ? backupResponse_ : backupResponseBuilder_.build(); + result.backupResponse_ = backupResponseBuilder_ == null + ? backupResponse_ + : backupResponseBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.operationResponse_ = - operationResponseBuilder_ == null - ? operationResponse_ - : operationResponseBuilder_.build(); + result.operationResponse_ = operationResponseBuilder_ == null + ? operationResponse_ + : operationResponseBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.databaseResponse_ = - databaseResponseBuilder_ == null ? databaseResponse_ : databaseResponseBuilder_.build(); + result.databaseResponse_ = databaseResponseBuilder_ == null + ? databaseResponse_ + : databaseResponseBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.instanceResponse_ = - instanceResponseBuilder_ == null ? instanceResponse_ : instanceResponseBuilder_.build(); + result.instanceResponse_ = instanceResponseBuilder_ == null + ? instanceResponse_ + : instanceResponseBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.instanceConfigResponse_ = - instanceConfigResponseBuilder_ == null - ? instanceConfigResponse_ - : instanceConfigResponseBuilder_.build(); + result.instanceConfigResponse_ = instanceConfigResponseBuilder_ == null + ? instanceConfigResponse_ + : instanceConfigResponseBuilder_.build(); } } @@ -667,39 +585,38 @@ private void buildPartial0(com.google.spanner.executor.v1.AdminResult result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.AdminResult) { - return mergeFrom((com.google.spanner.executor.v1.AdminResult) other); + return mergeFrom((com.google.spanner.executor.v1.AdminResult)other); } else { super.mergeFrom(other); return this; @@ -749,47 +666,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBackupResponseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getOperationResponseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getDatabaseResponseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getInstanceResponseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getInstanceConfigResponseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBackupResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getOperationResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDatabaseResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getInstanceResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getInstanceConfigResponseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -799,52 +716,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.spanner.executor.v1.CloudBackupResponse backupResponse_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CloudBackupResponse, - com.google.spanner.executor.v1.CloudBackupResponse.Builder, - com.google.spanner.executor.v1.CloudBackupResponseOrBuilder> - backupResponseBuilder_; + com.google.spanner.executor.v1.CloudBackupResponse, com.google.spanner.executor.v1.CloudBackupResponse.Builder, com.google.spanner.executor.v1.CloudBackupResponseOrBuilder> backupResponseBuilder_; /** - * - * * <pre> * Results of cloud backup related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;</code> - * * @return Whether the backupResponse field is set. */ public boolean hasBackupResponse() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;</code> - * * @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_; + return backupResponse_ == null ? com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance() : backupResponse_; } else { return backupResponseBuilder_.getMessage(); } } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> @@ -865,8 +768,6 @@ public Builder setBackupResponse(com.google.spanner.executor.v1.CloudBackupRespo return this; } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> @@ -885,8 +786,6 @@ public Builder setBackupResponse( return this; } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> @@ -895,10 +794,9 @@ public Builder setBackupResponse( */ 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()) { + if (((bitField0_ & 0x00000001) != 0) && + backupResponse_ != null && + backupResponse_ != com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance()) { getBackupResponseBuilder().mergeFrom(value); } else { backupResponse_ = value; @@ -911,8 +809,6 @@ public Builder mergeBackupResponse(com.google.spanner.executor.v1.CloudBackupRes return this; } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> @@ -930,8 +826,6 @@ public Builder clearBackupResponse() { return this; } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> @@ -944,27 +838,21 @@ public com.google.spanner.executor.v1.CloudBackupResponse.Builder getBackupRespo return getBackupResponseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;</code> */ - public com.google.spanner.executor.v1.CloudBackupResponseOrBuilder - getBackupResponseOrBuilder() { + 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_; + return backupResponse_ == null ? + com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance() : backupResponse_; } } /** - * - * * <pre> * Results of cloud backup related actions. * </pre> @@ -972,17 +860,14 @@ public com.google.spanner.executor.v1.CloudBackupResponse.Builder getBackupRespo * <code>.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CloudBackupResponse, - com.google.spanner.executor.v1.CloudBackupResponse.Builder, - com.google.spanner.executor.v1.CloudBackupResponseOrBuilder> + 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()); + 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_; @@ -990,47 +875,34 @@ public com.google.spanner.executor.v1.CloudBackupResponse.Builder getBackupRespo 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_; + com.google.spanner.executor.v1.OperationResponse, com.google.spanner.executor.v1.OperationResponse.Builder, com.google.spanner.executor.v1.OperationResponseOrBuilder> operationResponseBuilder_; /** - * - * * <pre> * Results of operation related actions. * </pre> * * <code>.google.spanner.executor.v1.OperationResponse operation_response = 2;</code> - * * @return Whether the operationResponse field is set. */ public boolean hasOperationResponse() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Results of operation related actions. * </pre> * * <code>.google.spanner.executor.v1.OperationResponse operation_response = 2;</code> - * * @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_; + return operationResponse_ == null ? com.google.spanner.executor.v1.OperationResponse.getDefaultInstance() : operationResponse_; } else { return operationResponseBuilder_.getMessage(); } } /** - * - * * <pre> * Results of operation related actions. * </pre> @@ -1051,8 +923,6 @@ public Builder setOperationResponse(com.google.spanner.executor.v1.OperationResp return this; } /** - * - * * <pre> * Results of operation related actions. * </pre> @@ -1071,8 +941,6 @@ public Builder setOperationResponse( return this; } /** - * - * * <pre> * Results of operation related actions. * </pre> @@ -1081,10 +949,9 @@ public Builder setOperationResponse( */ 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()) { + if (((bitField0_ & 0x00000002) != 0) && + operationResponse_ != null && + operationResponse_ != com.google.spanner.executor.v1.OperationResponse.getDefaultInstance()) { getOperationResponseBuilder().mergeFrom(value); } else { operationResponse_ = value; @@ -1097,8 +964,6 @@ public Builder mergeOperationResponse(com.google.spanner.executor.v1.OperationRe return this; } /** - * - * * <pre> * Results of operation related actions. * </pre> @@ -1116,8 +981,6 @@ public Builder clearOperationResponse() { return this; } /** - * - * * <pre> * Results of operation related actions. * </pre> @@ -1130,27 +993,21 @@ public com.google.spanner.executor.v1.OperationResponse.Builder getOperationResp return getOperationResponseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Results of operation related actions. * </pre> * * <code>.google.spanner.executor.v1.OperationResponse operation_response = 2;</code> */ - public com.google.spanner.executor.v1.OperationResponseOrBuilder - getOperationResponseOrBuilder() { + 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_; + return operationResponse_ == null ? + com.google.spanner.executor.v1.OperationResponse.getDefaultInstance() : operationResponse_; } } /** - * - * * <pre> * Results of operation related actions. * </pre> @@ -1158,17 +1015,14 @@ public com.google.spanner.executor.v1.OperationResponse.Builder getOperationResp * <code>.google.spanner.executor.v1.OperationResponse operation_response = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.OperationResponse, - com.google.spanner.executor.v1.OperationResponse.Builder, - com.google.spanner.executor.v1.OperationResponseOrBuilder> + 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()); + 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_; @@ -1176,47 +1030,34 @@ public com.google.spanner.executor.v1.OperationResponse.Builder getOperationResp 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_; + com.google.spanner.executor.v1.CloudDatabaseResponse, com.google.spanner.executor.v1.CloudDatabaseResponse.Builder, com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder> databaseResponseBuilder_; /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> - * * @return Whether the databaseResponse field is set. */ public boolean hasDatabaseResponse() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> - * * @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_; + return databaseResponse_ == null ? com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance() : databaseResponse_; } else { return databaseResponseBuilder_.getMessage(); } } /** - * - * * <pre> * Results of database related actions. * </pre> @@ -1237,8 +1078,6 @@ public Builder setDatabaseResponse(com.google.spanner.executor.v1.CloudDatabaseR return this; } /** - * - * * <pre> * Results of database related actions. * </pre> @@ -1257,21 +1096,17 @@ public Builder setDatabaseResponse( return this; } /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> */ - public Builder mergeDatabaseResponse( - com.google.spanner.executor.v1.CloudDatabaseResponse value) { + 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()) { + if (((bitField0_ & 0x00000004) != 0) && + databaseResponse_ != null && + databaseResponse_ != com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance()) { getDatabaseResponseBuilder().mergeFrom(value); } else { databaseResponse_ = value; @@ -1284,8 +1119,6 @@ public Builder mergeDatabaseResponse( return this; } /** - * - * * <pre> * Results of database related actions. * </pre> @@ -1303,42 +1136,33 @@ public Builder clearDatabaseResponse() { return this; } /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> */ - public com.google.spanner.executor.v1.CloudDatabaseResponse.Builder - getDatabaseResponseBuilder() { + public com.google.spanner.executor.v1.CloudDatabaseResponse.Builder getDatabaseResponseBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDatabaseResponseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> */ - public com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder - getDatabaseResponseOrBuilder() { + 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_; + return databaseResponse_ == null ? + com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance() : databaseResponse_; } } /** - * - * * <pre> * Results of database related actions. * </pre> @@ -1346,17 +1170,14 @@ public Builder clearDatabaseResponse() { * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CloudDatabaseResponse, - com.google.spanner.executor.v1.CloudDatabaseResponse.Builder, - com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder> + 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()); + 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_; @@ -1364,47 +1185,34 @@ public Builder clearDatabaseResponse() { 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_; + com.google.spanner.executor.v1.CloudInstanceResponse, com.google.spanner.executor.v1.CloudInstanceResponse.Builder, com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder> instanceResponseBuilder_; /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> - * * @return Whether the instanceResponse field is set. */ public boolean hasInstanceResponse() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> - * * @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_; + return instanceResponse_ == null ? com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance() : instanceResponse_; } else { return instanceResponseBuilder_.getMessage(); } } /** - * - * * <pre> * Results of instance related actions. * </pre> @@ -1425,8 +1233,6 @@ public Builder setInstanceResponse(com.google.spanner.executor.v1.CloudInstanceR return this; } /** - * - * * <pre> * Results of instance related actions. * </pre> @@ -1445,21 +1251,17 @@ public Builder setInstanceResponse( return this; } /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> */ - public Builder mergeInstanceResponse( - com.google.spanner.executor.v1.CloudInstanceResponse value) { + 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()) { + if (((bitField0_ & 0x00000008) != 0) && + instanceResponse_ != null && + instanceResponse_ != com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance()) { getInstanceResponseBuilder().mergeFrom(value); } else { instanceResponse_ = value; @@ -1472,8 +1274,6 @@ public Builder mergeInstanceResponse( return this; } /** - * - * * <pre> * Results of instance related actions. * </pre> @@ -1491,42 +1291,33 @@ public Builder clearInstanceResponse() { return this; } /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> */ - public com.google.spanner.executor.v1.CloudInstanceResponse.Builder - getInstanceResponseBuilder() { + public com.google.spanner.executor.v1.CloudInstanceResponse.Builder getInstanceResponseBuilder() { bitField0_ |= 0x00000008; onChanged(); return getInstanceResponseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> */ - public com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder - getInstanceResponseOrBuilder() { + 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_; + return instanceResponse_ == null ? + com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance() : instanceResponse_; } } /** - * - * * <pre> * Results of instance related actions. * </pre> @@ -1534,17 +1325,14 @@ public Builder clearInstanceResponse() { * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CloudInstanceResponse, - com.google.spanner.executor.v1.CloudInstanceResponse.Builder, - com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder> + 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()); + 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_; @@ -1552,58 +1340,41 @@ public Builder clearInstanceResponse() { 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_; + com.google.spanner.executor.v1.CloudInstanceConfigResponse, com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder, com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder> instanceConfigResponseBuilder_; /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> - * + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> * @return Whether the instanceConfigResponse field is set. */ public boolean hasInstanceConfigResponse() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> - * + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> * @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_; + return instanceConfigResponse_ == null ? com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance() : instanceConfigResponse_; } else { return instanceConfigResponseBuilder_.getMessage(); } } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ - public Builder setInstanceConfigResponse( - com.google.spanner.executor.v1.CloudInstanceConfigResponse value) { + public Builder setInstanceConfigResponse(com.google.spanner.executor.v1.CloudInstanceConfigResponse value) { if (instanceConfigResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1617,14 +1388,11 @@ public Builder setInstanceConfigResponse( return this; } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ public Builder setInstanceConfigResponse( com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder builderForValue) { @@ -1638,23 +1406,17 @@ public Builder setInstanceConfigResponse( return this; } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ - public Builder mergeInstanceConfigResponse( - com.google.spanner.executor.v1.CloudInstanceConfigResponse value) { + 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()) { + if (((bitField0_ & 0x00000010) != 0) && + instanceConfigResponse_ != null && + instanceConfigResponse_ != com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance()) { getInstanceConfigResponseBuilder().mergeFrom(value); } else { instanceConfigResponse_ = value; @@ -1667,14 +1429,11 @@ public Builder mergeInstanceConfigResponse( return this; } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ public Builder clearInstanceConfigResponse() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1687,70 +1446,55 @@ public Builder clearInstanceConfigResponse() { return this; } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ - public com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder - getInstanceConfigResponseBuilder() { + public com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder getInstanceConfigResponseBuilder() { bitField0_ |= 0x00000010; onChanged(); return getInstanceConfigResponseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ - public com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder - getInstanceConfigResponseOrBuilder() { + 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_; + return instanceConfigResponse_ == null ? + com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance() : instanceConfigResponse_; } } /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CloudInstanceConfigResponse, - com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder, - com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1760,12 +1504,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1774,27 +1518,27 @@ public static com.google.spanner.executor.v1.AdminResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<AdminResult> PARSER = - new com.google.protobuf.AbstractParser<AdminResult>() { - @java.lang.Override - public AdminResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<AdminResult> + PARSER = new com.google.protobuf.AbstractParser<AdminResult>() { + @java.lang.Override + public AdminResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<AdminResult> parser() { return PARSER; @@ -1809,4 +1553,6 @@ public com.google.protobuf.Parser<AdminResult> getParserForType() { public com.google.spanner.executor.v1.AdminResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java similarity index 80% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java index 371d0bcc7b6..b01c282988d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResultOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface AdminResultOrBuilder - extends +public interface AdminResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.AdminResult) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Results of cloud backup related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;</code> - * * @return Whether the backupResponse field is set. */ boolean hasBackupResponse(); /** - * - * * <pre> * Results of cloud backup related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;</code> - * * @return The backupResponse. */ com.google.spanner.executor.v1.CloudBackupResponse getBackupResponse(); /** - * - * * <pre> * Results of cloud backup related actions. * </pre> @@ -59,32 +35,24 @@ public interface AdminResultOrBuilder com.google.spanner.executor.v1.CloudBackupResponseOrBuilder getBackupResponseOrBuilder(); /** - * - * * <pre> * Results of operation related actions. * </pre> * * <code>.google.spanner.executor.v1.OperationResponse operation_response = 2;</code> - * * @return Whether the operationResponse field is set. */ boolean hasOperationResponse(); /** - * - * * <pre> * Results of operation related actions. * </pre> * * <code>.google.spanner.executor.v1.OperationResponse operation_response = 2;</code> - * * @return The operationResponse. */ com.google.spanner.executor.v1.OperationResponse getOperationResponse(); /** - * - * * <pre> * Results of operation related actions. * </pre> @@ -94,32 +62,24 @@ public interface AdminResultOrBuilder com.google.spanner.executor.v1.OperationResponseOrBuilder getOperationResponseOrBuilder(); /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> - * * @return Whether the databaseResponse field is set. */ boolean hasDatabaseResponse(); /** - * - * * <pre> * Results of database related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;</code> - * * @return The databaseResponse. */ com.google.spanner.executor.v1.CloudDatabaseResponse getDatabaseResponse(); /** - * - * * <pre> * Results of database related actions. * </pre> @@ -129,32 +89,24 @@ public interface AdminResultOrBuilder com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder getDatabaseResponseOrBuilder(); /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> - * * @return Whether the instanceResponse field is set. */ boolean hasInstanceResponse(); /** - * - * * <pre> * Results of instance related actions. * </pre> * * <code>.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;</code> - * * @return The instanceResponse. */ com.google.spanner.executor.v1.CloudInstanceResponse getInstanceResponse(); /** - * - * * <pre> * Results of instance related actions. * </pre> @@ -164,41 +116,29 @@ public interface AdminResultOrBuilder com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder getInstanceResponseOrBuilder(); /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> - * + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> * @return Whether the instanceConfigResponse field is set. */ boolean hasInstanceConfigResponse(); /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> - * + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> * @return The instanceConfigResponse. */ com.google.spanner.executor.v1.CloudInstanceConfigResponse getInstanceConfigResponse(); /** - * - * * <pre> * Results of instance config related actions. * </pre> * - * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5; - * </code> + * <code>.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;</code> */ - com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder - getInstanceConfigResponseOrBuilder(); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java similarity index 70% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java index e437cfe7700..cb04644ca02 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java @@ -1,74 +1,52 @@ -/* - * 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; /** - * - * * <pre> * Batch of DML statements invoked using batched execution. * </pre> * * Protobuf type {@code google.spanner.executor.v1.BatchDmlAction} */ -public final class BatchDmlAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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) { + 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; + 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 + 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); + 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<com.google.spanner.executor.v1.QueryAction> updates_; /** - * - * * <pre> * DML statements. * </pre> @@ -80,8 +58,6 @@ public java.util.List<com.google.spanner.executor.v1.QueryAction> getUpdatesList return updates_; } /** - * - * * <pre> * DML statements. * </pre> @@ -89,13 +65,11 @@ public java.util.List<com.google.spanner.executor.v1.QueryAction> getUpdatesList * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.QueryActionOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.QueryActionOrBuilder> getUpdatesOrBuilderList() { return updates_; } /** - * - * * <pre> * DML statements. * </pre> @@ -107,8 +81,6 @@ public int getUpdatesCount() { return updates_.size(); } /** - * - * * <pre> * DML statements. * </pre> @@ -120,8 +92,6 @@ public com.google.spanner.executor.v1.QueryAction getUpdates(int index) { return updates_.get(index); } /** - * - * * <pre> * DML statements. * </pre> @@ -129,12 +99,12 @@ public com.google.spanner.executor.v1.QueryAction getUpdates(int index) { * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder(int index) { + 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; @@ -146,7 +116,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -160,7 +131,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < updates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, updates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, updates_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,15 +142,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.spanner.executor.v1.BatchDmlAction other = (com.google.spanner.executor.v1.BatchDmlAction) obj; - if (!getUpdatesList().equals(other.getUpdatesList())) return false; + if (!getUpdatesList() + .equals(other.getUpdatesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,136 +171,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.BatchDmlAction parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Batch of DML statements invoked using batched execution. * </pre> * * Protobuf type {@code google.spanner.executor.v1.BatchDmlAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.BatchDmlAction) com.google.spanner.executor.v1.BatchDmlActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_BatchDmlAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.BatchDmlAction.class, com.google.spanner.executor.v1.BatchDmlAction.Builder.class); } // Construct using com.google.spanner.executor.v1.BatchDmlAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -344,9 +312,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_BatchDmlAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_BatchDmlAction_descriptor; } @java.lang.Override @@ -365,12 +333,9 @@ public com.google.spanner.executor.v1.BatchDmlAction build() { @java.lang.Override public com.google.spanner.executor.v1.BatchDmlAction buildPartial() { - com.google.spanner.executor.v1.BatchDmlAction result = - new com.google.spanner.executor.v1.BatchDmlAction(this); + com.google.spanner.executor.v1.BatchDmlAction result = new com.google.spanner.executor.v1.BatchDmlAction(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -395,39 +360,38 @@ private void buildPartial0(com.google.spanner.executor.v1.BatchDmlAction result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.BatchDmlAction) { - return mergeFrom((com.google.spanner.executor.v1.BatchDmlAction) other); + return mergeFrom((com.google.spanner.executor.v1.BatchDmlAction)other); } else { super.mergeFrom(other); return this; @@ -454,10 +418,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.BatchDmlAction other) { updatesBuilder_ = null; updates_ = other.updates_; bitField0_ = (bitField0_ & ~0x00000001); - updatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUpdatesFieldBuilder() - : null; + updatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUpdatesFieldBuilder() : null; } else { updatesBuilder_.addAllMessages(other.updates_); } @@ -489,26 +452,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.executor.v1.QueryAction m = - input.readMessage( - com.google.spanner.executor.v1.QueryAction.parser(), extensionRegistry); - if (updatesBuilder_ == null) { - ensureUpdatesIsMutable(); - updates_.add(m); - } else { - updatesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.executor.v1.QueryAction m = + input.readMessage( + com.google.spanner.executor.v1.QueryAction.parser(), + extensionRegistry); + if (updatesBuilder_ == null) { + ensureUpdatesIsMutable(); + updates_.add(m); + } else { + updatesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -518,28 +480,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.executor.v1.QueryAction> updates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureUpdatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { updates_ = new java.util.ArrayList<com.google.spanner.executor.v1.QueryAction>(updates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> - updatesBuilder_; + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder> updatesBuilder_; /** - * - * * <pre> * DML statements. * </pre> @@ -554,8 +509,6 @@ public java.util.List<com.google.spanner.executor.v1.QueryAction> getUpdatesList } } /** - * - * * <pre> * DML statements. * </pre> @@ -570,8 +523,6 @@ public int getUpdatesCount() { } } /** - * - * * <pre> * DML statements. * </pre> @@ -586,15 +537,14 @@ public com.google.spanner.executor.v1.QueryAction getUpdates(int index) { } } /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - public Builder setUpdates(int index, com.google.spanner.executor.v1.QueryAction value) { + public Builder setUpdates( + int index, com.google.spanner.executor.v1.QueryAction value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -608,8 +558,6 @@ public Builder setUpdates(int index, com.google.spanner.executor.v1.QueryAction return this; } /** - * - * * <pre> * DML statements. * </pre> @@ -628,8 +576,6 @@ public Builder setUpdates( return this; } /** - * - * * <pre> * DML statements. * </pre> @@ -650,15 +596,14 @@ public Builder addUpdates(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - public Builder addUpdates(int index, com.google.spanner.executor.v1.QueryAction value) { + public Builder addUpdates( + int index, com.google.spanner.executor.v1.QueryAction value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -672,15 +617,14 @@ public Builder addUpdates(int index, com.google.spanner.executor.v1.QueryAction return this; } /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - public Builder addUpdates(com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { + public Builder addUpdates( + com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.add(builderForValue.build()); @@ -691,8 +635,6 @@ public Builder addUpdates(com.google.spanner.executor.v1.QueryAction.Builder bui return this; } /** - * - * * <pre> * DML statements. * </pre> @@ -711,8 +653,6 @@ public Builder addUpdates( return this; } /** - * - * * <pre> * DML statements. * </pre> @@ -723,7 +663,8 @@ 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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, updates_); onChanged(); } else { updatesBuilder_.addAllMessages(values); @@ -731,8 +672,6 @@ public Builder addAllUpdates( return this; } /** - * - * * <pre> * DML statements. * </pre> @@ -750,8 +689,6 @@ public Builder clearUpdates() { return this; } /** - * - * * <pre> * DML statements. * </pre> @@ -769,44 +706,39 @@ public Builder removeUpdates(int index) { return this; } /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - public com.google.spanner.executor.v1.QueryAction.Builder getUpdatesBuilder(int index) { + public com.google.spanner.executor.v1.QueryAction.Builder getUpdatesBuilder( + int index) { return getUpdatesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder(int index) { + public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder( + int index) { if (updatesBuilder_ == null) { - return updates_.get(index); - } else { + return updates_.get(index); } else { return updatesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.QueryActionOrBuilder> - getUpdatesOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.QueryActionOrBuilder> + getUpdatesOrBuilderList() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilderList(); } else { @@ -814,8 +746,6 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder(i } } /** - * - * * <pre> * DML statements. * </pre> @@ -823,55 +753,49 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder(i * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ public com.google.spanner.executor.v1.QueryAction.Builder addUpdatesBuilder() { - return getUpdatesFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.QueryAction.getDefaultInstance()); + return getUpdatesFieldBuilder().addBuilder( + com.google.spanner.executor.v1.QueryAction.getDefaultInstance()); } /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - public com.google.spanner.executor.v1.QueryAction.Builder addUpdatesBuilder(int index) { - return getUpdatesFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.QueryAction.getDefaultInstance()); + public com.google.spanner.executor.v1.QueryAction.Builder addUpdatesBuilder( + int index) { + return getUpdatesFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.QueryAction.getDefaultInstance()); } /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - public java.util.List<com.google.spanner.executor.v1.QueryAction.Builder> - getUpdatesBuilderList() { + public java.util.List<com.google.spanner.executor.v1.QueryAction.Builder> + getUpdatesBuilderList() { return getUpdatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { - updatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder>( - updates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder>( + updates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); updates_ = null; } return updatesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -881,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.BatchDmlAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.BatchDmlAction) private static final com.google.spanner.executor.v1.BatchDmlAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.BatchDmlAction(); } @@ -895,27 +819,27 @@ public static com.google.spanner.executor.v1.BatchDmlAction getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<BatchDmlAction> PARSER = - new com.google.protobuf.AbstractParser<BatchDmlAction>() { - @java.lang.Override - public BatchDmlAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<BatchDmlAction> + PARSER = new com.google.protobuf.AbstractParser<BatchDmlAction>() { + @java.lang.Override + public BatchDmlAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<BatchDmlAction> parser() { return PARSER; @@ -930,4 +854,6 @@ public com.google.protobuf.Parser<BatchDmlAction> getParserForType() { public com.google.spanner.executor.v1.BatchDmlAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java similarity index 60% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java index 498f7f0098d..fe1a394dbc3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlActionOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 interface BatchDmlActionOrBuilder - extends +public interface BatchDmlActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.BatchDmlAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - java.util.List<com.google.spanner.executor.v1.QueryAction> getUpdatesList(); + java.util.List<com.google.spanner.executor.v1.QueryAction> + getUpdatesList(); /** - * - * * <pre> * DML statements. * </pre> @@ -44,8 +25,6 @@ public interface BatchDmlActionOrBuilder */ com.google.spanner.executor.v1.QueryAction getUpdates(int index); /** - * - * * <pre> * DML statements. * </pre> @@ -54,24 +33,21 @@ public interface BatchDmlActionOrBuilder */ int getUpdatesCount(); /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.QueryActionOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.QueryActionOrBuilder> getUpdatesOrBuilderList(); /** - * - * * <pre> * DML statements. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction updates = 1;</code> */ - com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder(int index); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java similarity index 71% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java index ea5c14f7415..6ccb840c094 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * Identifies a database partition generated for a particular read or query. To * read rows from the partition, use ExecutePartitionAction. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.executor.v1.BatchPartition} */ -public final class BatchPartition extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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; @@ -47,37 +29,33 @@ private BatchPartition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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; /** - * - * * <pre> * Serialized Partition instance. * </pre> * * <code>bytes partition = 1;</code> - * * @return The partition. */ @java.lang.Override @@ -88,14 +66,11 @@ public com.google.protobuf.ByteString getPartition() { public static final int PARTITION_TOKEN_FIELD_NUMBER = 2; private com.google.protobuf.ByteString partitionToken_ = com.google.protobuf.ByteString.EMPTY; /** - * - * * <pre> * The partition token decrypted from partition. * </pre> * * <code>bytes partition_token = 2;</code> - * * @return The partitionToken. */ @java.lang.Override @@ -104,19 +79,15 @@ public com.google.protobuf.ByteString getPartitionToken() { } public static final int TABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return Whether the table field is set. */ @java.lang.Override @@ -124,15 +95,12 @@ public boolean hasTable() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return The table. */ @java.lang.Override @@ -141,30 +109,30 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -173,18 +141,14 @@ public com.google.protobuf.ByteString getTableBytes() { } public static final int INDEX_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object index_ = ""; /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return Whether the index field is set. */ @java.lang.Override @@ -192,14 +156,11 @@ public boolean hasIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return The index. */ @java.lang.Override @@ -208,29 +169,29 @@ public java.lang.String getIndex() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; } } /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return The bytes for index. */ @java.lang.Override - public com.google.protobuf.ByteString getIndexBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); index_ = b; return b; } else { @@ -239,7 +200,6 @@ public com.google.protobuf.ByteString getIndexBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +211,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!partition_.isEmpty()) { output.writeBytes(1, partition_); } @@ -274,10 +235,12 @@ public int getSerializedSize() { size = 0; if (!partition_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, partition_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, partition_); } if (!partitionToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, partitionToken_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, partitionToken_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, table_); @@ -293,23 +256,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getTable() + .equals(other.getTable())) return false; } if (hasIndex() != other.hasIndex()) return false; if (hasIndex()) { - if (!getIndex().equals(other.getIndex())) return false; + if (!getIndex() + .equals(other.getIndex())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -339,104 +305,99 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.BatchPartition parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Identifies a database partition generated for a particular read or query. To * read rows from the partition, use ExecutePartitionAction. @@ -444,32 +405,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.BatchPartition} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.BatchPartition) com.google.spanner.executor.v1.BatchPartitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_BatchPartition_descriptor; + 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 + 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); + com.google.spanner.executor.v1.BatchPartition.class, com.google.spanner.executor.v1.BatchPartition.Builder.class); } // Construct using com.google.spanner.executor.v1.BatchPartition.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_BatchPartition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_BatchPartition_descriptor; } @java.lang.Override @@ -503,11 +465,8 @@ public com.google.spanner.executor.v1.BatchPartition build() { @java.lang.Override public com.google.spanner.executor.v1.BatchPartition buildPartial() { - com.google.spanner.executor.v1.BatchPartition result = - new com.google.spanner.executor.v1.BatchPartition(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.BatchPartition result = new com.google.spanner.executor.v1.BatchPartition(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -536,39 +495,38 @@ private void buildPartial0(com.google.spanner.executor.v1.BatchPartition result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.BatchPartition) { - return mergeFrom((com.google.spanner.executor.v1.BatchPartition) other); + return mergeFrom((com.google.spanner.executor.v1.BatchPartition)other); } else { super.mergeFrom(other); return this; @@ -619,37 +577,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - partition_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - partitionToken_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - index_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + partition_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + partitionToken_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + index_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,19 +612,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.ByteString partition_ = com.google.protobuf.ByteString.EMPTY; /** - * - * * <pre> * Serialized Partition instance. * </pre> * * <code>bytes partition = 1;</code> - * * @return The partition. */ @java.lang.Override @@ -679,35 +628,27 @@ public com.google.protobuf.ByteString getPartition() { return partition_; } /** - * - * * <pre> * Serialized Partition instance. * </pre> * * <code>bytes partition = 1;</code> - * * @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(); - } + if (value == null) { throw new NullPointerException(); } partition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Serialized Partition instance. * </pre> * * <code>bytes partition = 1;</code> - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -719,14 +660,11 @@ public Builder clearPartition() { private com.google.protobuf.ByteString partitionToken_ = com.google.protobuf.ByteString.EMPTY; /** - * - * * <pre> * The partition token decrypted from partition. * </pre> * * <code>bytes partition_token = 2;</code> - * * @return The partitionToken. */ @java.lang.Override @@ -734,35 +672,27 @@ public com.google.protobuf.ByteString getPartitionToken() { return partitionToken_; } /** - * - * * <pre> * The partition token decrypted from partition. * </pre> * * <code>bytes partition_token = 2;</code> - * * @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(); - } + if (value == null) { throw new NullPointerException(); } partitionToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The partition token decrypted from partition. * </pre> * * <code>bytes partition_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearPartitionToken() { @@ -774,36 +704,31 @@ public Builder clearPartitionToken() { private java.lang.Object table_ = ""; /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return Whether the table field is set. */ public boolean hasTable() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -812,22 +737,21 @@ public java.lang.String getTable() { } } /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -835,37 +759,30 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return This builder for chaining. */ public Builder clearTable() { @@ -875,22 +792,18 @@ public Builder clearTable() { return this; } /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @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(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000004; @@ -900,34 +813,29 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { private java.lang.Object index_ = ""; /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return Whether the index field is set. */ public boolean hasIndex() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; @@ -936,21 +844,20 @@ public java.lang.String getIndex() { } } /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return The bytes for index. */ - public com.google.protobuf.ByteString getIndexBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); index_ = b; return b; } else { @@ -958,35 +865,28 @@ public com.google.protobuf.ByteString getIndexBytes() { } } /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @param value The index to set. * @return This builder for chaining. */ - public Builder setIndex(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIndex( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } index_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return This builder for chaining. */ public Builder clearIndex() { @@ -996,30 +896,26 @@ public Builder clearIndex() { return this; } /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1029,12 +925,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1043,27 +939,27 @@ public static com.google.spanner.executor.v1.BatchPartition getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<BatchPartition> PARSER = - new com.google.protobuf.AbstractParser<BatchPartition>() { - @java.lang.Override - public BatchPartition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<BatchPartition> + PARSER = new com.google.protobuf.AbstractParser<BatchPartition>() { + @java.lang.Override + public BatchPartition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<BatchPartition> parser() { return PARSER; @@ -1078,4 +974,6 @@ public com.google.protobuf.Parser<BatchPartition> getParserForType() { public com.google.spanner.executor.v1.BatchPartition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java similarity index 70% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java index 73ebc822f2e..71def186ca8 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartitionOrBuilder.java @@ -1,128 +1,90 @@ -/* - * 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 interface BatchPartitionOrBuilder - extends +public interface BatchPartitionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.BatchPartition) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Serialized Partition instance. * </pre> * * <code>bytes partition = 1;</code> - * * @return The partition. */ com.google.protobuf.ByteString getPartition(); /** - * - * * <pre> * The partition token decrypted from partition. * </pre> * * <code>bytes partition_token = 2;</code> - * * @return The partitionToken. */ com.google.protobuf.ByteString getPartitionToken(); /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return Whether the table field is set. */ boolean hasTable(); /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return The table. */ java.lang.String getTable(); /** - * - * * <pre> * Table name is set iff the partition was generated for a read (as opposed to * a query). * </pre> * * <code>optional string table = 3;</code> - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return Whether the index field is set. */ boolean hasIndex(); /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return The index. */ java.lang.String getIndex(); /** - * - * * <pre> * Index name if the partition was generated for an index read. * </pre> * * <code>optional string index = 4;</code> - * * @return The bytes for index. */ - com.google.protobuf.ByteString getIndexBytes(); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java similarity index 65% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java index 1338d97cb87..2402b249244 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java @@ -1,80 +1,57 @@ -/* - * 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; /** - * - * * <pre> * Action that cancels an operation. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CancelOperationAction} */ -public final class CancelOperationAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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) { + 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * The name of the operation resource to be cancelled. * </pre> * * <code>string operation = 1;</code> - * * @return The operation. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getOperation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } } /** - * - * * <pre> * The name of the operation resource to be cancelled. * </pre> * * <code>string operation = 1;</code> - * * @return The bytes for operation. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operation_ = b; return b; } else { @@ -114,7 +91,6 @@ public com.google.protobuf.ByteString getOperationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -150,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.spanner.executor.v1.CancelOperationAction other = (com.google.spanner.executor.v1.CancelOperationAction) obj; - if (!getOperation().equals(other.getOperation())) return false; + if (!getOperation() + .equals(other.getOperation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,135 +155,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CancelOperationAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that cancels an operation. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CancelOperationAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CancelOperationAction) com.google.spanner.executor.v1.CancelOperationActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CancelOperationAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CancelOperationAction.class, com.google.spanner.executor.v1.CancelOperationAction.Builder.class); } // Construct using com.google.spanner.executor.v1.CancelOperationAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -316,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CancelOperationAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CancelOperationAction_descriptor; } @java.lang.Override @@ -337,11 +310,8 @@ public com.google.spanner.executor.v1.CancelOperationAction build() { @java.lang.Override public com.google.spanner.executor.v1.CancelOperationAction buildPartial() { - com.google.spanner.executor.v1.CancelOperationAction result = - new com.google.spanner.executor.v1.CancelOperationAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.CancelOperationAction result = new com.google.spanner.executor.v1.CancelOperationAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -357,39 +327,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CancelOperationAction public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CancelOperationAction) { - return mergeFrom((com.google.spanner.executor.v1.CancelOperationAction) other); + return mergeFrom((com.google.spanner.executor.v1.CancelOperationAction)other); } else { super.mergeFrom(other); return this; @@ -397,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CancelOperationAction other) { - if (other == com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance()) return this; if (!other.getOperation().isEmpty()) { operation_ = other.operation_; bitField0_ |= 0x00000001; @@ -430,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - operation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -452,25 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object operation_ = ""; /** - * - * * <pre> * The name of the operation resource to be cancelled. * </pre> * * <code>string operation = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; @@ -479,21 +442,20 @@ public java.lang.String getOperation() { } } /** - * - * * <pre> * The name of the operation resource to be cancelled. * </pre> * * <code>string operation = 1;</code> - * * @return The bytes for operation. */ - public com.google.protobuf.ByteString getOperationBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operation_ = b; return b; } else { @@ -501,35 +463,28 @@ public com.google.protobuf.ByteString getOperationBytes() { } } /** - * - * * <pre> * The name of the operation resource to be cancelled. * </pre> * * <code>string operation = 1;</code> - * * @param value The operation to set. * @return This builder for chaining. */ - public Builder setOperation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The name of the operation resource to be cancelled. * </pre> * * <code>string operation = 1;</code> - * * @return This builder for chaining. */ public Builder clearOperation() { @@ -539,30 +494,26 @@ public Builder clearOperation() { return this; } /** - * - * * <pre> * The name of the operation resource to be cancelled. * </pre> * * <code>string operation = 1;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -572,12 +523,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -586,27 +537,27 @@ public static com.google.spanner.executor.v1.CancelOperationAction getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CancelOperationAction> PARSER = - new com.google.protobuf.AbstractParser<CancelOperationAction>() { - @java.lang.Override - public CancelOperationAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CancelOperationAction> + PARSER = new com.google.protobuf.AbstractParser<CancelOperationAction>() { + @java.lang.Override + public CancelOperationAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CancelOperationAction> parser() { return PARSER; @@ -621,4 +572,6 @@ public com.google.protobuf.Parser<CancelOperationAction> getParserForType() { public com.google.spanner.executor.v1.CancelOperationAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationActionOrBuilder.java new file mode 100644 index 00000000000..ed6588eb17d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationActionOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/executor/v1/cloud_executor.proto + +package com.google.spanner.executor.v1; + +public interface CancelOperationActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CancelOperationAction) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * The name of the operation resource to be cancelled. + * </pre> + * + * <code>string operation = 1;</code> + * @return The operation. + */ + java.lang.String getOperation(); + /** + * <pre> + * The name of the operation resource to be cancelled. + * </pre> + * + * <code>string operation = 1;</code> + * @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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java similarity index 71% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java index 4dc95858445..4212b15e520 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * Raw ChangeStream records. * Encodes one of: DataChangeRecord, HeartbeatRecord, ChildPartitionsRecord @@ -29,54 +12,49 @@ * * Protobuf type {@code google.spanner.executor.v1.ChangeStreamRecord} */ -public final class ChangeStreamRecord extends com.google.protobuf.GeneratedMessageV3 - implements +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; +private static final long serialVersionUID = 0L; // Use ChangeStreamRecord.newBuilder() to construct. private ChangeStreamRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private ChangeStreamRecord() {} + private ChangeStreamRecord() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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, + 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; } @@ -92,38 +70,31 @@ public static RecordCase valueOf(int 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; + 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 RecordCase + getRecordCase() { + return RecordCase.forNumber( + recordCase_); } public static final int DATA_CHANGE_FIELD_NUMBER = 1; /** - * - * * <pre> * Data change record. * </pre> * * <code>.google.spanner.executor.v1.DataChangeRecord data_change = 1;</code> - * * @return Whether the dataChange field is set. */ @java.lang.Override @@ -131,26 +102,21 @@ public boolean hasDataChange() { return recordCase_ == 1; } /** - * - * * <pre> * Data change record. * </pre> * * <code>.google.spanner.executor.v1.DataChangeRecord data_change = 1;</code> - * * @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) record_; } return com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance(); } /** - * - * * <pre> * Data change record. * </pre> @@ -160,21 +126,18 @@ public com.google.spanner.executor.v1.DataChangeRecord getDataChange() { @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) record_; } return com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance(); } public static final int CHILD_PARTITION_FIELD_NUMBER = 2; /** - * - * * <pre> * Child partitions record. * </pre> * * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> - * * @return Whether the childPartition field is set. */ @java.lang.Override @@ -182,26 +145,21 @@ public boolean hasChildPartition() { return recordCase_ == 2; } /** - * - * * <pre> * Child partitions record. * </pre> * * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> - * * @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) record_; } return com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance(); } /** - * - * * <pre> * Child partitions record. * </pre> @@ -209,24 +167,20 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord getChildPartition() * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder - getChildPartitionOrBuilder() { + 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) record_; } return com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance(); } public static final int HEARTBEAT_FIELD_NUMBER = 3; /** - * - * * <pre> * Heartbeat record. * </pre> * * <code>.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;</code> - * * @return Whether the heartbeat field is set. */ @java.lang.Override @@ -234,26 +188,21 @@ public boolean hasHeartbeat() { return recordCase_ == 3; } /** - * - * * <pre> * Heartbeat record. * </pre> * * <code>.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;</code> - * * @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) record_; } return com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance(); } /** - * - * * <pre> * Heartbeat record. * </pre> @@ -263,13 +212,12 @@ public com.google.spanner.executor.v1.HeartbeatRecord getHeartbeat() { @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) record_; } return com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -301,19 +250,16 @@ public int getSerializedSize() { size = 0; if (recordCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.spanner.executor.v1.DataChangeRecord) record_); + 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_); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.spanner.executor.v1.HeartbeatRecord) record_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -323,24 +269,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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; + if (!getDataChange() + .equals(other.getDataChange())) return false; break; case 2: - if (!getChildPartition().equals(other.getChildPartition())) return false; + if (!getChildPartition() + .equals(other.getChildPartition())) return false; break; case 3: - if (!getHeartbeat().equals(other.getHeartbeat())) return false; + if (!getHeartbeat() + .equals(other.getHeartbeat())) return false; break; case 0: default: @@ -378,103 +326,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ChangeStreamRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Raw ChangeStream records. * Encodes one of: DataChangeRecord, HeartbeatRecord, ChildPartitionsRecord @@ -483,32 +426,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.ChangeStreamRecord} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ChangeStreamRecord) com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ChangeStreamRecord_descriptor; + 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 + 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); + com.google.spanner.executor.v1.ChangeStreamRecord.class, com.google.spanner.executor.v1.ChangeStreamRecord.Builder.class); } // Construct using com.google.spanner.executor.v1.ChangeStreamRecord.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -528,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ChangeStreamRecord_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ChangeStreamRecord_descriptor; } @java.lang.Override @@ -549,11 +493,8 @@ public com.google.spanner.executor.v1.ChangeStreamRecord build() { @java.lang.Override public com.google.spanner.executor.v1.ChangeStreamRecord buildPartial() { - com.google.spanner.executor.v1.ChangeStreamRecord result = - new com.google.spanner.executor.v1.ChangeStreamRecord(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ChangeStreamRecord result = new com.google.spanner.executor.v1.ChangeStreamRecord(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -566,13 +507,16 @@ private void buildPartial0(com.google.spanner.executor.v1.ChangeStreamRecord res private void buildPartialOneofs(com.google.spanner.executor.v1.ChangeStreamRecord result) { result.recordCase_ = recordCase_; result.record_ = this.record_; - if (recordCase_ == 1 && dataChangeBuilder_ != null) { + if (recordCase_ == 1 && + dataChangeBuilder_ != null) { result.record_ = dataChangeBuilder_.build(); } - if (recordCase_ == 2 && childPartitionBuilder_ != null) { + if (recordCase_ == 2 && + childPartitionBuilder_ != null) { result.record_ = childPartitionBuilder_.build(); } - if (recordCase_ == 3 && heartbeatBuilder_ != null) { + if (recordCase_ == 3 && + heartbeatBuilder_ != null) { result.record_ = heartbeatBuilder_.build(); } } @@ -581,39 +525,38 @@ private void buildPartialOneofs(com.google.spanner.executor.v1.ChangeStreamRecor public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ChangeStreamRecord) { - return mergeFrom((com.google.spanner.executor.v1.ChangeStreamRecord) other); + return mergeFrom((com.google.spanner.executor.v1.ChangeStreamRecord)other); } else { super.mergeFrom(other); return this; @@ -621,28 +564,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ChangeStreamRecord other) { - if (other == com.google.spanner.executor.v1.ChangeStreamRecord.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ChangeStreamRecord.getDefaultInstance()) return this; switch (other.getRecordCase()) { - case DATA_CHANGE: - { - mergeDataChange(other.getDataChange()); - break; - } - case CHILD_PARTITION: - { - mergeChildPartition(other.getChildPartition()); - break; - } - case HEARTBEAT: - { - mergeHeartbeat(other.getHeartbeat()); - break; - } - case RECORD_NOT_SET: - { - break; - } + case DATA_CHANGE: { + mergeDataChange(other.getDataChange()); + break; + } + case CHILD_PARTITION: { + mergeChildPartition(other.getChildPartition()); + break; + } + case HEARTBEAT: { + mergeHeartbeat(other.getHeartbeat()); + break; + } + case RECORD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -670,31 +608,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDataChangeFieldBuilder().getBuilder(), extensionRegistry); - recordCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getChildPartitionFieldBuilder().getBuilder(), extensionRegistry); - recordCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getHeartbeatFieldBuilder().getBuilder(), extensionRegistry); - recordCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDataChangeFieldBuilder().getBuilder(), + extensionRegistry); + recordCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getChildPartitionFieldBuilder().getBuilder(), + extensionRegistry); + recordCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getHeartbeatFieldBuilder().getBuilder(), + extensionRegistry); + recordCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -704,12 +644,12 @@ public Builder mergeFrom( } // finally return this; } - private int recordCase_ = 0; private java.lang.Object record_; - - public RecordCase getRecordCase() { - return RecordCase.forNumber(recordCase_); + public RecordCase + getRecordCase() { + return RecordCase.forNumber( + recordCase_); } public Builder clearRecord() { @@ -722,19 +662,13 @@ public Builder clearRecord() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.DataChangeRecord, - com.google.spanner.executor.v1.DataChangeRecord.Builder, - com.google.spanner.executor.v1.DataChangeRecordOrBuilder> - dataChangeBuilder_; + com.google.spanner.executor.v1.DataChangeRecord, com.google.spanner.executor.v1.DataChangeRecord.Builder, com.google.spanner.executor.v1.DataChangeRecordOrBuilder> dataChangeBuilder_; /** - * - * * <pre> * Data change record. * </pre> * * <code>.google.spanner.executor.v1.DataChangeRecord data_change = 1;</code> - * * @return Whether the dataChange field is set. */ @java.lang.Override @@ -742,14 +676,11 @@ public boolean hasDataChange() { return recordCase_ == 1; } /** - * - * * <pre> * Data change record. * </pre> * * <code>.google.spanner.executor.v1.DataChangeRecord data_change = 1;</code> - * * @return The dataChange. */ @java.lang.Override @@ -767,8 +698,6 @@ public com.google.spanner.executor.v1.DataChangeRecord getDataChange() { } } /** - * - * * <pre> * Data change record. * </pre> @@ -789,8 +718,6 @@ public Builder setDataChange(com.google.spanner.executor.v1.DataChangeRecord val return this; } /** - * - * * <pre> * Data change record. * </pre> @@ -809,8 +736,6 @@ public Builder setDataChange( return this; } /** - * - * * <pre> * Data change record. * </pre> @@ -819,13 +744,10 @@ public Builder setDataChange( */ 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(); + 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; } @@ -841,8 +763,6 @@ public Builder mergeDataChange(com.google.spanner.executor.v1.DataChangeRecord v return this; } /** - * - * * <pre> * Data change record. * </pre> @@ -866,8 +786,6 @@ public Builder clearDataChange() { return this; } /** - * - * * <pre> * Data change record. * </pre> @@ -878,8 +796,6 @@ public com.google.spanner.executor.v1.DataChangeRecord.Builder getDataChangeBuil return getDataChangeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Data change record. * </pre> @@ -898,8 +814,6 @@ public com.google.spanner.executor.v1.DataChangeRecordOrBuilder getDataChangeOrB } } /** - * - * * <pre> * Data change record. * </pre> @@ -907,19 +821,14 @@ public com.google.spanner.executor.v1.DataChangeRecordOrBuilder getDataChangeOrB * <code>.google.spanner.executor.v1.DataChangeRecord data_change = 1;</code> */ private 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, 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>( + 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()); @@ -931,19 +840,13 @@ public com.google.spanner.executor.v1.DataChangeRecordOrBuilder getDataChangeOrB } 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_; + com.google.spanner.executor.v1.ChildPartitionsRecord, com.google.spanner.executor.v1.ChildPartitionsRecord.Builder, com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder> childPartitionBuilder_; /** - * - * * <pre> * Child partitions record. * </pre> * * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> - * * @return Whether the childPartition field is set. */ @java.lang.Override @@ -951,14 +854,11 @@ public boolean hasChildPartition() { return recordCase_ == 2; } /** - * - * * <pre> * Child partitions record. * </pre> * * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> - * * @return The childPartition. */ @java.lang.Override @@ -976,8 +876,6 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord getChildPartition() } } /** - * - * * <pre> * Child partitions record. * </pre> @@ -998,8 +896,6 @@ public Builder setChildPartition(com.google.spanner.executor.v1.ChildPartitionsR return this; } /** - * - * * <pre> * Child partitions record. * </pre> @@ -1018,8 +914,6 @@ public Builder setChildPartition( return this; } /** - * - * * <pre> * Child partitions record. * </pre> @@ -1028,14 +922,10 @@ public Builder setChildPartition( */ 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(); + 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; } @@ -1051,8 +941,6 @@ public Builder mergeChildPartition(com.google.spanner.executor.v1.ChildPartition return this; } /** - * - * * <pre> * Child partitions record. * </pre> @@ -1076,8 +964,6 @@ public Builder clearChildPartition() { return this; } /** - * - * * <pre> * Child partitions record. * </pre> @@ -1088,8 +974,6 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord.Builder getChildPart return getChildPartitionFieldBuilder().getBuilder(); } /** - * - * * <pre> * Child partitions record. * </pre> @@ -1097,8 +981,7 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord.Builder getChildPart * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder - getChildPartitionOrBuilder() { + public com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder getChildPartitionOrBuilder() { if ((recordCase_ == 2) && (childPartitionBuilder_ != null)) { return childPartitionBuilder_.getMessageOrBuilder(); } else { @@ -1109,8 +992,6 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord.Builder getChildPart } } /** - * - * * <pre> * Child partitions record. * </pre> @@ -1118,19 +999,14 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord.Builder getChildPart * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> */ private 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, 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>( + 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()); @@ -1142,19 +1018,13 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord.Builder getChildPart } 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_; + com.google.spanner.executor.v1.HeartbeatRecord, com.google.spanner.executor.v1.HeartbeatRecord.Builder, com.google.spanner.executor.v1.HeartbeatRecordOrBuilder> heartbeatBuilder_; /** - * - * * <pre> * Heartbeat record. * </pre> * * <code>.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;</code> - * * @return Whether the heartbeat field is set. */ @java.lang.Override @@ -1162,14 +1032,11 @@ public boolean hasHeartbeat() { return recordCase_ == 3; } /** - * - * * <pre> * Heartbeat record. * </pre> * * <code>.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;</code> - * * @return The heartbeat. */ @java.lang.Override @@ -1187,8 +1054,6 @@ public com.google.spanner.executor.v1.HeartbeatRecord getHeartbeat() { } } /** - * - * * <pre> * Heartbeat record. * </pre> @@ -1209,8 +1074,6 @@ public Builder setHeartbeat(com.google.spanner.executor.v1.HeartbeatRecord value return this; } /** - * - * * <pre> * Heartbeat record. * </pre> @@ -1229,8 +1092,6 @@ public Builder setHeartbeat( return this; } /** - * - * * <pre> * Heartbeat record. * </pre> @@ -1239,13 +1100,10 @@ public Builder setHeartbeat( */ 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(); + 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; } @@ -1261,8 +1119,6 @@ public Builder mergeHeartbeat(com.google.spanner.executor.v1.HeartbeatRecord val return this; } /** - * - * * <pre> * Heartbeat record. * </pre> @@ -1286,8 +1142,6 @@ public Builder clearHeartbeat() { return this; } /** - * - * * <pre> * Heartbeat record. * </pre> @@ -1298,8 +1152,6 @@ public com.google.spanner.executor.v1.HeartbeatRecord.Builder getHeartbeatBuilde return getHeartbeatFieldBuilder().getBuilder(); } /** - * - * * <pre> * Heartbeat record. * </pre> @@ -1318,8 +1170,6 @@ public com.google.spanner.executor.v1.HeartbeatRecordOrBuilder getHeartbeatOrBui } } /** - * - * * <pre> * Heartbeat record. * </pre> @@ -1327,19 +1177,14 @@ public com.google.spanner.executor.v1.HeartbeatRecordOrBuilder getHeartbeatOrBui * <code>.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;</code> */ private 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, 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>( + 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()); @@ -1349,9 +1194,9 @@ public com.google.spanner.executor.v1.HeartbeatRecordOrBuilder getHeartbeatOrBui onChanged(); return heartbeatBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1361,12 +1206,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1375,27 +1220,27 @@ public static com.google.spanner.executor.v1.ChangeStreamRecord getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ChangeStreamRecord> PARSER = - new com.google.protobuf.AbstractParser<ChangeStreamRecord>() { - @java.lang.Override - public ChangeStreamRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ChangeStreamRecord> + PARSER = new com.google.protobuf.AbstractParser<ChangeStreamRecord>() { + @java.lang.Override + public ChangeStreamRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ChangeStreamRecord> parser() { return PARSER; @@ -1410,4 +1255,6 @@ public com.google.protobuf.Parser<ChangeStreamRecord> getParserForType() { public com.google.spanner.executor.v1.ChangeStreamRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java similarity index 76% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java index 2ad85229b56..dc4c664699b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface ChangeStreamRecordOrBuilder - extends +public interface ChangeStreamRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ChangeStreamRecord) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Data change record. * </pre> * * <code>.google.spanner.executor.v1.DataChangeRecord data_change = 1;</code> - * * @return Whether the dataChange field is set. */ boolean hasDataChange(); /** - * - * * <pre> * Data change record. * </pre> * * <code>.google.spanner.executor.v1.DataChangeRecord data_change = 1;</code> - * * @return The dataChange. */ com.google.spanner.executor.v1.DataChangeRecord getDataChange(); /** - * - * * <pre> * Data change record. * </pre> @@ -59,32 +35,24 @@ public interface ChangeStreamRecordOrBuilder com.google.spanner.executor.v1.DataChangeRecordOrBuilder getDataChangeOrBuilder(); /** - * - * * <pre> * Child partitions record. * </pre> * * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> - * * @return Whether the childPartition field is set. */ boolean hasChildPartition(); /** - * - * * <pre> * Child partitions record. * </pre> * * <code>.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;</code> - * * @return The childPartition. */ com.google.spanner.executor.v1.ChildPartitionsRecord getChildPartition(); /** - * - * * <pre> * Child partitions record. * </pre> @@ -94,32 +62,24 @@ public interface ChangeStreamRecordOrBuilder com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder getChildPartitionOrBuilder(); /** - * - * * <pre> * Heartbeat record. * </pre> * * <code>.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;</code> - * * @return Whether the heartbeat field is set. */ boolean hasHeartbeat(); /** - * - * * <pre> * Heartbeat record. * </pre> * * <code>.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;</code> - * * @return The heartbeat. */ com.google.spanner.executor.v1.HeartbeatRecord getHeartbeat(); /** - * - * * <pre> * Heartbeat record. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java index a4197d3585b..ddc23f4144c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * ChangeStream child partition record. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ChildPartitionsRecord} */ -public final class ChildPartitionsRecord extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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(); @@ -44,164 +26,140 @@ private ChildPartitionsRecord() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + com.google.spanner.executor.v1.ChildPartitionsRecord.class, com.google.spanner.executor.v1.ChildPartitionsRecord.Builder.class); } - public interface ChildPartitionOrBuilder - extends + public interface ChildPartitionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @return The token. */ java.lang.String getToken(); /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @return The bytes for token. */ - com.google.protobuf.ByteString getTokenBytes(); + com.google.protobuf.ByteString + getTokenBytes(); /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @return A list containing the parentPartitionTokens. */ - java.util.List<java.lang.String> getParentPartitionTokensList(); + java.util.List<java.lang.String> + getParentPartitionTokensList(); /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @return The count of parentPartitionTokens. */ int getParentPartitionTokensCount(); /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @param index The index of the element to return. * @return The parentPartitionTokens at the given index. */ java.lang.String getParentPartitionTokens(int index); /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @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); + com.google.protobuf.ByteString + getParentPartitionTokensBytes(int index); } /** - * - * * <pre> * A single child partition. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition} */ - public static final class ChildPartition extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + 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(); + parentPartitionTokens_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @return The token. */ @java.lang.Override @@ -210,29 +168,29 @@ public java.lang.String getToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } } /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @return The bytes for token. */ @java.lang.Override - public com.google.protobuf.ByteString getTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); token_ = b; return b; } else { @@ -241,47 +199,38 @@ public com.google.protobuf.ByteString getTokenBytes() { } public static final int PARENT_PARTITION_TOKENS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList parentPartitionTokens_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @return A list containing the parentPartitionTokens. */ - public com.google.protobuf.ProtocolStringList getParentPartitionTokensList() { + public com.google.protobuf.ProtocolStringList + getParentPartitionTokensList() { return parentPartitionTokens_; } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @return The count of parentPartitionTokens. */ public int getParentPartitionTokensCount() { return parentPartitionTokens_.size(); } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @param index The index of the element to return. * @return The parentPartitionTokens at the given index. */ @@ -289,23 +238,20 @@ public java.lang.String getParentPartitionTokens(int index) { return parentPartitionTokens_.get(index); } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @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) { + 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; @@ -317,13 +263,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentPartitionTokens_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -353,17 +299,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getToken() + .equals(other.getToken())) return false; + if (!getParentPartitionTokensList() + .equals(other.getParentPartitionTokensList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -387,95 +333,89 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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 { + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -485,62 +425,58 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * A single child partition. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition) com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder { - 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; + 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 + 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); + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.class, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder.class); } - // Construct using - // com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.newBuilder() - private Builder() {} + // Construct using com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; token_ = ""; - parentPartitionTokens_ = com.google.protobuf.LazyStringArrayList.emptyList(); + parentPartitionTokens_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition - getDefaultInstanceForType() { - return com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition - .getDefaultInstance(); + public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getDefaultInstanceForType() { + return com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.getDefaultInstance(); } @java.lang.Override @@ -554,17 +490,13 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition build @java.lang.Override public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition buildPartial() { - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition result = - new com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition result = new com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition result) { + private void buildPartial0(com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.token_ = token_; @@ -579,53 +511,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition) { - return mergeFrom( - (com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition) other); + return mergeFrom((com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition other) { - if (other - == com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition other) { + if (other == com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.getDefaultInstance()) return this; if (!other.getToken().isEmpty()) { token_ = other.token_; bitField0_ |= 0x00000001; @@ -667,26 +592,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - token_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureParentPartitionTokensIsMutable(); - parentPartitionTokens_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureParentPartitionTokensIsMutable(); + parentPartitionTokens_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -696,25 +618,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object token_ = ""; /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; @@ -723,21 +642,20 @@ public java.lang.String getToken() { } } /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @return The bytes for token. */ - public com.google.protobuf.ByteString getTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); token_ = b; return b; } else { @@ -745,35 +663,28 @@ public com.google.protobuf.ByteString getTokenBytes() { } } /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @param value The token to set. * @return This builder for chaining. */ - public Builder setToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } token_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @return This builder for chaining. */ public Builder clearToken() { @@ -783,21 +694,17 @@ public Builder clearToken() { return this; } /** - * - * * <pre> * Partition token string used to identify the child partition in queries. * </pre> * * <code>string token = 1;</code> - * * @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(); - } + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); token_ = value; bitField0_ |= 0x00000001; @@ -807,52 +714,42 @@ public Builder setTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList parentPartitionTokens_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureParentPartitionTokensIsMutable() { if (!parentPartitionTokens_.isModifiable()) { - parentPartitionTokens_ = - new com.google.protobuf.LazyStringArrayList(parentPartitionTokens_); + parentPartitionTokens_ = new com.google.protobuf.LazyStringArrayList(parentPartitionTokens_); } bitField0_ |= 0x00000002; } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @return A list containing the parentPartitionTokens. */ - public com.google.protobuf.ProtocolStringList getParentPartitionTokensList() { + public com.google.protobuf.ProtocolStringList + getParentPartitionTokensList() { parentPartitionTokens_.makeImmutable(); return parentPartitionTokens_; } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @return The count of parentPartitionTokens. */ public int getParentPartitionTokensCount() { return parentPartitionTokens_.size(); } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @param index The index of the element to return. * @return The parentPartitionTokens at the given index. */ @@ -860,37 +757,31 @@ public java.lang.String getParentPartitionTokens(int index) { return parentPartitionTokens_.get(index); } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @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) { + public com.google.protobuf.ByteString + getParentPartitionTokensBytes(int index) { return parentPartitionTokens_.getByteString(index); } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @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(); - } + public Builder setParentPartitionTokens( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureParentPartitionTokensIsMutable(); parentPartitionTokens_.set(index, value); bitField0_ |= 0x00000002; @@ -898,21 +789,17 @@ public Builder setParentPartitionTokens(int index, java.lang.String value) { return this; } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @param value The parentPartitionTokens to add. * @return This builder for chaining. */ - public Builder addParentPartitionTokens(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addParentPartitionTokens( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureParentPartitionTokensIsMutable(); parentPartitionTokens_.add(value); bitField0_ |= 0x00000002; @@ -920,58 +807,50 @@ public Builder addParentPartitionTokens(java.lang.String value) { return this; } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @param values The parentPartitionTokens to add. * @return This builder for chaining. */ - public Builder addAllParentPartitionTokens(java.lang.Iterable<java.lang.String> values) { + public Builder addAllParentPartitionTokens( + java.lang.Iterable<java.lang.String> values) { ensureParentPartitionTokensIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parentPartitionTokens_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parentPartitionTokens_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @return This builder for chaining. */ public Builder clearParentPartitionTokens() { - parentPartitionTokens_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + parentPartitionTokens_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * * <pre> * Parent partition tokens of this child partition. * </pre> * * <code>repeated string parent_partition_tokens = 2;</code> - * * @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(); - } + public Builder addParentPartitionTokensBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureParentPartitionTokensIsMutable(); parentPartitionTokens_.add(value); @@ -979,7 +858,6 @@ public Builder addParentPartitionTokensBytes(com.google.protobuf.ByteString valu onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -992,44 +870,41 @@ public final Builder mergeUnknownFields( 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; - + 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() { + public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ChildPartition> PARSER = - new com.google.protobuf.AbstractParser<ChildPartition>() { - @java.lang.Override - public ChildPartition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ChildPartition> + PARSER = new com.google.protobuf.AbstractParser<ChildPartition>() { + @java.lang.Override + public ChildPartition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ChildPartition> parser() { return PARSER; @@ -1041,24 +916,21 @@ public com.google.protobuf.Parser<ChildPartition> getParserForType() { } @java.lang.Override - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. * </pre> * * <code>.google.protobuf.Timestamp start_time = 1;</code> - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -1066,15 +938,12 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. * </pre> * * <code>.google.protobuf.Timestamp start_time = 1;</code> - * * @return The startTime. */ @java.lang.Override @@ -1082,8 +951,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -1097,12 +964,9 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } public static final int RECORD_SEQUENCE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object recordSequence_ = ""; /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -1111,7 +975,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * </pre> * * <code>string record_sequence = 2;</code> - * * @return The recordSequence. */ @java.lang.Override @@ -1120,15 +983,14 @@ public java.lang.String getRecordSequence() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordSequence_ = s; return s; } } /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -1137,15 +999,16 @@ public java.lang.String getRecordSequence() { * </pre> * * <code>string record_sequence = 2;</code> - * * @return The bytes for recordSequence. */ @java.lang.Override - public com.google.protobuf.ByteString getRecordSequenceBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recordSequence_ = b; return b; } else { @@ -1154,93 +1017,67 @@ public com.google.protobuf.ByteString getRecordSequenceBytes() { } public static final int CHILD_PARTITIONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> - childPartitions_; + private java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> childPartitions_; /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ @java.lang.Override - public java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> - getChildPartitionsList() { + public java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> getChildPartitionsList() { return childPartitions_; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ @java.lang.Override - public java.util.List< - ? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder> getChildPartitionsOrBuilderList() { return childPartitions_; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ @java.lang.Override public int getChildPartitionsCount() { return childPartitions_.size(); } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getChildPartitions( - int index) { + public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getChildPartitions(int index) { return childPartitions_.get(index); } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder - getChildPartitionsOrBuilder(int index) { + 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; @@ -1252,7 +1089,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -1272,13 +1110,15 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, childPartitions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1288,20 +1128,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getStartTime() + .equals(other.getStartTime())) return false; } - if (!getRecordSequence().equals(other.getRecordSequence())) return false; - if (!getChildPartitionsList().equals(other.getChildPartitionsList())) 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; } @@ -1329,135 +1171,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ChildPartitionsRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * ChangeStream child partition record. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ChildPartitionsRecord} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ChildPartitionsRecord) com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ChildPartitionsRecord_descriptor; + 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 + 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); + com.google.spanner.executor.v1.ChildPartitionsRecord.class, com.google.spanner.executor.v1.ChildPartitionsRecord.Builder.class); } // Construct using com.google.spanner.executor.v1.ChildPartitionsRecord.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1479,9 +1317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ChildPartitionsRecord_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ChildPartitionsRecord_descriptor; } @java.lang.Override @@ -1500,18 +1338,14 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord build() { @java.lang.Override public com.google.spanner.executor.v1.ChildPartitionsRecord buildPartial() { - com.google.spanner.executor.v1.ChildPartitionsRecord result = - new com.google.spanner.executor.v1.ChildPartitionsRecord(this); + com.google.spanner.executor.v1.ChildPartitionsRecord result = new com.google.spanner.executor.v1.ChildPartitionsRecord(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.ChildPartitionsRecord result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.ChildPartitionsRecord result) { if (childPartitionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { childPartitions_ = java.util.Collections.unmodifiableList(childPartitions_); @@ -1526,7 +1360,9 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.spanner.executor.v1.ChildPartitionsRecord result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.recordSequence_ = recordSequence_; @@ -1537,39 +1373,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ChildPartitionsRecord public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ChildPartitionsRecord) { - return mergeFrom((com.google.spanner.executor.v1.ChildPartitionsRecord) other); + return mergeFrom((com.google.spanner.executor.v1.ChildPartitionsRecord)other); } else { super.mergeFrom(other); return this; @@ -1577,8 +1412,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ChildPartitionsRecord other) { - if (other == com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance()) return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -1605,10 +1439,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.ChildPartitionsRecord ot childPartitionsBuilder_ = null; childPartitions_ = other.childPartitions_; bitField0_ = (bitField0_ & ~0x00000004); - childPartitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getChildPartitionsFieldBuilder() - : null; + childPartitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChildPartitionsFieldBuilder() : null; } else { childPartitionsBuilder_.addAllMessages(other.childPartitions_); } @@ -1640,40 +1473,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - recordSequence_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition m = - input.readMessage( - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition - .parser(), - extensionRegistry); - if (childPartitionsBuilder_ == null) { - ensureChildPartitionsIsMutable(); - childPartitions_.add(m); - } else { - childPartitionsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + recordSequence_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition m = + input.readMessage( + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.parser(), + extensionRegistry); + if (childPartitionsBuilder_ == null) { + ensureChildPartitionsIsMutable(); + childPartitions_.add(m); + } else { + childPartitionsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1683,40 +1513,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. * </pre> * * <code>.google.protobuf.Timestamp start_time = 1;</code> - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. * </pre> * * <code>.google.protobuf.Timestamp start_time = 1;</code> - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1727,8 +1547,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -1750,8 +1568,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -1759,7 +1575,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp start_time = 1;</code> */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -1770,8 +1587,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -1781,9 +1596,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1796,8 +1611,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -1816,8 +1629,6 @@ public Builder clearStartTime() { return this; } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -1831,8 +1642,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -1844,12 +1653,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -1858,17 +1666,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * <code>.google.protobuf.Timestamp start_time = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1876,8 +1681,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private java.lang.Object recordSequence_ = ""; /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -1886,13 +1689,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * </pre> * * <code>string record_sequence = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordSequence_ = s; return s; @@ -1901,8 +1704,6 @@ public java.lang.String getRecordSequence() { } } /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -1911,14 +1712,15 @@ public java.lang.String getRecordSequence() { * </pre> * * <code>string record_sequence = 2;</code> - * * @return The bytes for recordSequence. */ - public com.google.protobuf.ByteString getRecordSequenceBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recordSequence_ = b; return b; } else { @@ -1926,8 +1728,6 @@ public com.google.protobuf.ByteString getRecordSequenceBytes() { } } /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -1936,22 +1736,18 @@ public com.google.protobuf.ByteString getRecordSequenceBytes() { * </pre> * * <code>string record_sequence = 2;</code> - * * @param value The recordSequence to set. * @return This builder for chaining. */ - public Builder setRecordSequence(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordSequence( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recordSequence_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -1960,7 +1756,6 @@ public Builder setRecordSequence(java.lang.String value) { * </pre> * * <code>string record_sequence = 2;</code> - * * @return This builder for chaining. */ public Builder clearRecordSequence() { @@ -1970,8 +1765,6 @@ public Builder clearRecordSequence() { return this; } /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -1980,14 +1773,12 @@ public Builder clearRecordSequence() { * </pre> * * <code>string record_sequence = 2;</code> - * * @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(); - } + public Builder setRecordSequenceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recordSequence_ = value; bitField0_ |= 0x00000002; @@ -1995,38 +1786,26 @@ public Builder setRecordSequenceBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> - childPartitions_ = java.util.Collections.emptyList(); - + private java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> childPartitions_ = + java.util.Collections.emptyList(); private void ensureChildPartitionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - childPartitions_ = - new java.util.ArrayList< - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition>( - childPartitions_); + childPartitions_ = new java.util.ArrayList<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition>(childPartitions_); bitField0_ |= 0x00000004; - } + } } 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> - childPartitionsBuilder_; + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder> childPartitionsBuilder_; /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> - getChildPartitionsList() { + public java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> getChildPartitionsList() { if (childPartitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(childPartitions_); } else { @@ -2034,15 +1813,11 @@ private void ensureChildPartitionsIsMutable() { } } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public int getChildPartitionsCount() { if (childPartitionsBuilder_ == null) { @@ -2052,18 +1827,13 @@ public int getChildPartitionsCount() { } } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getChildPartitions( - int index) { + public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getChildPartitions(int index) { if (childPartitionsBuilder_ == null) { return childPartitions_.get(index); } else { @@ -2071,15 +1841,11 @@ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getCh } } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public Builder setChildPartitions( int index, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition value) { @@ -2096,20 +1862,14 @@ public Builder setChildPartitions( return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public Builder setChildPartitions( - int index, - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder - builderForValue) { + int index, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder builderForValue) { if (childPartitionsBuilder_ == null) { ensureChildPartitionsIsMutable(); childPartitions_.set(index, builderForValue.build()); @@ -2120,18 +1880,13 @@ public Builder setChildPartitions( return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public Builder addChildPartitions( - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition value) { + public Builder addChildPartitions(com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition value) { if (childPartitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2145,15 +1900,11 @@ public Builder addChildPartitions( return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public Builder addChildPartitions( int index, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition value) { @@ -2170,19 +1921,14 @@ public Builder addChildPartitions( return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public Builder addChildPartitions( - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder - builderForValue) { + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder builderForValue) { if (childPartitionsBuilder_ == null) { ensureChildPartitionsIsMutable(); childPartitions_.add(builderForValue.build()); @@ -2193,20 +1939,14 @@ public Builder addChildPartitions( return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public Builder addChildPartitions( - int index, - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder - builderForValue) { + int index, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder builderForValue) { if (childPartitionsBuilder_ == null) { ensureChildPartitionsIsMutable(); childPartitions_.add(index, builderForValue.build()); @@ -2217,23 +1957,18 @@ public Builder addChildPartitions( return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public Builder addAllChildPartitions( - java.lang.Iterable< - ? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> - values) { + java.lang.Iterable<? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> values) { if (childPartitionsBuilder_ == null) { ensureChildPartitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childPartitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, childPartitions_); onChanged(); } else { childPartitionsBuilder_.addAllMessages(values); @@ -2241,15 +1976,11 @@ public Builder addAllChildPartitions( return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public Builder clearChildPartitions() { if (childPartitionsBuilder_ == null) { @@ -2262,15 +1993,11 @@ public Builder clearChildPartitions() { return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ public Builder removeChildPartitions(int index) { if (childPartitionsBuilder_ == null) { @@ -2283,53 +2010,39 @@ public Builder removeChildPartitions(int index) { return this; } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder - getChildPartitionsBuilder(int index) { + public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder getChildPartitionsBuilder( + int index) { return getChildPartitionsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder - getChildPartitionsOrBuilder(int index) { + public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder getChildPartitionsOrBuilder( + int index) { if (childPartitionsBuilder_ == null) { - return childPartitions_.get(index); - } else { + return childPartitions_.get(index); } else { return childPartitionsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public java.util.List< - ? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder> - getChildPartitionsOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder> + getChildPartitionsOrBuilderList() { if (childPartitionsBuilder_ != null) { return childPartitionsBuilder_.getMessageOrBuilderList(); } else { @@ -2337,70 +2050,45 @@ public Builder removeChildPartitions(int index) { } } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder - addChildPartitionsBuilder() { - return getChildPartitionsFieldBuilder() - .addBuilder( - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition - .getDefaultInstance()); + public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder addChildPartitionsBuilder() { + return getChildPartitionsFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.getDefaultInstance()); } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder - addChildPartitionsBuilder(int index) { - return getChildPartitionsFieldBuilder() - .addBuilder( - index, - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition - .getDefaultInstance()); + public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder addChildPartitionsBuilder( + int index) { + return getChildPartitionsFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.getDefaultInstance()); } /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - public java.util.List< - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder> - getChildPartitionsBuilderList() { + 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> + 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>( + 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(), @@ -2409,9 +2097,9 @@ public Builder removeChildPartitions(int index) { } return childPartitionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2421,12 +2109,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2435,27 +2123,27 @@ public static com.google.spanner.executor.v1.ChildPartitionsRecord getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ChildPartitionsRecord> PARSER = - new com.google.protobuf.AbstractParser<ChildPartitionsRecord>() { - @java.lang.Override - public ChildPartitionsRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ChildPartitionsRecord> + PARSER = new com.google.protobuf.AbstractParser<ChildPartitionsRecord>() { + @java.lang.Override + public ChildPartitionsRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ChildPartitionsRecord> parser() { return PARSER; @@ -2470,4 +2158,6 @@ public com.google.protobuf.Parser<ChildPartitionsRecord> getParserForType() { public com.google.spanner.executor.v1.ChildPartitionsRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java similarity index 63% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java index 14f6b486013..8be2d095f12 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecordOrBuilder.java @@ -1,57 +1,33 @@ -/* - * 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 interface ChildPartitionsRecordOrBuilder - extends +public interface ChildPartitionsRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ChildPartitionsRecord) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. * </pre> * * <code>.google.protobuf.Timestamp start_time = 1;</code> - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. * </pre> * * <code>.google.protobuf.Timestamp start_time = 1;</code> - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * * <pre> * Data change records returned from child partitions in this child partitions * record will have a commit timestamp greater than or equal to start_time. @@ -62,8 +38,6 @@ public interface ChildPartitionsRecordOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -72,13 +46,10 @@ public interface ChildPartitionsRecordOrBuilder * </pre> * * <code>string record_sequence = 2;</code> - * * @return The recordSequence. */ java.lang.String getRecordSequence(); /** - * - * * <pre> * A monotonically increasing sequence number that can be used to define the * ordering of the child partitions record when there are multiple child @@ -87,73 +58,52 @@ public interface ChildPartitionsRecordOrBuilder * </pre> * * <code>string record_sequence = 2;</code> - * * @return The bytes for recordSequence. */ - com.google.protobuf.ByteString getRecordSequenceBytes(); + com.google.protobuf.ByteString + getRecordSequenceBytes(); /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> + java.util.List<com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition> getChildPartitionsList(); /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getChildPartitions(int index); /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ int getChildPartitionsCount(); /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - java.util.List< - ? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder> getChildPartitionsOrBuilderList(); /** - * - * * <pre> * A set of child partitions and their associated information. * </pre> * - * <code> - * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3; - * </code> + * <code>repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;</code> */ - com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder - getChildPartitionsOrBuilder(int index); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java similarity index 65% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java index 3620bf80b9c..ac3f3f8e0b3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * Closes or cleans up the currently opened batch read-only transaction. * @@ -35,50 +18,46 @@ * * Protobuf type {@code google.spanner.executor.v1.CloseBatchTransactionAction} */ -public final class CloseBatchTransactionAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +private static final long serialVersionUID = 0L; // Use CloseBatchTransactionAction.newBuilder() to construct. private CloseBatchTransactionAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private CloseBatchTransactionAction() {} + private CloseBatchTransactionAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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; /** - * - * * <pre> * Indicates whether the transaction needs to be cleaned up. * </pre> * * <code>bool cleanup = 1;</code> - * * @return The cleanup. */ @java.lang.Override @@ -87,7 +66,6 @@ public boolean getCleanup() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -99,7 +77,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (cleanup_ != false) { output.writeBool(1, cleanup_); } @@ -113,7 +92,8 @@ public int getSerializedSize() { size = 0; if (cleanup_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, cleanup_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, cleanup_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,15 +103,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.spanner.executor.v1.CloseBatchTransactionAction other = (com.google.spanner.executor.v1.CloseBatchTransactionAction) obj; - if (getCleanup() != other.getCleanup()) return false; + if (getCleanup() + != other.getCleanup()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -144,111 +124,106 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLEANUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCleanup()); + 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 { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.CloseBatchTransactionAction prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Closes or cleans up the currently opened batch read-only transaction. * @@ -263,32 +238,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.CloseBatchTransactionAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CloseBatchTransactionAction) com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CloseBatchTransactionAction.class, com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder.class); } // Construct using com.google.spanner.executor.v1.CloseBatchTransactionAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -298,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_descriptor; } @java.lang.Override @@ -319,11 +295,8 @@ public com.google.spanner.executor.v1.CloseBatchTransactionAction build() { @java.lang.Override public com.google.spanner.executor.v1.CloseBatchTransactionAction buildPartial() { - com.google.spanner.executor.v1.CloseBatchTransactionAction result = - new com.google.spanner.executor.v1.CloseBatchTransactionAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.CloseBatchTransactionAction result = new com.google.spanner.executor.v1.CloseBatchTransactionAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -339,39 +312,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CloseBatchTransactionA public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CloseBatchTransactionAction) { - return mergeFrom((com.google.spanner.executor.v1.CloseBatchTransactionAction) other); + return mergeFrom((com.google.spanner.executor.v1.CloseBatchTransactionAction)other); } else { super.mergeFrom(other); return this; @@ -379,8 +351,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CloseBatchTransactionAction other) { - if (other == com.google.spanner.executor.v1.CloseBatchTransactionAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CloseBatchTransactionAction.getDefaultInstance()) return this; if (other.getCleanup() != false) { setCleanup(other.getCleanup()); } @@ -410,19 +381,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - cleanup_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + cleanup_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -432,19 +401,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean cleanup_; + private boolean cleanup_ ; /** - * - * * <pre> * Indicates whether the transaction needs to be cleaned up. * </pre> * * <code>bool cleanup = 1;</code> - * * @return The cleanup. */ @java.lang.Override @@ -452,14 +417,11 @@ public boolean getCleanup() { return cleanup_; } /** - * - * * <pre> * Indicates whether the transaction needs to be cleaned up. * </pre> * * <code>bool cleanup = 1;</code> - * * @param value The cleanup to set. * @return This builder for chaining. */ @@ -471,14 +433,11 @@ public Builder setCleanup(boolean value) { return this; } /** - * - * * <pre> * Indicates whether the transaction needs to be cleaned up. * </pre> * * <code>bool cleanup = 1;</code> - * * @return This builder for chaining. */ public Builder clearCleanup() { @@ -487,9 +446,9 @@ public Builder clearCleanup() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -499,12 +458,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -513,27 +472,27 @@ public static com.google.spanner.executor.v1.CloseBatchTransactionAction getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CloseBatchTransactionAction> PARSER = - new com.google.protobuf.AbstractParser<CloseBatchTransactionAction>() { - @java.lang.Override - public CloseBatchTransactionAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CloseBatchTransactionAction> + PARSER = new com.google.protobuf.AbstractParser<CloseBatchTransactionAction>() { + @java.lang.Override + public CloseBatchTransactionAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CloseBatchTransactionAction> parser() { return PARSER; @@ -548,4 +507,6 @@ public com.google.protobuf.Parser<CloseBatchTransactionAction> getParserForType( public com.google.spanner.executor.v1.CloseBatchTransactionAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionActionOrBuilder.java new file mode 100644 index 00000000000..97f29e324a5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionActionOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/executor/v1/cloud_executor.proto + +package com.google.spanner.executor.v1; + +public interface CloseBatchTransactionActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CloseBatchTransactionAction) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Indicates whether the transaction needs to be cleaned up. + * </pre> + * + * <code>bool cleanup = 1;</code> + * @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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java similarity index 75% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java index c07e07e8ada..0db50df911a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * CloudBackupResponse contains results returned by cloud backup related * actions. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.executor.v1.CloudBackupResponse} */ -public final class CloudBackupResponse extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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(); @@ -46,32 +28,28 @@ private CloudBackupResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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<com.google.spanner.admin.database.v1.Backup> listedBackups_; /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -83,8 +61,6 @@ public java.util.List<com.google.spanner.admin.database.v1.Backup> getListedBack return listedBackups_; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -92,13 +68,11 @@ public java.util.List<com.google.spanner.admin.database.v1.Backup> getListedBack * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> + public java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> getListedBackupsOrBuilderList() { return listedBackups_; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -110,8 +84,6 @@ public int getListedBackupsCount() { return listedBackups_.size(); } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -123,8 +95,6 @@ public com.google.spanner.admin.database.v1.Backup getListedBackups(int index) { return listedBackups_.get(index); } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -132,17 +102,15 @@ public com.google.spanner.admin.database.v1.Backup getListedBackups(int index) { * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ @java.lang.Override - public com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBuilder(int index) { + 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<com.google.longrunning.Operation> listedBackupOperations_; /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -154,8 +122,6 @@ public java.util.List<com.google.longrunning.Operation> getListedBackupOperation return listedBackupOperations_; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -163,13 +129,11 @@ public java.util.List<com.google.longrunning.Operation> getListedBackupOperation * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> getListedBackupOperationsOrBuilderList() { return listedBackupOperations_; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -181,8 +145,6 @@ public int getListedBackupOperationsCount() { return listedBackupOperations_.size(); } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -194,8 +156,6 @@ public com.google.longrunning.Operation getListedBackupOperations(int index) { return listedBackupOperations_.get(index); } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -203,24 +163,21 @@ public com.google.longrunning.Operation getListedBackupOperations(int index) { * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ @java.lang.Override - public com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuilder(int index) { + 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_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -229,30 +186,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -263,14 +220,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int BACKUP_FIELD_NUMBER = 4; private com.google.spanner.admin.database.v1.Backup backup_; /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> * * <code>.google.spanner.admin.database.v1.Backup backup = 4;</code> - * * @return Whether the backup field is set. */ @java.lang.Override @@ -278,25 +232,18 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> * * <code>.google.spanner.admin.database.v1.Backup backup = 4;</code> - * * @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_; + return backup_ == null ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> @@ -305,13 +252,10 @@ public com.google.spanner.admin.database.v1.Backup getBackup() { */ @java.lang.Override public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() { - return backup_ == null - ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() - : backup_; + 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; @@ -323,7 +267,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -346,18 +291,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listedBackups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listedBackups_.get(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)); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getBackup()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -367,21 +313,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getBackup() + .equals(other.getBackup())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -414,103 +362,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CloudBackupResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * CloudBackupResponse contains results returned by cloud backup related * actions. @@ -518,32 +461,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.CloudBackupResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CloudBackupResponse) com.google.spanner.executor.v1.CloudBackupResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloudBackupResponse_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CloudBackupResponse.class, com.google.spanner.executor.v1.CloudBackupResponse.Builder.class); } // Construct using com.google.spanner.executor.v1.CloudBackupResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -572,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloudBackupResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CloudBackupResponse_descriptor; } @java.lang.Override @@ -593,18 +537,14 @@ public com.google.spanner.executor.v1.CloudBackupResponse build() { @java.lang.Override public com.google.spanner.executor.v1.CloudBackupResponse buildPartial() { - com.google.spanner.executor.v1.CloudBackupResponse result = - new com.google.spanner.executor.v1.CloudBackupResponse(this); + com.google.spanner.executor.v1.CloudBackupResponse result = new com.google.spanner.executor.v1.CloudBackupResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.CloudBackupResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.CloudBackupResponse result) { if (listedBackupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listedBackups_ = java.util.Collections.unmodifiableList(listedBackups_); @@ -631,7 +571,9 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudBackupResponse re result.nextPageToken_ = nextPageToken_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.build(); + result.backup_ = backupBuilder_ == null + ? backup_ + : backupBuilder_.build(); } } @@ -639,39 +581,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudBackupResponse re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CloudBackupResponse) { - return mergeFrom((com.google.spanner.executor.v1.CloudBackupResponse) other); + return mergeFrom((com.google.spanner.executor.v1.CloudBackupResponse)other); } else { super.mergeFrom(other); return this; @@ -679,8 +620,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CloudBackupResponse other) { - if (other == com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance()) return this; if (listedBackupsBuilder_ == null) { if (!other.listedBackups_.isEmpty()) { if (listedBackups_.isEmpty()) { @@ -699,10 +639,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.CloudBackupResponse othe listedBackupsBuilder_ = null; listedBackups_ = other.listedBackups_; bitField0_ = (bitField0_ & ~0x00000001); - listedBackupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListedBackupsFieldBuilder() - : null; + listedBackupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListedBackupsFieldBuilder() : null; } else { listedBackupsBuilder_.addAllMessages(other.listedBackups_); } @@ -726,10 +665,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.CloudBackupResponse othe listedBackupOperationsBuilder_ = null; listedBackupOperations_ = other.listedBackupOperations_; bitField0_ = (bitField0_ & ~0x00000002); - listedBackupOperationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListedBackupOperationsFieldBuilder() - : null; + listedBackupOperationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListedBackupOperationsFieldBuilder() : null; } else { listedBackupOperationsBuilder_.addAllMessages(other.listedBackupOperations_); } @@ -769,50 +707,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.database.v1.Backup m = - input.readMessage( - com.google.spanner.admin.database.v1.Backup.parser(), extensionRegistry); - if (listedBackupsBuilder_ == null) { - ensureListedBackupsIsMutable(); - listedBackups_.add(m); - } else { - listedBackupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.longrunning.Operation m = - input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry); - if (listedBackupOperationsBuilder_ == null) { - ensureListedBackupOperationsIsMutable(); - listedBackupOperations_.add(m); - } else { - listedBackupOperationsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.database.v1.Backup m = + input.readMessage( + com.google.spanner.admin.database.v1.Backup.parser(), + extensionRegistry); + if (listedBackupsBuilder_ == null) { + ensureListedBackupsIsMutable(); + listedBackups_.add(m); + } else { + listedBackupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.longrunning.Operation m = + input.readMessage( + com.google.longrunning.Operation.parser(), + extensionRegistry); + if (listedBackupOperationsBuilder_ == null) { + ensureListedBackupOperationsIsMutable(); + listedBackupOperations_.add(m); + } else { + listedBackupOperationsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -822,29 +760,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.admin.database.v1.Backup> listedBackups_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureListedBackupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listedBackups_ = - new java.util.ArrayList<com.google.spanner.admin.database.v1.Backup>(listedBackups_); + listedBackups_ = new java.util.ArrayList<com.google.spanner.admin.database.v1.Backup>(listedBackups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Backup, - com.google.spanner.admin.database.v1.Backup.Builder, - com.google.spanner.admin.database.v1.BackupOrBuilder> - listedBackupsBuilder_; + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder> listedBackupsBuilder_; /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -859,8 +789,6 @@ public java.util.List<com.google.spanner.admin.database.v1.Backup> getListedBack } } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -875,8 +803,6 @@ public int getListedBackupsCount() { } } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -891,15 +817,14 @@ public com.google.spanner.admin.database.v1.Backup getListedBackups(int index) { } } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - public Builder setListedBackups(int index, com.google.spanner.admin.database.v1.Backup value) { + public Builder setListedBackups( + int index, com.google.spanner.admin.database.v1.Backup value) { if (listedBackupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -913,8 +838,6 @@ public Builder setListedBackups(int index, com.google.spanner.admin.database.v1. return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -933,8 +856,6 @@ public Builder setListedBackups( return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -955,15 +876,14 @@ public Builder addListedBackups(com.google.spanner.admin.database.v1.Backup valu return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - public Builder addListedBackups(int index, com.google.spanner.admin.database.v1.Backup value) { + public Builder addListedBackups( + int index, com.google.spanner.admin.database.v1.Backup value) { if (listedBackupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -977,8 +897,6 @@ public Builder addListedBackups(int index, com.google.spanner.admin.database.v1. return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -997,8 +915,6 @@ public Builder addListedBackups( return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -1017,8 +933,6 @@ public Builder addListedBackups( return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -1029,7 +943,8 @@ 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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listedBackups_); onChanged(); } else { listedBackupsBuilder_.addAllMessages(values); @@ -1037,8 +952,6 @@ public Builder addAllListedBackups( return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -1056,8 +969,6 @@ public Builder clearListedBackups() { return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -1075,20 +986,17 @@ public Builder removeListedBackups(int index) { return this; } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - public com.google.spanner.admin.database.v1.Backup.Builder getListedBackupsBuilder(int index) { + public com.google.spanner.admin.database.v1.Backup.Builder getListedBackupsBuilder( + int index) { return getListedBackupsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -1098,22 +1006,19 @@ public com.google.spanner.admin.database.v1.Backup.Builder getListedBackupsBuild public com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBuilder( int index) { if (listedBackupsBuilder_ == null) { - return listedBackups_.get(index); - } else { + return listedBackups_.get(index); } else { return listedBackupsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> - getListedBackupsOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> + getListedBackupsOrBuilderList() { if (listedBackupsBuilder_ != null) { return listedBackupsBuilder_.getMessageOrBuilderList(); } else { @@ -1121,8 +1026,6 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBu } } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -1130,47 +1033,38 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBu * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ public com.google.spanner.admin.database.v1.Backup.Builder addListedBackupsBuilder() { - return getListedBackupsFieldBuilder() - .addBuilder(com.google.spanner.admin.database.v1.Backup.getDefaultInstance()); + return getListedBackupsFieldBuilder().addBuilder( + com.google.spanner.admin.database.v1.Backup.getDefaultInstance()); } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - public com.google.spanner.admin.database.v1.Backup.Builder addListedBackupsBuilder(int index) { - return getListedBackupsFieldBuilder() - .addBuilder(index, com.google.spanner.admin.database.v1.Backup.getDefaultInstance()); + public com.google.spanner.admin.database.v1.Backup.Builder addListedBackupsBuilder( + int index) { + return getListedBackupsFieldBuilder().addBuilder( + index, com.google.spanner.admin.database.v1.Backup.getDefaultInstance()); } /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.Backup.Builder> - getListedBackupsBuilderList() { + public java.util.List<com.google.spanner.admin.database.v1.Backup.Builder> + getListedBackupsBuilderList() { return getListedBackupsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Backup, - com.google.spanner.admin.database.v1.Backup.Builder, - com.google.spanner.admin.database.v1.BackupOrBuilder> + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder> getListedBackupsFieldBuilder() { if (listedBackupsBuilder_ == null) { - listedBackupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Backup, - com.google.spanner.admin.database.v1.Backup.Builder, - com.google.spanner.admin.database.v1.BackupOrBuilder>( + listedBackupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder>( listedBackups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1181,25 +1075,18 @@ public com.google.spanner.admin.database.v1.Backup.Builder addListedBackupsBuild } private java.util.List<com.google.longrunning.Operation> listedBackupOperations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureListedBackupOperationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - listedBackupOperations_ = - new java.util.ArrayList<com.google.longrunning.Operation>(listedBackupOperations_); + listedBackupOperations_ = new java.util.ArrayList<com.google.longrunning.Operation>(listedBackupOperations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> - listedBackupOperationsBuilder_; + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> listedBackupOperationsBuilder_; /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1214,8 +1101,6 @@ public java.util.List<com.google.longrunning.Operation> getListedBackupOperation } } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1230,8 +1115,6 @@ public int getListedBackupOperationsCount() { } } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1246,15 +1129,14 @@ public com.google.longrunning.Operation getListedBackupOperations(int index) { } } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - public Builder setListedBackupOperations(int index, com.google.longrunning.Operation value) { + public Builder setListedBackupOperations( + int index, com.google.longrunning.Operation value) { if (listedBackupOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1268,8 +1150,6 @@ public Builder setListedBackupOperations(int index, com.google.longrunning.Opera return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1288,8 +1168,6 @@ public Builder setListedBackupOperations( return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1310,15 +1188,14 @@ public Builder addListedBackupOperations(com.google.longrunning.Operation value) return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - public Builder addListedBackupOperations(int index, com.google.longrunning.Operation value) { + public Builder addListedBackupOperations( + int index, com.google.longrunning.Operation value) { if (listedBackupOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1332,8 +1209,6 @@ public Builder addListedBackupOperations(int index, com.google.longrunning.Opera return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1352,8 +1227,6 @@ public Builder addListedBackupOperations( return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1372,8 +1245,6 @@ public Builder addListedBackupOperations( return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1384,7 +1255,8 @@ public Builder addAllListedBackupOperations( java.lang.Iterable<? extends com.google.longrunning.Operation> values) { if (listedBackupOperationsBuilder_ == null) { ensureListedBackupOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedBackupOperations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listedBackupOperations_); onChanged(); } else { listedBackupOperationsBuilder_.addAllMessages(values); @@ -1392,8 +1264,6 @@ public Builder addAllListedBackupOperations( return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1411,8 +1281,6 @@ public Builder clearListedBackupOperations() { return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1430,44 +1298,39 @@ public Builder removeListedBackupOperations(int index) { return this; } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - public com.google.longrunning.Operation.Builder getListedBackupOperationsBuilder(int index) { + public com.google.longrunning.Operation.Builder getListedBackupOperationsBuilder( + int index) { return getListedBackupOperationsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - public com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuilder( + int index) { if (listedBackupOperationsBuilder_ == null) { - return listedBackupOperations_.get(index); - } else { + return listedBackupOperations_.get(index); } else { return listedBackupOperationsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> - getListedBackupOperationsOrBuilderList() { + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getListedBackupOperationsOrBuilderList() { if (listedBackupOperationsBuilder_ != null) { return listedBackupOperationsBuilder_.getMessageOrBuilderList(); } else { @@ -1475,8 +1338,6 @@ public com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuil } } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -1484,47 +1345,38 @@ public com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuil * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ public com.google.longrunning.Operation.Builder addListedBackupOperationsBuilder() { - return getListedBackupOperationsFieldBuilder() - .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); + return getListedBackupOperationsFieldBuilder().addBuilder( + com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - public com.google.longrunning.Operation.Builder addListedBackupOperationsBuilder(int index) { - return getListedBackupOperationsFieldBuilder() - .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addListedBackupOperationsBuilder( + int index) { + return getListedBackupOperationsFieldBuilder().addBuilder( + index, com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - public java.util.List<com.google.longrunning.Operation.Builder> - getListedBackupOperationsBuilderList() { + public java.util.List<com.google.longrunning.Operation.Builder> + getListedBackupOperationsBuilderList() { return getListedBackupOperationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> getListedBackupOperationsFieldBuilder() { if (listedBackupOperationsBuilder_ == null) { - listedBackupOperationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder>( + listedBackupOperationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( listedBackupOperations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1536,21 +1388,19 @@ public com.google.longrunning.Operation.Builder addListedBackupOperationsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1559,22 +1409,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1582,37 +1431,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1622,22 +1464,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000004; @@ -1647,47 +1485,34 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.database.v1.Backup, com.google.spanner.admin.database.v1.Backup.Builder, com.google.spanner.admin.database.v1.BackupOrBuilder> backupBuilder_; /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> * * <code>.google.spanner.admin.database.v1.Backup backup = 4;</code> - * * @return Whether the backup field is set. */ public boolean hasBackup() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> * * <code>.google.spanner.admin.database.v1.Backup backup = 4;</code> - * * @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_; + return backup_ == null ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> @@ -1708,15 +1533,14 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup value) { return this; } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> * * <code>.google.spanner.admin.database.v1.Backup backup = 4;</code> */ - public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.spanner.admin.database.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); } else { @@ -1727,8 +1551,6 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder bui return this; } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> @@ -1737,9 +1559,9 @@ public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder bui */ 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()) { + if (((bitField0_ & 0x00000008) != 0) && + backup_ != null && + backup_ != com.google.spanner.admin.database.v1.Backup.getDefaultInstance()) { getBackupBuilder().mergeFrom(value); } else { backup_ = value; @@ -1752,8 +1574,6 @@ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) { return this; } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> @@ -1771,8 +1591,6 @@ public Builder clearBackup() { return this; } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> @@ -1785,8 +1603,6 @@ public com.google.spanner.admin.database.v1.Backup.Builder getBackupBuilder() { return getBackupFieldBuilder().getBuilder(); } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> @@ -1797,14 +1613,11 @@ 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_; + return backup_ == null ? + com.google.spanner.admin.database.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> @@ -1812,24 +1625,21 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() * <code>.google.spanner.admin.database.v1.Backup backup = 4;</code> */ 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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1839,12 +1649,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1853,27 +1663,27 @@ public static com.google.spanner.executor.v1.CloudBackupResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CloudBackupResponse> PARSER = - new com.google.protobuf.AbstractParser<CloudBackupResponse>() { - @java.lang.Override - public CloudBackupResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CloudBackupResponse> + PARSER = new com.google.protobuf.AbstractParser<CloudBackupResponse>() { + @java.lang.Override + public CloudBackupResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CloudBackupResponse> parser() { return PARSER; @@ -1888,4 +1698,6 @@ public com.google.protobuf.Parser<CloudBackupResponse> getParserForType() { public com.google.spanner.executor.v1.CloudBackupResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java index c311139f028..6b33098840b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 interface CloudBackupResponseOrBuilder - extends +public interface CloudBackupResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CloudBackupResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - java.util.List<com.google.spanner.admin.database.v1.Backup> getListedBackupsList(); + java.util.List<com.google.spanner.admin.database.v1.Backup> + getListedBackupsList(); /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -44,8 +25,6 @@ public interface CloudBackupResponseOrBuilder */ com.google.spanner.admin.database.v1.Backup getListedBackups(int index); /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> @@ -54,40 +33,34 @@ public interface CloudBackupResponseOrBuilder */ int getListedBackupsCount(); /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> + java.util.List<? extends com.google.spanner.admin.database.v1.BackupOrBuilder> getListedBackupsOrBuilderList(); /** - * - * * <pre> * List of backups returned by ListCloudBackupsAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;</code> */ - com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBuilder(int index); + com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBuilder( + int index); /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - java.util.List<com.google.longrunning.Operation> getListedBackupOperationsList(); + java.util.List<com.google.longrunning.Operation> + getListedBackupOperationsList(); /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -96,8 +69,6 @@ public interface CloudBackupResponseOrBuilder */ com.google.longrunning.Operation getListedBackupOperations(int index); /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> @@ -106,81 +77,65 @@ public interface CloudBackupResponseOrBuilder */ int getListedBackupOperationsCount(); /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - java.util.List<? extends com.google.longrunning.OperationOrBuilder> + java.util.List<? extends com.google.longrunning.OperationOrBuilder> getListedBackupOperationsOrBuilderList(); /** - * - * * <pre> * List of operations returned by ListCloudBackupOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_backup_operations = 2;</code> */ - com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuilder(int index); + com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuilder( + int index); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> * * <code>.google.spanner.admin.database.v1.Backup backup = 4;</code> - * * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> * * <code>.google.spanner.admin.database.v1.Backup backup = 4;</code> - * * @return The backup. */ com.google.spanner.admin.database.v1.Backup getBackup(); /** - * - * * <pre> * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java similarity index 75% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java index c3032219788..5b7cb984d5c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * CloudDatabaseResponse contains results returned by cloud database related * actions. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.executor.v1.CloudDatabaseResponse} */ -public final class CloudDatabaseResponse extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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(); @@ -46,32 +28,28 @@ private CloudDatabaseResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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<com.google.spanner.admin.database.v1.Database> listedDatabases_; /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -83,8 +61,6 @@ public java.util.List<com.google.spanner.admin.database.v1.Database> getListedDa return listedDatabases_; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -92,13 +68,11 @@ public java.util.List<com.google.spanner.admin.database.v1.Database> getListedDa * <code>repeated .google.spanner.admin.database.v1.Database listed_databases = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> + public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> getListedDatabasesOrBuilderList() { return listedDatabases_; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -110,8 +84,6 @@ public int getListedDatabasesCount() { return listedDatabases_.size(); } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -123,8 +95,6 @@ public com.google.spanner.admin.database.v1.Database getListedDatabases(int inde return listedDatabases_.get(index); } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -138,12 +108,9 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabases } public static final int LISTED_DATABASE_OPERATIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List<com.google.longrunning.Operation> listedDatabaseOperations_; /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -155,8 +122,6 @@ public java.util.List<com.google.longrunning.Operation> getListedDatabaseOperati return listedDatabaseOperations_; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -164,13 +129,11 @@ public java.util.List<com.google.longrunning.Operation> getListedDatabaseOperati * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> getListedDatabaseOperationsOrBuilderList() { return listedDatabaseOperations_; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -182,8 +145,6 @@ public int getListedDatabaseOperationsCount() { return listedDatabaseOperations_.size(); } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -195,8 +156,6 @@ public com.google.longrunning.Operation getListedDatabaseOperations(int index) { return listedDatabaseOperations_.get(index); } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -204,24 +163,21 @@ public com.google.longrunning.Operation getListedDatabaseOperations(int index) { * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ @java.lang.Override - public com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBuilder(int index) { + 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_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -230,30 +186,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -264,14 +220,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int DATABASE_FIELD_NUMBER = 4; private com.google.spanner.admin.database.v1.Database database_; /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> * * <code>.google.spanner.admin.database.v1.Database database = 4;</code> - * * @return Whether the database field is set. */ @java.lang.Override @@ -279,25 +232,18 @@ public boolean hasDatabase() { return database_ != null; } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> * * <code>.google.spanner.admin.database.v1.Database database = 4;</code> - * * @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_; + return database_ == null ? com.google.spanner.admin.database.v1.Database.getDefaultInstance() : database_; } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> @@ -306,13 +252,10 @@ public com.google.spanner.admin.database.v1.Database getDatabase() { */ @java.lang.Override public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuilder() { - return database_ == null - ? com.google.spanner.admin.database.v1.Database.getDefaultInstance() - : database_; + 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; @@ -324,7 +267,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -347,18 +291,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listedDatabases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listedDatabases_.get(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)); + 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDatabase()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -368,21 +313,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getDatabase() + .equals(other.getDatabase())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -415,103 +362,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CloudDatabaseResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * CloudDatabaseResponse contains results returned by cloud database related * actions. @@ -519,32 +461,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.CloudDatabaseResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CloudDatabaseResponse) com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloudDatabaseResponse_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CloudDatabaseResponse.class, com.google.spanner.executor.v1.CloudDatabaseResponse.Builder.class); } // Construct using com.google.spanner.executor.v1.CloudDatabaseResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -573,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloudDatabaseResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CloudDatabaseResponse_descriptor; } @java.lang.Override @@ -594,18 +537,14 @@ public com.google.spanner.executor.v1.CloudDatabaseResponse build() { @java.lang.Override public com.google.spanner.executor.v1.CloudDatabaseResponse buildPartial() { - com.google.spanner.executor.v1.CloudDatabaseResponse result = - new com.google.spanner.executor.v1.CloudDatabaseResponse(this); + com.google.spanner.executor.v1.CloudDatabaseResponse result = new com.google.spanner.executor.v1.CloudDatabaseResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.CloudDatabaseResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.CloudDatabaseResponse result) { if (listedDatabasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listedDatabases_ = java.util.Collections.unmodifiableList(listedDatabases_); @@ -617,8 +556,7 @@ private void buildPartialRepeatedFields( } if (listedDatabaseOperationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { - listedDatabaseOperations_ = - java.util.Collections.unmodifiableList(listedDatabaseOperations_); + listedDatabaseOperations_ = java.util.Collections.unmodifiableList(listedDatabaseOperations_); bitField0_ = (bitField0_ & ~0x00000002); } result.listedDatabaseOperations_ = listedDatabaseOperations_; @@ -633,7 +571,9 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudDatabaseResponse result.nextPageToken_ = nextPageToken_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.database_ = databaseBuilder_ == null ? database_ : databaseBuilder_.build(); + result.database_ = databaseBuilder_ == null + ? database_ + : databaseBuilder_.build(); } } @@ -641,39 +581,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudDatabaseResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CloudDatabaseResponse) { - return mergeFrom((com.google.spanner.executor.v1.CloudDatabaseResponse) other); + return mergeFrom((com.google.spanner.executor.v1.CloudDatabaseResponse)other); } else { super.mergeFrom(other); return this; @@ -681,8 +620,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CloudDatabaseResponse other) { - if (other == com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance()) return this; if (listedDatabasesBuilder_ == null) { if (!other.listedDatabases_.isEmpty()) { if (listedDatabases_.isEmpty()) { @@ -701,10 +639,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.CloudDatabaseResponse ot listedDatabasesBuilder_ = null; listedDatabases_ = other.listedDatabases_; bitField0_ = (bitField0_ & ~0x00000001); - listedDatabasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListedDatabasesFieldBuilder() - : null; + listedDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListedDatabasesFieldBuilder() : null; } else { listedDatabasesBuilder_.addAllMessages(other.listedDatabases_); } @@ -728,10 +665,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.CloudDatabaseResponse ot listedDatabaseOperationsBuilder_ = null; listedDatabaseOperations_ = other.listedDatabaseOperations_; bitField0_ = (bitField0_ & ~0x00000002); - listedDatabaseOperationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListedDatabaseOperationsFieldBuilder() - : null; + listedDatabaseOperationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListedDatabaseOperationsFieldBuilder() : null; } else { listedDatabaseOperationsBuilder_.addAllMessages(other.listedDatabaseOperations_); } @@ -771,50 +707,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.database.v1.Database m = - input.readMessage( - com.google.spanner.admin.database.v1.Database.parser(), extensionRegistry); - if (listedDatabasesBuilder_ == null) { - ensureListedDatabasesIsMutable(); - listedDatabases_.add(m); - } else { - listedDatabasesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.longrunning.Operation m = - input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry); - if (listedDatabaseOperationsBuilder_ == null) { - ensureListedDatabaseOperationsIsMutable(); - listedDatabaseOperations_.add(m); - } else { - listedDatabaseOperationsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getDatabaseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.database.v1.Database m = + input.readMessage( + com.google.spanner.admin.database.v1.Database.parser(), + extensionRegistry); + if (listedDatabasesBuilder_ == null) { + ensureListedDatabasesIsMutable(); + listedDatabases_.add(m); + } else { + listedDatabasesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.longrunning.Operation m = + input.readMessage( + com.google.longrunning.Operation.parser(), + extensionRegistry); + if (listedDatabaseOperationsBuilder_ == null) { + ensureListedDatabaseOperationsIsMutable(); + listedDatabaseOperations_.add(m); + } else { + listedDatabaseOperationsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDatabaseFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -824,30 +760,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.admin.database.v1.Database> listedDatabases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureListedDatabasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listedDatabases_ = - new java.util.ArrayList<com.google.spanner.admin.database.v1.Database>( - listedDatabases_); + listedDatabases_ = new java.util.ArrayList<com.google.spanner.admin.database.v1.Database>(listedDatabases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Database, - com.google.spanner.admin.database.v1.Database.Builder, - com.google.spanner.admin.database.v1.DatabaseOrBuilder> - listedDatabasesBuilder_; + com.google.spanner.admin.database.v1.Database, com.google.spanner.admin.database.v1.Database.Builder, com.google.spanner.admin.database.v1.DatabaseOrBuilder> listedDatabasesBuilder_; /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -862,8 +789,6 @@ public java.util.List<com.google.spanner.admin.database.v1.Database> getListedDa } } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -878,8 +803,6 @@ public int getListedDatabasesCount() { } } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -894,8 +817,6 @@ public com.google.spanner.admin.database.v1.Database getListedDatabases(int inde } } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -917,8 +838,6 @@ public Builder setListedDatabases( return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -937,8 +856,6 @@ public Builder setListedDatabases( return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -959,8 +876,6 @@ public Builder addListedDatabases(com.google.spanner.admin.database.v1.Database return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -982,8 +897,6 @@ public Builder addListedDatabases( return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1002,8 +915,6 @@ public Builder addListedDatabases( return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1022,8 +933,6 @@ public Builder addListedDatabases( return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1034,7 +943,8 @@ 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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listedDatabases_); onChanged(); } else { listedDatabasesBuilder_.addAllMessages(values); @@ -1042,8 +952,6 @@ public Builder addAllListedDatabases( return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1061,8 +969,6 @@ public Builder clearListedDatabases() { return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1080,8 +986,6 @@ public Builder removeListedDatabases(int index) { return this; } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1093,8 +997,6 @@ public com.google.spanner.admin.database.v1.Database.Builder getListedDatabasesB return getListedDatabasesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1104,22 +1006,19 @@ public com.google.spanner.admin.database.v1.Database.Builder getListedDatabasesB public com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabasesOrBuilder( int index) { if (listedDatabasesBuilder_ == null) { - return listedDatabases_.get(index); - } else { + return listedDatabases_.get(index); } else { return listedDatabasesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database listed_databases = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> - getListedDatabasesOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> + getListedDatabasesOrBuilderList() { if (listedDatabasesBuilder_ != null) { return listedDatabasesBuilder_.getMessageOrBuilderList(); } else { @@ -1127,8 +1026,6 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabases } } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1136,12 +1033,10 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabases * <code>repeated .google.spanner.admin.database.v1.Database listed_databases = 1;</code> */ public com.google.spanner.admin.database.v1.Database.Builder addListedDatabasesBuilder() { - return getListedDatabasesFieldBuilder() - .addBuilder(com.google.spanner.admin.database.v1.Database.getDefaultInstance()); + return getListedDatabasesFieldBuilder().addBuilder( + com.google.spanner.admin.database.v1.Database.getDefaultInstance()); } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -1150,34 +1045,26 @@ public com.google.spanner.admin.database.v1.Database.Builder addListedDatabasesB */ public com.google.spanner.admin.database.v1.Database.Builder addListedDatabasesBuilder( int index) { - return getListedDatabasesFieldBuilder() - .addBuilder(index, com.google.spanner.admin.database.v1.Database.getDefaultInstance()); + return getListedDatabasesFieldBuilder().addBuilder( + index, com.google.spanner.admin.database.v1.Database.getDefaultInstance()); } /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database listed_databases = 1;</code> */ - public java.util.List<com.google.spanner.admin.database.v1.Database.Builder> - getListedDatabasesBuilderList() { + public java.util.List<com.google.spanner.admin.database.v1.Database.Builder> + getListedDatabasesBuilderList() { return getListedDatabasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Database, - com.google.spanner.admin.database.v1.Database.Builder, - com.google.spanner.admin.database.v1.DatabaseOrBuilder> + com.google.spanner.admin.database.v1.Database, com.google.spanner.admin.database.v1.Database.Builder, com.google.spanner.admin.database.v1.DatabaseOrBuilder> getListedDatabasesFieldBuilder() { if (listedDatabasesBuilder_ == null) { - listedDatabasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.database.v1.Database, - com.google.spanner.admin.database.v1.Database.Builder, - com.google.spanner.admin.database.v1.DatabaseOrBuilder>( + listedDatabasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.Database, com.google.spanner.admin.database.v1.Database.Builder, com.google.spanner.admin.database.v1.DatabaseOrBuilder>( listedDatabases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1188,25 +1075,18 @@ public com.google.spanner.admin.database.v1.Database.Builder addListedDatabasesB } private java.util.List<com.google.longrunning.Operation> listedDatabaseOperations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureListedDatabaseOperationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - listedDatabaseOperations_ = - new java.util.ArrayList<com.google.longrunning.Operation>(listedDatabaseOperations_); + listedDatabaseOperations_ = new java.util.ArrayList<com.google.longrunning.Operation>(listedDatabaseOperations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> - listedDatabaseOperationsBuilder_; + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> listedDatabaseOperationsBuilder_; /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1221,8 +1101,6 @@ public java.util.List<com.google.longrunning.Operation> getListedDatabaseOperati } } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1237,8 +1115,6 @@ public int getListedDatabaseOperationsCount() { } } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1253,15 +1129,14 @@ public com.google.longrunning.Operation getListedDatabaseOperations(int index) { } } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - public Builder setListedDatabaseOperations(int index, com.google.longrunning.Operation value) { + public Builder setListedDatabaseOperations( + int index, com.google.longrunning.Operation value) { if (listedDatabaseOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1275,8 +1150,6 @@ public Builder setListedDatabaseOperations(int index, com.google.longrunning.Ope return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1295,8 +1168,6 @@ public Builder setListedDatabaseOperations( return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1317,15 +1188,14 @@ public Builder addListedDatabaseOperations(com.google.longrunning.Operation valu return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - public Builder addListedDatabaseOperations(int index, com.google.longrunning.Operation value) { + public Builder addListedDatabaseOperations( + int index, com.google.longrunning.Operation value) { if (listedDatabaseOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1339,8 +1209,6 @@ public Builder addListedDatabaseOperations(int index, com.google.longrunning.Ope return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1359,8 +1227,6 @@ public Builder addListedDatabaseOperations( return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1379,8 +1245,6 @@ public Builder addListedDatabaseOperations( return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1391,7 +1255,8 @@ public Builder addAllListedDatabaseOperations( java.lang.Iterable<? extends com.google.longrunning.Operation> values) { if (listedDatabaseOperationsBuilder_ == null) { ensureListedDatabaseOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedDatabaseOperations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listedDatabaseOperations_); onChanged(); } else { listedDatabaseOperationsBuilder_.addAllMessages(values); @@ -1399,8 +1264,6 @@ public Builder addAllListedDatabaseOperations( return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1418,8 +1281,6 @@ public Builder clearListedDatabaseOperations() { return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1437,20 +1298,17 @@ public Builder removeListedDatabaseOperations(int index) { return this; } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - public com.google.longrunning.Operation.Builder getListedDatabaseOperationsBuilder(int index) { + public com.google.longrunning.Operation.Builder getListedDatabaseOperationsBuilder( + int index) { return getListedDatabaseOperationsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1460,22 +1318,19 @@ public com.google.longrunning.Operation.Builder getListedDatabaseOperationsBuild public com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBuilder( int index) { if (listedDatabaseOperationsBuilder_ == null) { - return listedDatabaseOperations_.get(index); - } else { + return listedDatabaseOperations_.get(index); } else { return listedDatabaseOperationsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> - getListedDatabaseOperationsOrBuilderList() { + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getListedDatabaseOperationsOrBuilderList() { if (listedDatabaseOperationsBuilder_ != null) { return listedDatabaseOperationsBuilder_.getMessageOrBuilderList(); } else { @@ -1483,8 +1338,6 @@ public com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBu } } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -1492,47 +1345,38 @@ public com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBu * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ public com.google.longrunning.Operation.Builder addListedDatabaseOperationsBuilder() { - return getListedDatabaseOperationsFieldBuilder() - .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); + return getListedDatabaseOperationsFieldBuilder().addBuilder( + com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - public com.google.longrunning.Operation.Builder addListedDatabaseOperationsBuilder(int index) { - return getListedDatabaseOperationsFieldBuilder() - .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addListedDatabaseOperationsBuilder( + int index) { + return getListedDatabaseOperationsFieldBuilder().addBuilder( + index, com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - public java.util.List<com.google.longrunning.Operation.Builder> - getListedDatabaseOperationsBuilderList() { + public java.util.List<com.google.longrunning.Operation.Builder> + getListedDatabaseOperationsBuilderList() { return getListedDatabaseOperationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> getListedDatabaseOperationsFieldBuilder() { if (listedDatabaseOperationsBuilder_ == null) { - listedDatabaseOperationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder>( + listedDatabaseOperationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( listedDatabaseOperations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1544,21 +1388,19 @@ public com.google.longrunning.Operation.Builder addListedDatabaseOperationsBuild private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1567,22 +1409,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1590,37 +1431,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1630,22 +1464,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000004; @@ -1655,47 +1485,34 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.database.v1.Database, com.google.spanner.admin.database.v1.Database.Builder, com.google.spanner.admin.database.v1.DatabaseOrBuilder> databaseBuilder_; /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> * * <code>.google.spanner.admin.database.v1.Database database = 4;</code> - * * @return Whether the database field is set. */ public boolean hasDatabase() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> * * <code>.google.spanner.admin.database.v1.Database database = 4;</code> - * * @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_; + return database_ == null ? com.google.spanner.admin.database.v1.Database.getDefaultInstance() : database_; } else { return databaseBuilder_.getMessage(); } } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> @@ -1716,8 +1533,6 @@ public Builder setDatabase(com.google.spanner.admin.database.v1.Database value) return this; } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> @@ -1736,8 +1551,6 @@ public Builder setDatabase( return this; } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> @@ -1746,9 +1559,9 @@ public Builder setDatabase( */ 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()) { + if (((bitField0_ & 0x00000008) != 0) && + database_ != null && + database_ != com.google.spanner.admin.database.v1.Database.getDefaultInstance()) { getDatabaseBuilder().mergeFrom(value); } else { database_ = value; @@ -1761,8 +1574,6 @@ public Builder mergeDatabase(com.google.spanner.admin.database.v1.Database value return this; } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> @@ -1780,8 +1591,6 @@ public Builder clearDatabase() { return this; } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> @@ -1794,8 +1603,6 @@ public com.google.spanner.admin.database.v1.Database.Builder getDatabaseBuilder( return getDatabaseFieldBuilder().getBuilder(); } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> @@ -1806,14 +1613,11 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuild if (databaseBuilder_ != null) { return databaseBuilder_.getMessageOrBuilder(); } else { - return database_ == null - ? com.google.spanner.admin.database.v1.Database.getDefaultInstance() - : database_; + return database_ == null ? + com.google.spanner.admin.database.v1.Database.getDefaultInstance() : database_; } } /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> @@ -1821,24 +1625,21 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuild * <code>.google.spanner.admin.database.v1.Database database = 4;</code> */ 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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1848,12 +1649,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1862,27 +1663,27 @@ public static com.google.spanner.executor.v1.CloudDatabaseResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CloudDatabaseResponse> PARSER = - new com.google.protobuf.AbstractParser<CloudDatabaseResponse>() { - @java.lang.Override - public CloudDatabaseResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CloudDatabaseResponse> + PARSER = new com.google.protobuf.AbstractParser<CloudDatabaseResponse>() { + @java.lang.Override + public CloudDatabaseResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CloudDatabaseResponse> parser() { return PARSER; @@ -1897,4 +1698,6 @@ public com.google.protobuf.Parser<CloudDatabaseResponse> getParserForType() { public com.google.spanner.executor.v1.CloudDatabaseResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java similarity index 79% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java index bca2dfd5276..de44a819ae3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 interface CloudDatabaseResponseOrBuilder - extends +public interface CloudDatabaseResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CloudDatabaseResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database listed_databases = 1;</code> */ - java.util.List<com.google.spanner.admin.database.v1.Database> getListedDatabasesList(); + java.util.List<com.google.spanner.admin.database.v1.Database> + getListedDatabasesList(); /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -44,8 +25,6 @@ public interface CloudDatabaseResponseOrBuilder */ com.google.spanner.admin.database.v1.Database getListedDatabases(int index); /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> @@ -54,40 +33,34 @@ public interface CloudDatabaseResponseOrBuilder */ int getListedDatabasesCount(); /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database listed_databases = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> + java.util.List<? extends com.google.spanner.admin.database.v1.DatabaseOrBuilder> getListedDatabasesOrBuilderList(); /** - * - * * <pre> * List of databases returned by ListCloudDatabasesAction. * </pre> * * <code>repeated .google.spanner.admin.database.v1.Database listed_databases = 1;</code> */ - com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabasesOrBuilder(int index); + com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabasesOrBuilder( + int index); /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - java.util.List<com.google.longrunning.Operation> getListedDatabaseOperationsList(); + java.util.List<com.google.longrunning.Operation> + getListedDatabaseOperationsList(); /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -96,8 +69,6 @@ public interface CloudDatabaseResponseOrBuilder */ com.google.longrunning.Operation getListedDatabaseOperations(int index); /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> @@ -106,81 +77,65 @@ public interface CloudDatabaseResponseOrBuilder */ int getListedDatabaseOperationsCount(); /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - java.util.List<? extends com.google.longrunning.OperationOrBuilder> + java.util.List<? extends com.google.longrunning.OperationOrBuilder> getListedDatabaseOperationsOrBuilderList(); /** - * - * * <pre> * List of operations returned by ListCloudDatabaseOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_database_operations = 2;</code> */ - com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBuilder(int index); + com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBuilder( + int index); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 3;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> * * <code>.google.spanner.admin.database.v1.Database database = 4;</code> - * * @return Whether the database field is set. */ boolean hasDatabase(); /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> * * <code>.google.spanner.admin.database.v1.Database database = 4;</code> - * * @return The database. */ com.google.spanner.admin.database.v1.Database getDatabase(); /** - * - * * <pre> * Database returned by GetCloudDatabaseAction * </pre> diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java new file mode 100644 index 00000000000..9781327c086 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java @@ -0,0 +1,1384 @@ +// 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java similarity index 70% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java index 21bb70d4246..6c1710b3453 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * CloudInstanceConfigResponse contains results returned by cloud instance * config related actions. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.executor.v1.CloudInstanceConfigResponse} */ -public final class CloudInstanceConfigResponse extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -45,118 +27,95 @@ private CloudInstanceConfigResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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<com.google.spanner.admin.instance.v1.InstanceConfig> - listedInstanceConfigs_; + private java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> listedInstanceConfigs_; /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ @java.lang.Override - public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> - getListedInstanceConfigsList() { + public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> getListedInstanceConfigsList() { return listedInstanceConfigs_; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> + public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> getListedInstanceConfigsOrBuilderList() { return listedInstanceConfigs_; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ @java.lang.Override public int getListedInstanceConfigsCount() { return listedInstanceConfigs_.size(); } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfig getListedInstanceConfigs(int index) { return listedInstanceConfigs_.get(index); } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder - getListedInstanceConfigsOrBuilder(int index) { + 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_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -165,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -199,14 +158,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int INSTANCE_CONFIG_FIELD_NUMBER = 3; private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_; /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;</code> - * * @return Whether the instanceConfig field is set. */ @java.lang.Override @@ -214,25 +170,18 @@ public boolean hasInstanceConfig() { return instanceConfig_ != null; } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;</code> - * * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> @@ -241,13 +190,10 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder() { - return instanceConfig_ == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() - : instanceConfig_; + 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; @@ -259,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -279,15 +226,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listedInstanceConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, listedInstanceConfigs_.get(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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +244,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getInstanceConfig() + .equals(other.getInstanceConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -338,104 +287,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CloudInstanceConfigResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.CloudInstanceConfigResponse prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * CloudInstanceConfigResponse contains results returned by cloud instance * config related actions. @@ -443,32 +386,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.CloudInstanceConfigResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CloudInstanceConfigResponse) com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CloudInstanceConfigResponse.class, com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder.class); } // Construct using com.google.spanner.executor.v1.CloudInstanceConfigResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_descriptor; } @java.lang.Override @@ -511,18 +455,14 @@ public com.google.spanner.executor.v1.CloudInstanceConfigResponse build() { @java.lang.Override public com.google.spanner.executor.v1.CloudInstanceConfigResponse buildPartial() { - com.google.spanner.executor.v1.CloudInstanceConfigResponse result = - new com.google.spanner.executor.v1.CloudInstanceConfigResponse(this); + com.google.spanner.executor.v1.CloudInstanceConfigResponse result = new com.google.spanner.executor.v1.CloudInstanceConfigResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.CloudInstanceConfigResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.CloudInstanceConfigResponse result) { if (listedInstanceConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listedInstanceConfigs_ = java.util.Collections.unmodifiableList(listedInstanceConfigs_); @@ -540,8 +480,9 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudInstanceConfigRes result.nextPageToken_ = nextPageToken_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.instanceConfig_ = - instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); + result.instanceConfig_ = instanceConfigBuilder_ == null + ? instanceConfig_ + : instanceConfigBuilder_.build(); } } @@ -549,39 +490,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudInstanceConfigRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CloudInstanceConfigResponse) { - return mergeFrom((com.google.spanner.executor.v1.CloudInstanceConfigResponse) other); + return mergeFrom((com.google.spanner.executor.v1.CloudInstanceConfigResponse)other); } else { super.mergeFrom(other); return this; @@ -589,8 +529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CloudInstanceConfigResponse other) { - if (other == com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance()) return this; if (listedInstanceConfigsBuilder_ == null) { if (!other.listedInstanceConfigs_.isEmpty()) { if (listedInstanceConfigs_.isEmpty()) { @@ -609,10 +548,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.CloudInstanceConfigRespo listedInstanceConfigsBuilder_ = null; listedInstanceConfigs_ = other.listedInstanceConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - listedInstanceConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListedInstanceConfigsFieldBuilder() - : null; + listedInstanceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListedInstanceConfigsFieldBuilder() : null; } else { listedInstanceConfigsBuilder_.addAllMessages(other.listedInstanceConfigs_); } @@ -652,39 +590,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.instance.v1.InstanceConfig m = - input.readMessage( - com.google.spanner.admin.instance.v1.InstanceConfig.parser(), - extensionRegistry); - if (listedInstanceConfigsBuilder_ == null) { - ensureListedInstanceConfigsIsMutable(); - listedInstanceConfigs_.add(m); - } else { - listedInstanceConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.instance.v1.InstanceConfig m = + input.readMessage( + com.google.spanner.admin.instance.v1.InstanceConfig.parser(), + extensionRegistry); + if (listedInstanceConfigsBuilder_ == null) { + ensureListedInstanceConfigsIsMutable(); + listedInstanceConfigs_.add(m); + } else { + listedInstanceConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -694,39 +630,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> - listedInstanceConfigs_ = java.util.Collections.emptyList(); - + private java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> listedInstanceConfigs_ = + java.util.Collections.emptyList(); private void ensureListedInstanceConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listedInstanceConfigs_ = - new java.util.ArrayList<com.google.spanner.admin.instance.v1.InstanceConfig>( - listedInstanceConfigs_); + listedInstanceConfigs_ = new java.util.ArrayList<com.google.spanner.admin.instance.v1.InstanceConfig>(listedInstanceConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.InstanceConfig, - com.google.spanner.admin.instance.v1.InstanceConfig.Builder, - com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> - listedInstanceConfigsBuilder_; + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> listedInstanceConfigsBuilder_; /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> - getListedInstanceConfigsList() { + public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> getListedInstanceConfigsList() { if (listedInstanceConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(listedInstanceConfigs_); } else { @@ -734,14 +659,11 @@ private void ensureListedInstanceConfigsIsMutable() { } } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public int getListedInstanceConfigsCount() { if (listedInstanceConfigsBuilder_ == null) { @@ -751,14 +673,11 @@ public int getListedInstanceConfigsCount() { } } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceConfig getListedInstanceConfigs(int index) { if (listedInstanceConfigsBuilder_ == null) { @@ -768,14 +687,11 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getListedInstanceConf } } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public Builder setListedInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig value) { @@ -792,14 +708,11 @@ public Builder setListedInstanceConfigs( return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public Builder setListedInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { @@ -813,17 +726,13 @@ public Builder setListedInstanceConfigs( return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - public Builder addListedInstanceConfigs( - com.google.spanner.admin.instance.v1.InstanceConfig value) { + public Builder addListedInstanceConfigs(com.google.spanner.admin.instance.v1.InstanceConfig value) { if (listedInstanceConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -837,14 +746,11 @@ public Builder addListedInstanceConfigs( return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public Builder addListedInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig value) { @@ -861,14 +767,11 @@ public Builder addListedInstanceConfigs( return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public Builder addListedInstanceConfigs( com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { @@ -882,14 +785,11 @@ public Builder addListedInstanceConfigs( return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public Builder addListedInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { @@ -903,20 +803,18 @@ public Builder addListedInstanceConfigs( return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ 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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listedInstanceConfigs_); onChanged(); } else { listedInstanceConfigsBuilder_.addAllMessages(values); @@ -924,14 +822,11 @@ public Builder addAllListedInstanceConfigs( return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public Builder clearListedInstanceConfigs() { if (listedInstanceConfigsBuilder_ == null) { @@ -944,14 +839,11 @@ public Builder clearListedInstanceConfigs() { return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ public Builder removeListedInstanceConfigs(int index) { if (listedInstanceConfigsBuilder_ == null) { @@ -964,49 +856,39 @@ public Builder removeListedInstanceConfigs(int index) { return this; } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfig.Builder - getListedInstanceConfigsBuilder(int index) { + public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getListedInstanceConfigsBuilder( + int index) { return getListedInstanceConfigsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder - getListedInstanceConfigsOrBuilder(int index) { + public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getListedInstanceConfigsOrBuilder( + int index) { if (listedInstanceConfigsBuilder_ == null) { - return listedInstanceConfigs_.get(index); - } else { + return listedInstanceConfigs_.get(index); } else { return listedInstanceConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> - getListedInstanceConfigsOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> + getListedInstanceConfigsOrBuilderList() { if (listedInstanceConfigsBuilder_ != null) { return listedInstanceConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1014,62 +896,45 @@ public Builder removeListedInstanceConfigs(int index) { } } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfig.Builder - addListedInstanceConfigsBuilder() { - return getListedInstanceConfigsFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()); + public com.google.spanner.admin.instance.v1.InstanceConfig.Builder addListedInstanceConfigsBuilder() { + return getListedInstanceConfigsFieldBuilder().addBuilder( + com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()); } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfig.Builder - addListedInstanceConfigsBuilder(int index) { - return getListedInstanceConfigsFieldBuilder() - .addBuilder( - index, com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()); + public com.google.spanner.admin.instance.v1.InstanceConfig.Builder addListedInstanceConfigsBuilder( + int index) { + return getListedInstanceConfigsFieldBuilder().addBuilder( + index, com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()); } /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig.Builder> - getListedInstanceConfigsBuilderList() { + public java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig.Builder> + getListedInstanceConfigsBuilderList() { return getListedInstanceConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.InstanceConfig, - com.google.spanner.admin.instance.v1.InstanceConfig.Builder, - com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> getListedInstanceConfigsFieldBuilder() { if (listedInstanceConfigsBuilder_ == null) { - listedInstanceConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.InstanceConfig, - com.google.spanner.admin.instance.v1.InstanceConfig.Builder, - com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>( + listedInstanceConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>( listedInstanceConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1081,21 +946,19 @@ public Builder removeListedInstanceConfigs(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1104,22 +967,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1127,37 +989,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1167,22 +1022,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1192,47 +1043,34 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.instance.v1.InstanceConfig, com.google.spanner.admin.instance.v1.InstanceConfig.Builder, com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> instanceConfigBuilder_; /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;</code> - * * @return Whether the instanceConfig field is set. */ public boolean hasInstanceConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;</code> - * * @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_; + return instanceConfig_ == null ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } else { return instanceConfigBuilder_.getMessage(); } } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> @@ -1253,8 +1091,6 @@ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceCo return this; } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> @@ -1273,8 +1109,6 @@ public Builder setInstanceConfig( return this; } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> @@ -1283,10 +1117,9 @@ public Builder setInstanceConfig( */ 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()) { + if (((bitField0_ & 0x00000004) != 0) && + instanceConfig_ != null && + instanceConfig_ != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) { getInstanceConfigBuilder().mergeFrom(value); } else { instanceConfig_ = value; @@ -1299,8 +1132,6 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance return this; } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> @@ -1318,8 +1149,6 @@ public Builder clearInstanceConfig() { return this; } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> @@ -1332,27 +1161,21 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo return getInstanceConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;</code> */ - public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder - getInstanceConfigOrBuilder() { + 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_; + return instanceConfig_ == null ? + com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance() : instanceConfig_; } } /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> @@ -1360,24 +1183,21 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;</code> */ 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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1387,12 +1207,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1401,27 +1221,27 @@ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CloudInstanceConfigResponse> PARSER = - new com.google.protobuf.AbstractParser<CloudInstanceConfigResponse>() { - @java.lang.Override - public CloudInstanceConfigResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CloudInstanceConfigResponse> + PARSER = new com.google.protobuf.AbstractParser<CloudInstanceConfigResponse>() { + @java.lang.Override + public CloudInstanceConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CloudInstanceConfigResponse> parser() { return PARSER; @@ -1436,4 +1256,6 @@ public com.google.protobuf.Parser<CloudInstanceConfigResponse> getParserForType( public com.google.spanner.executor.v1.CloudInstanceConfigResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java index a7fd4d019b1..78f8679aff0 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponseOrBuilder.java @@ -1,141 +1,97 @@ -/* - * 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 interface CloudInstanceConfigResponseOrBuilder - extends +public interface CloudInstanceConfigResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CloudInstanceConfigResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> + java.util.List<com.google.spanner.admin.instance.v1.InstanceConfig> getListedInstanceConfigsList(); /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ com.google.spanner.admin.instance.v1.InstanceConfig getListedInstanceConfigs(int index); /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ int getListedInstanceConfigsCount(); /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> + java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder> getListedInstanceConfigsOrBuilderList(); /** - * - * * <pre> * List of instance configs returned by ListCloudInstanceConfigsAction. * </pre> * - * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1; - * </code> + * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;</code> */ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getListedInstanceConfigsOrBuilder( int index); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;</code> - * * @return Whether the instanceConfig field is set. */ boolean hasInstanceConfig(); /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> * * <code>.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;</code> - * * @return The instanceConfig. */ com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig(); /** - * - * * <pre> * Instance config returned by GetCloudInstanceConfigAction. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java index 20e31f94b9f..74f1dba6c9a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * CloudInstanceResponse contains results returned by cloud instance related * actions. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.spanner.executor.v1.CloudInstanceResponse} */ -public final class CloudInstanceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -45,32 +27,28 @@ private CloudInstanceResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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<com.google.spanner.admin.instance.v1.Instance> listedInstances_; /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -82,8 +60,6 @@ public java.util.List<com.google.spanner.admin.instance.v1.Instance> getListedIn return listedInstances_; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -91,13 +67,11 @@ public java.util.List<com.google.spanner.admin.instance.v1.Instance> getListedIn * <code>repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> + public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> getListedInstancesOrBuilderList() { return listedInstances_; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -109,8 +83,6 @@ public int getListedInstancesCount() { return listedInstances_.size(); } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -122,8 +94,6 @@ public com.google.spanner.admin.instance.v1.Instance getListedInstances(int inde return listedInstances_.get(index); } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -137,19 +107,15 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstances } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -158,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -192,14 +158,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.spanner.admin.instance.v1.Instance instance_; /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> - * * @return Whether the instance field is set. */ @java.lang.Override @@ -207,25 +170,18 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> - * * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> @@ -234,13 +190,10 @@ public com.google.spanner.admin.instance.v1.Instance getInstance() { */ @java.lang.Override public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { - return instance_ == null - ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() - : instance_; + 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; @@ -252,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); } @@ -272,13 +226,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listedInstances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listedInstances_.get(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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -288,19 +244,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -329,103 +287,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CloudInstanceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * CloudInstanceResponse contains results returned by cloud instance related * actions. @@ -433,32 +386,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.CloudInstanceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CloudInstanceResponse) com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloudInstanceResponse_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CloudInstanceResponse.class, com.google.spanner.executor.v1.CloudInstanceResponse.Builder.class); } // Construct using com.google.spanner.executor.v1.CloudInstanceResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CloudInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CloudInstanceResponse_descriptor; } @java.lang.Override @@ -501,18 +455,14 @@ public com.google.spanner.executor.v1.CloudInstanceResponse build() { @java.lang.Override public com.google.spanner.executor.v1.CloudInstanceResponse buildPartial() { - com.google.spanner.executor.v1.CloudInstanceResponse result = - new com.google.spanner.executor.v1.CloudInstanceResponse(this); + com.google.spanner.executor.v1.CloudInstanceResponse result = new com.google.spanner.executor.v1.CloudInstanceResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.CloudInstanceResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.CloudInstanceResponse result) { if (listedInstancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listedInstances_ = java.util.Collections.unmodifiableList(listedInstances_); @@ -530,7 +480,9 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudInstanceResponse result.nextPageToken_ = nextPageToken_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + result.instance_ = instanceBuilder_ == null + ? instance_ + : instanceBuilder_.build(); } } @@ -538,39 +490,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CloudInstanceResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CloudInstanceResponse) { - return mergeFrom((com.google.spanner.executor.v1.CloudInstanceResponse) other); + return mergeFrom((com.google.spanner.executor.v1.CloudInstanceResponse)other); } else { super.mergeFrom(other); return this; @@ -578,8 +529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CloudInstanceResponse other) { - if (other == com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance()) return this; if (listedInstancesBuilder_ == null) { if (!other.listedInstances_.isEmpty()) { if (listedInstances_.isEmpty()) { @@ -598,10 +548,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.CloudInstanceResponse ot listedInstancesBuilder_ = null; listedInstances_ = other.listedInstances_; bitField0_ = (bitField0_ & ~0x00000001); - listedInstancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListedInstancesFieldBuilder() - : null; + listedInstancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListedInstancesFieldBuilder() : null; } else { listedInstancesBuilder_.addAllMessages(other.listedInstances_); } @@ -641,38 +590,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.admin.instance.v1.Instance m = - input.readMessage( - com.google.spanner.admin.instance.v1.Instance.parser(), extensionRegistry); - if (listedInstancesBuilder_ == null) { - ensureListedInstancesIsMutable(); - listedInstances_.add(m); - } else { - listedInstancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.admin.instance.v1.Instance m = + input.readMessage( + com.google.spanner.admin.instance.v1.Instance.parser(), + extensionRegistry); + if (listedInstancesBuilder_ == null) { + ensureListedInstancesIsMutable(); + listedInstances_.add(m); + } else { + listedInstancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -682,30 +630,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.admin.instance.v1.Instance> listedInstances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureListedInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listedInstances_ = - new java.util.ArrayList<com.google.spanner.admin.instance.v1.Instance>( - listedInstances_); + listedInstances_ = new java.util.ArrayList<com.google.spanner.admin.instance.v1.Instance>(listedInstances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.Instance, - com.google.spanner.admin.instance.v1.Instance.Builder, - com.google.spanner.admin.instance.v1.InstanceOrBuilder> - listedInstancesBuilder_; + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> listedInstancesBuilder_; /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -720,8 +659,6 @@ public java.util.List<com.google.spanner.admin.instance.v1.Instance> getListedIn } } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -736,8 +673,6 @@ public int getListedInstancesCount() { } } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -752,8 +687,6 @@ public com.google.spanner.admin.instance.v1.Instance getListedInstances(int inde } } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -775,8 +708,6 @@ public Builder setListedInstances( return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -795,8 +726,6 @@ public Builder setListedInstances( return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -817,8 +746,6 @@ public Builder addListedInstances(com.google.spanner.admin.instance.v1.Instance return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -840,8 +767,6 @@ public Builder addListedInstances( return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -860,8 +785,6 @@ public Builder addListedInstances( return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -880,8 +803,6 @@ public Builder addListedInstances( return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -892,7 +813,8 @@ 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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listedInstances_); onChanged(); } else { listedInstancesBuilder_.addAllMessages(values); @@ -900,8 +822,6 @@ public Builder addAllListedInstances( return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -919,8 +839,6 @@ public Builder clearListedInstances() { return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -938,8 +856,6 @@ public Builder removeListedInstances(int index) { return this; } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -951,8 +867,6 @@ public com.google.spanner.admin.instance.v1.Instance.Builder getListedInstancesB return getListedInstancesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -962,22 +876,19 @@ public com.google.spanner.admin.instance.v1.Instance.Builder getListedInstancesB public com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstancesOrBuilder( int index) { if (listedInstancesBuilder_ == null) { - return listedInstances_.get(index); - } else { + return listedInstances_.get(index); } else { return listedInstancesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;</code> */ - public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> - getListedInstancesOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> + getListedInstancesOrBuilderList() { if (listedInstancesBuilder_ != null) { return listedInstancesBuilder_.getMessageOrBuilderList(); } else { @@ -985,8 +896,6 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstances } } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -994,12 +903,10 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstances * <code>repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;</code> */ public com.google.spanner.admin.instance.v1.Instance.Builder addListedInstancesBuilder() { - return getListedInstancesFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); + return getListedInstancesFieldBuilder().addBuilder( + com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -1008,34 +915,26 @@ public com.google.spanner.admin.instance.v1.Instance.Builder addListedInstancesB */ public com.google.spanner.admin.instance.v1.Instance.Builder addListedInstancesBuilder( int index) { - return getListedInstancesFieldBuilder() - .addBuilder(index, com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); + return getListedInstancesFieldBuilder().addBuilder( + index, com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()); } /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.Instance.Builder> - getListedInstancesBuilderList() { + public java.util.List<com.google.spanner.admin.instance.v1.Instance.Builder> + getListedInstancesBuilderList() { return getListedInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.Instance, - com.google.spanner.admin.instance.v1.Instance.Builder, - com.google.spanner.admin.instance.v1.InstanceOrBuilder> + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> getListedInstancesFieldBuilder() { if (listedInstancesBuilder_ == null) { - listedInstancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.Instance, - com.google.spanner.admin.instance.v1.Instance.Builder, - com.google.spanner.admin.instance.v1.InstanceOrBuilder>( + listedInstancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder>( listedInstances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1047,21 +946,19 @@ public com.google.spanner.admin.instance.v1.Instance.Builder addListedInstancesB private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1070,22 +967,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1093,37 +989,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1133,22 +1022,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1158,47 +1043,34 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.instance.v1.Instance, com.google.spanner.admin.instance.v1.Instance.Builder, com.google.spanner.admin.instance.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> - * * @return Whether the instance field is set. */ public boolean hasInstance() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> - * * @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_; + return instance_ == null ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> @@ -1219,8 +1091,6 @@ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) return this; } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> @@ -1239,8 +1109,6 @@ public Builder setInstance( return this; } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> @@ -1249,9 +1117,9 @@ public Builder setInstance( */ 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()) { + if (((bitField0_ & 0x00000004) != 0) && + instance_ != null && + instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) { getInstanceBuilder().mergeFrom(value); } else { instance_ = value; @@ -1264,8 +1132,6 @@ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value return this; } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> @@ -1283,8 +1149,6 @@ public Builder clearInstance() { return this; } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> @@ -1297,8 +1161,6 @@ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder( return getInstanceFieldBuilder().getBuilder(); } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> @@ -1309,14 +1171,11 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.spanner.admin.instance.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> @@ -1324,24 +1183,21 @@ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuild * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> */ 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> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1351,12 +1207,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1365,27 +1221,27 @@ public static com.google.spanner.executor.v1.CloudInstanceResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CloudInstanceResponse> PARSER = - new com.google.protobuf.AbstractParser<CloudInstanceResponse>() { - @java.lang.Override - public CloudInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CloudInstanceResponse> + PARSER = new com.google.protobuf.AbstractParser<CloudInstanceResponse>() { + @java.lang.Override + public CloudInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CloudInstanceResponse> parser() { return PARSER; @@ -1400,4 +1256,6 @@ public com.google.protobuf.Parser<CloudInstanceResponse> getParserForType() { public com.google.spanner.executor.v1.CloudInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java index 64811c8b29a..9c8d211e8cd 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 interface CloudInstanceResponseOrBuilder - extends +public interface CloudInstanceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CloudInstanceResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;</code> */ - java.util.List<com.google.spanner.admin.instance.v1.Instance> getListedInstancesList(); + java.util.List<com.google.spanner.admin.instance.v1.Instance> + getListedInstancesList(); /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -44,8 +25,6 @@ public interface CloudInstanceResponseOrBuilder */ com.google.spanner.admin.instance.v1.Instance getListedInstances(int index); /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> @@ -54,81 +33,65 @@ public interface CloudInstanceResponseOrBuilder */ int getListedInstancesCount(); /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;</code> */ - java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> + java.util.List<? extends com.google.spanner.admin.instance.v1.InstanceOrBuilder> getListedInstancesOrBuilderList(); /** - * - * * <pre> * List of instances returned by ListCloudInstancesAction. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;</code> */ - com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstancesOrBuilder(int index); + com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstancesOrBuilder( + int index); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> - * * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 3;</code> - * * @return The instance. */ com.google.spanner.admin.instance.v1.Instance getInstance(); /** - * - * * <pre> * Instance returned by GetCloudInstanceAction * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java index da69ce0dd65..086d26943a3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java @@ -1,80 +1,57 @@ -/* - * 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; /** - * - * * <pre> * ColumnMetadata represents metadata of a single column. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ColumnMetadata} */ -public final class ColumnMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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) { + 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The name. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -116,14 +93,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private com.google.spanner.v1.Type type_; /** - * - * * <pre> * Column type. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return Whether the type field is set. */ @java.lang.Override @@ -131,14 +105,11 @@ public boolean hasType() { return type_ != null; } /** - * - * * <pre> * Column type. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return The type. */ @java.lang.Override @@ -146,8 +117,6 @@ public com.google.spanner.v1.Type getType() { return type_ == null ? com.google.spanner.v1.Type.getDefaultInstance() : type_; } /** - * - * * <pre> * Column type. * </pre> @@ -160,7 +129,6 @@ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -192,7 +161,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,18 +172,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + com.google.spanner.executor.v1.ColumnMetadata other = (com.google.spanner.executor.v1.ColumnMetadata) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType().equals(other.getType())) return false; + if (!getType() + .equals(other.getType())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -237,136 +208,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.ColumnMetadata parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * ColumnMetadata represents metadata of a single column. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ColumnMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ColumnMetadata) com.google.spanner.executor.v1.ColumnMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ColumnMetadata_descriptor; + 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 + 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); + com.google.spanner.executor.v1.ColumnMetadata.class, com.google.spanner.executor.v1.ColumnMetadata.Builder.class); } // Construct using com.google.spanner.executor.v1.ColumnMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ColumnMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ColumnMetadata_descriptor; } @java.lang.Override @@ -402,11 +369,8 @@ public com.google.spanner.executor.v1.ColumnMetadata build() { @java.lang.Override public com.google.spanner.executor.v1.ColumnMetadata buildPartial() { - com.google.spanner.executor.v1.ColumnMetadata result = - new com.google.spanner.executor.v1.ColumnMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ColumnMetadata result = new com.google.spanner.executor.v1.ColumnMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -417,7 +381,9 @@ private void buildPartial0(com.google.spanner.executor.v1.ColumnMetadata result) result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + result.type_ = typeBuilder_ == null + ? type_ + : typeBuilder_.build(); } } @@ -425,39 +391,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ColumnMetadata result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ColumnMetadata) { - return mergeFrom((com.google.spanner.executor.v1.ColumnMetadata) other); + return mergeFrom((com.google.spanner.executor.v1.ColumnMetadata)other); } else { super.mergeFrom(other); return this; @@ -500,25 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getTypeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTypeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -528,25 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -555,21 +516,20 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -577,35 +537,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -615,21 +568,17 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -639,33 +588,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.v1.Type, com.google.spanner.v1.Type.Builder, com.google.spanner.v1.TypeOrBuilder> typeBuilder_; /** - * - * * <pre> * Column type. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Column type. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return The type. */ public com.google.spanner.v1.Type getType() { @@ -676,8 +616,6 @@ public com.google.spanner.v1.Type getType() { } } /** - * - * * <pre> * Column type. * </pre> @@ -698,15 +636,14 @@ public Builder setType(com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Column type. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> */ - public Builder setType(com.google.spanner.v1.Type.Builder builderForValue) { + public Builder setType( + com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { @@ -717,8 +654,6 @@ public Builder setType(com.google.spanner.v1.Type.Builder builderForValue) { return this; } /** - * - * * <pre> * Column type. * </pre> @@ -727,9 +662,9 @@ public Builder setType(com.google.spanner.v1.Type.Builder builderForValue) { */ 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()) { + if (((bitField0_ & 0x00000002) != 0) && + type_ != null && + type_ != com.google.spanner.v1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; @@ -742,8 +677,6 @@ public Builder mergeType(com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Column type. * </pre> @@ -761,8 +694,6 @@ public Builder clearType() { return this; } /** - * - * * <pre> * Column type. * </pre> @@ -775,8 +706,6 @@ public com.google.spanner.v1.Type.Builder getTypeBuilder() { return getTypeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Column type. * </pre> @@ -787,12 +716,11 @@ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? com.google.spanner.v1.Type.getDefaultInstance() : type_; + return type_ == null ? + com.google.spanner.v1.Type.getDefaultInstance() : type_; } } /** - * - * * <pre> * Column type. * </pre> @@ -800,23 +728,21 @@ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() { * <code>.google.spanner.v1.Type type = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.v1.Type, - com.google.spanner.v1.Type.Builder, - com.google.spanner.v1.TypeOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -826,12 +752,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -840,27 +766,27 @@ public static com.google.spanner.executor.v1.ColumnMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ColumnMetadata> PARSER = - new com.google.protobuf.AbstractParser<ColumnMetadata>() { - @java.lang.Override - public ColumnMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ColumnMetadata> + PARSER = new com.google.protobuf.AbstractParser<ColumnMetadata>() { + @java.lang.Override + public ColumnMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ColumnMetadata> parser() { return PARSER; @@ -875,4 +801,6 @@ public com.google.protobuf.Parser<ColumnMetadata> getParserForType() { public com.google.spanner.executor.v1.ColumnMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java similarity index 58% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java index 43a8ddc31fb..b8880455375 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadataOrBuilder.java @@ -1,80 +1,51 @@ -/* - * 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 interface ColumnMetadataOrBuilder - extends +public interface ColumnMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ColumnMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Column type. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return Whether the type field is set. */ boolean hasType(); /** - * - * * <pre> * Column type. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return The type. */ com.google.spanner.v1.Type getType(); /** - * - * * <pre> * Column type. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java index 8660df865c9..f13b0139ed1 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java @@ -1,75 +1,53 @@ -/* - * 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; /** - * - * * <pre> * Concurrency for read-only transactions. * </pre> * * Protobuf type {@code google.spanner.executor.v1.Concurrency} */ -public final class Concurrency extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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) { + 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; + 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 + 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); + 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, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STALENESS_SECONDS(1), MIN_READ_TIMESTAMP_MICROS(2), @@ -79,7 +57,6 @@ public enum ConcurrencyModeCase BATCH(6), CONCURRENCYMODE_NOT_SET(0); private final int value; - private ConcurrencyModeCase(int value) { this.value = value; } @@ -95,38 +72,29 @@ public static ConcurrencyModeCase valueOf(int 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; + 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 ConcurrencyModeCase + getConcurrencyModeCase() { + return ConcurrencyModeCase.forNumber( + concurrencyModeCase_); } public static final int STALENESS_SECONDS_FIELD_NUMBER = 1; /** - * - * * <pre> * 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 @@ -134,7 +102,6 @@ public ConcurrencyModeCase getConcurrencyModeCase() { * </pre> * * <code>double staleness_seconds = 1;</code> - * * @return Whether the stalenessSeconds field is set. */ @java.lang.Override @@ -142,8 +109,6 @@ public boolean hasStalenessSeconds() { return concurrencyModeCase_ == 1; } /** - * - * * <pre> * 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 @@ -151,7 +116,6 @@ public boolean hasStalenessSeconds() { * </pre> * * <code>double staleness_seconds = 1;</code> - * * @return The stalenessSeconds. */ @java.lang.Override @@ -164,14 +128,11 @@ public double getStalenessSeconds() { public static final int MIN_READ_TIMESTAMP_MICROS_FIELD_NUMBER = 2; /** - * - * * <pre> * Indicates a boundedly stale read that reads at a timestamp >= T. * </pre> * * <code>int64 min_read_timestamp_micros = 2;</code> - * * @return Whether the minReadTimestampMicros field is set. */ @java.lang.Override @@ -179,14 +140,11 @@ public boolean hasMinReadTimestampMicros() { return concurrencyModeCase_ == 2; } /** - * - * * <pre> * Indicates a boundedly stale read that reads at a timestamp >= T. * </pre> * * <code>int64 min_read_timestamp_micros = 2;</code> - * * @return The minReadTimestampMicros. */ @java.lang.Override @@ -199,14 +157,11 @@ public long getMinReadTimestampMicros() { public static final int MAX_STALENESS_SECONDS_FIELD_NUMBER = 3; /** - * - * * <pre> * Indicates a boundedly stale read that is at most N seconds stale. * </pre> * * <code>double max_staleness_seconds = 3;</code> - * * @return Whether the maxStalenessSeconds field is set. */ @java.lang.Override @@ -214,14 +169,11 @@ public boolean hasMaxStalenessSeconds() { return concurrencyModeCase_ == 3; } /** - * - * * <pre> * Indicates a boundedly stale read that is at most N seconds stale. * </pre> * * <code>double max_staleness_seconds = 3;</code> - * * @return The maxStalenessSeconds. */ @java.lang.Override @@ -234,14 +186,11 @@ public double getMaxStalenessSeconds() { public static final int EXACT_TIMESTAMP_MICROS_FIELD_NUMBER = 4; /** - * - * * <pre> * Indicates a read at a consistent timestamp. * </pre> * * <code>int64 exact_timestamp_micros = 4;</code> - * * @return Whether the exactTimestampMicros field is set. */ @java.lang.Override @@ -249,14 +198,11 @@ public boolean hasExactTimestampMicros() { return concurrencyModeCase_ == 4; } /** - * - * * <pre> * Indicates a read at a consistent timestamp. * </pre> * * <code>int64 exact_timestamp_micros = 4;</code> - * * @return The exactTimestampMicros. */ @java.lang.Override @@ -269,14 +215,11 @@ public long getExactTimestampMicros() { public static final int STRONG_FIELD_NUMBER = 5; /** - * - * * <pre> * Indicates a strong read, must only be set to true, or unset. * </pre> * * <code>bool strong = 5;</code> - * * @return Whether the strong field is set. */ @java.lang.Override @@ -284,14 +227,11 @@ public boolean hasStrong() { return concurrencyModeCase_ == 5; } /** - * - * * <pre> * Indicates a strong read, must only be set to true, or unset. * </pre> * * <code>bool strong = 5;</code> - * * @return The strong. */ @java.lang.Override @@ -304,14 +244,11 @@ public boolean getStrong() { public static final int BATCH_FIELD_NUMBER = 6; /** - * - * * <pre> * Indicates a batch read, must only be set to true, or unset. * </pre> * * <code>bool batch = 6;</code> - * * @return Whether the batch field is set. */ @java.lang.Override @@ -319,14 +256,11 @@ public boolean hasBatch() { return concurrencyModeCase_ == 6; } /** - * - * * <pre> * Indicates a batch read, must only be set to true, or unset. * </pre> * * <code>bool batch = 6;</code> - * * @return The batch. */ @java.lang.Override @@ -340,15 +274,12 @@ public boolean getBatch() { public static final int SNAPSHOT_EPOCH_READ_FIELD_NUMBER = 7; private boolean snapshotEpochRead_ = false; /** - * - * * <pre> * True if exact_timestamp_micros is set, and the chosen timestamp is that of * a snapshot epoch. * </pre> * * <code>bool snapshot_epoch_read = 7;</code> - * * @return The snapshotEpochRead. */ @java.lang.Override @@ -357,12 +288,9 @@ public boolean getSnapshotEpochRead() { } public static final int SNAPSHOT_EPOCH_ROOT_TABLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object snapshotEpochRootTable_ = ""; /** - * - * * <pre> * 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 @@ -370,7 +298,6 @@ public boolean getSnapshotEpochRead() { * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @return The snapshotEpochRootTable. */ @java.lang.Override @@ -379,15 +306,14 @@ public java.lang.String getSnapshotEpochRootTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotEpochRootTable_ = s; return s; } } /** - * - * * <pre> * 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 @@ -395,15 +321,16 @@ public java.lang.String getSnapshotEpochRootTable() { * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @return The bytes for snapshotEpochRootTable. */ @java.lang.Override - public com.google.protobuf.ByteString getSnapshotEpochRootTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snapshotEpochRootTable_ = b; return b; } else { @@ -414,14 +341,11 @@ public com.google.protobuf.ByteString getSnapshotEpochRootTableBytes() { public static final int BATCH_READ_TIMESTAMP_MICROS_FIELD_NUMBER = 9; private long batchReadTimestampMicros_ = 0L; /** - * - * * <pre> * Set only when batch is true. * </pre> * * <code>int64 batch_read_timestamp_micros = 9;</code> - * * @return The batchReadTimestampMicros. */ @java.lang.Override @@ -430,7 +354,6 @@ public long getBatchReadTimestampMicros() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -442,24 +365,31 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (concurrencyModeCase_ == 1) { - output.writeDouble(1, (double) ((java.lang.Double) concurrencyMode_)); + output.writeDouble( + 1, (double)((java.lang.Double) concurrencyMode_)); } if (concurrencyModeCase_ == 2) { - output.writeInt64(2, (long) ((java.lang.Long) concurrencyMode_)); + output.writeInt64( + 2, (long)((java.lang.Long) concurrencyMode_)); } if (concurrencyModeCase_ == 3) { - output.writeDouble(3, (double) ((java.lang.Double) concurrencyMode_)); + output.writeDouble( + 3, (double)((java.lang.Double) concurrencyMode_)); } if (concurrencyModeCase_ == 4) { - output.writeInt64(4, (long) ((java.lang.Long) concurrencyMode_)); + output.writeInt64( + 4, (long)((java.lang.Long) concurrencyMode_)); } if (concurrencyModeCase_ == 5) { - output.writeBool(5, (boolean) ((java.lang.Boolean) concurrencyMode_)); + output.writeBool( + 5, (boolean)((java.lang.Boolean) concurrencyMode_)); } if (concurrencyModeCase_ == 6) { - output.writeBool(6, (boolean) ((java.lang.Boolean) concurrencyMode_)); + output.writeBool( + 6, (boolean)((java.lang.Boolean) concurrencyMode_)); } if (snapshotEpochRead_ != false) { output.writeBool(7, snapshotEpochRead_); @@ -480,43 +410,45 @@ public int getSerializedSize() { size = 0; if (concurrencyModeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 1, (double) ((java.lang.Double) concurrencyMode_)); + 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_)); + 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_)); + 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_)); + 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_)); + 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_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) concurrencyMode_)); } if (snapshotEpochRead_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, snapshotEpochRead_); + 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 += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, batchReadTimestampMicros_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -526,38 +458,46 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (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; + != java.lang.Double.doubleToLongBits( + other.getStalenessSeconds())) return false; break; case 2: - if (getMinReadTimestampMicros() != other.getMinReadTimestampMicros()) return false; + if (getMinReadTimestampMicros() + != other.getMinReadTimestampMicros()) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getMaxStalenessSeconds()) - != java.lang.Double.doubleToLongBits(other.getMaxStalenessSeconds())) return false; + != java.lang.Double.doubleToLongBits( + other.getMaxStalenessSeconds())) return false; break; case 4: - if (getExactTimestampMicros() != other.getExactTimestampMicros()) return false; + if (getExactTimestampMicros() + != other.getExactTimestampMicros()) return false; break; case 5: - if (getStrong() != other.getStrong()) return false; + if (getStrong() + != other.getStrong()) return false; break; case 6: - if (getBatch() != other.getBatch()) return false; + if (getBatch() + != other.getBatch()) return false; break; case 0: default: @@ -574,41 +514,43 @@ public int hashCode() { 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 = (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()); + 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())); + 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()); + 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())); + 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()); + 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()); + 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()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBatch()); break; case 0: default: @@ -618,136 +560,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.Concurrency parseFrom(java.nio.ByteBuffer data) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Concurrency for read-only transactions. * </pre> * * Protobuf type {@code google.spanner.executor.v1.Concurrency} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.Concurrency) com.google.spanner.executor.v1.ConcurrencyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_Concurrency_descriptor; + 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 + 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); + com.google.spanner.executor.v1.Concurrency.class, com.google.spanner.executor.v1.Concurrency.Builder.class); } // Construct using com.google.spanner.executor.v1.Concurrency.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -761,9 +699,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_Concurrency_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_Concurrency_descriptor; } @java.lang.Override @@ -782,11 +720,8 @@ public com.google.spanner.executor.v1.Concurrency build() { @java.lang.Override public com.google.spanner.executor.v1.Concurrency buildPartial() { - com.google.spanner.executor.v1.Concurrency result = - new com.google.spanner.executor.v1.Concurrency(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.Concurrency result = new com.google.spanner.executor.v1.Concurrency(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -814,39 +749,38 @@ private void buildPartialOneofs(com.google.spanner.executor.v1.Concurrency resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.Concurrency) { - return mergeFrom((com.google.spanner.executor.v1.Concurrency) other); + return mergeFrom((com.google.spanner.executor.v1.Concurrency)other); } else { super.mergeFrom(other); return this; @@ -867,40 +801,33 @@ public Builder mergeFrom(com.google.spanner.executor.v1.Concurrency other) { setBatchReadTimestampMicros(other.getBatchReadTimestampMicros()); } switch (other.getConcurrencyModeCase()) { - case STALENESS_SECONDS: - { - setStalenessSeconds(other.getStalenessSeconds()); - break; - } - case MIN_READ_TIMESTAMP_MICROS: - { - setMinReadTimestampMicros(other.getMinReadTimestampMicros()); - break; - } - case MAX_STALENESS_SECONDS: - { - setMaxStalenessSeconds(other.getMaxStalenessSeconds()); - break; - } - case EXACT_TIMESTAMP_MICROS: - { - setExactTimestampMicros(other.getExactTimestampMicros()); - break; - } - case STRONG: - { - setStrong(other.getStrong()); - break; - } - case BATCH: - { - setBatch(other.getBatch()); - break; - } - case CONCURRENCYMODE_NOT_SET: - { - break; - } + case STALENESS_SECONDS: { + setStalenessSeconds(other.getStalenessSeconds()); + break; + } + case MIN_READ_TIMESTAMP_MICROS: { + setMinReadTimestampMicros(other.getMinReadTimestampMicros()); + break; + } + case MAX_STALENESS_SECONDS: { + setMaxStalenessSeconds(other.getMaxStalenessSeconds()); + break; + } + case EXACT_TIMESTAMP_MICROS: { + setExactTimestampMicros(other.getExactTimestampMicros()); + break; + } + case STRONG: { + setStrong(other.getStrong()); + break; + } + case BATCH: { + setBatch(other.getBatch()); + break; + } + case CONCURRENCYMODE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -928,67 +855,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - concurrencyMode_ = input.readDouble(); - concurrencyModeCase_ = 1; - break; - } // case 9 - case 16: - { - concurrencyMode_ = input.readInt64(); - concurrencyModeCase_ = 2; - break; - } // case 16 - case 25: - { - concurrencyMode_ = input.readDouble(); - concurrencyModeCase_ = 3; - break; - } // case 25 - case 32: - { - concurrencyMode_ = input.readInt64(); - concurrencyModeCase_ = 4; - break; - } // case 32 - case 40: - { - concurrencyMode_ = input.readBool(); - concurrencyModeCase_ = 5; - break; - } // case 40 - case 48: - { - concurrencyMode_ = input.readBool(); - concurrencyModeCase_ = 6; - break; - } // case 48 - case 56: - { - snapshotEpochRead_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: - { - snapshotEpochRootTable_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: - { - batchReadTimestampMicros_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + concurrencyMode_ = input.readDouble(); + concurrencyModeCase_ = 1; + break; + } // case 9 + case 16: { + concurrencyMode_ = input.readInt64(); + concurrencyModeCase_ = 2; + break; + } // case 16 + case 25: { + concurrencyMode_ = input.readDouble(); + concurrencyModeCase_ = 3; + break; + } // case 25 + case 32: { + concurrencyMode_ = input.readInt64(); + concurrencyModeCase_ = 4; + break; + } // case 32 + case 40: { + concurrencyMode_ = input.readBool(); + concurrencyModeCase_ = 5; + break; + } // case 40 + case 48: { + concurrencyMode_ = input.readBool(); + concurrencyModeCase_ = 6; + break; + } // case 48 + case 56: { + snapshotEpochRead_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + snapshotEpochRootTable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + batchReadTimestampMicros_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -998,12 +915,12 @@ public Builder mergeFrom( } // finally return this; } - private int concurrencyModeCase_ = 0; private java.lang.Object concurrencyMode_; - - public ConcurrencyModeCase getConcurrencyModeCase() { - return ConcurrencyModeCase.forNumber(concurrencyModeCase_); + public ConcurrencyModeCase + getConcurrencyModeCase() { + return ConcurrencyModeCase.forNumber( + concurrencyModeCase_); } public Builder clearConcurrencyMode() { @@ -1016,8 +933,6 @@ public Builder clearConcurrencyMode() { private int bitField0_; /** - * - * * <pre> * 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 @@ -1025,15 +940,12 @@ public Builder clearConcurrencyMode() { * </pre> * * <code>double staleness_seconds = 1;</code> - * * @return Whether the stalenessSeconds field is set. */ public boolean hasStalenessSeconds() { return concurrencyModeCase_ == 1; } /** - * - * * <pre> * 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 @@ -1041,7 +953,6 @@ public boolean hasStalenessSeconds() { * </pre> * * <code>double staleness_seconds = 1;</code> - * * @return The stalenessSeconds. */ public double getStalenessSeconds() { @@ -1051,8 +962,6 @@ public double getStalenessSeconds() { return 0D; } /** - * - * * <pre> * 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 @@ -1060,7 +969,6 @@ public double getStalenessSeconds() { * </pre> * * <code>double staleness_seconds = 1;</code> - * * @param value The stalenessSeconds to set. * @return This builder for chaining. */ @@ -1072,8 +980,6 @@ public Builder setStalenessSeconds(double value) { return this; } /** - * - * * <pre> * 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 @@ -1081,7 +987,6 @@ public Builder setStalenessSeconds(double value) { * </pre> * * <code>double staleness_seconds = 1;</code> - * * @return This builder for chaining. */ public Builder clearStalenessSeconds() { @@ -1094,28 +999,22 @@ public Builder clearStalenessSeconds() { } /** - * - * * <pre> * Indicates a boundedly stale read that reads at a timestamp >= T. * </pre> * * <code>int64 min_read_timestamp_micros = 2;</code> - * * @return Whether the minReadTimestampMicros field is set. */ public boolean hasMinReadTimestampMicros() { return concurrencyModeCase_ == 2; } /** - * - * * <pre> * Indicates a boundedly stale read that reads at a timestamp >= T. * </pre> * * <code>int64 min_read_timestamp_micros = 2;</code> - * * @return The minReadTimestampMicros. */ public long getMinReadTimestampMicros() { @@ -1125,14 +1024,11 @@ public long getMinReadTimestampMicros() { return 0L; } /** - * - * * <pre> * Indicates a boundedly stale read that reads at a timestamp >= T. * </pre> * * <code>int64 min_read_timestamp_micros = 2;</code> - * * @param value The minReadTimestampMicros to set. * @return This builder for chaining. */ @@ -1144,14 +1040,11 @@ public Builder setMinReadTimestampMicros(long value) { return this; } /** - * - * * <pre> * Indicates a boundedly stale read that reads at a timestamp >= T. * </pre> * * <code>int64 min_read_timestamp_micros = 2;</code> - * * @return This builder for chaining. */ public Builder clearMinReadTimestampMicros() { @@ -1164,28 +1057,22 @@ public Builder clearMinReadTimestampMicros() { } /** - * - * * <pre> * Indicates a boundedly stale read that is at most N seconds stale. * </pre> * * <code>double max_staleness_seconds = 3;</code> - * * @return Whether the maxStalenessSeconds field is set. */ public boolean hasMaxStalenessSeconds() { return concurrencyModeCase_ == 3; } /** - * - * * <pre> * Indicates a boundedly stale read that is at most N seconds stale. * </pre> * * <code>double max_staleness_seconds = 3;</code> - * * @return The maxStalenessSeconds. */ public double getMaxStalenessSeconds() { @@ -1195,14 +1082,11 @@ public double getMaxStalenessSeconds() { return 0D; } /** - * - * * <pre> * Indicates a boundedly stale read that is at most N seconds stale. * </pre> * * <code>double max_staleness_seconds = 3;</code> - * * @param value The maxStalenessSeconds to set. * @return This builder for chaining. */ @@ -1214,14 +1098,11 @@ public Builder setMaxStalenessSeconds(double value) { return this; } /** - * - * * <pre> * Indicates a boundedly stale read that is at most N seconds stale. * </pre> * * <code>double max_staleness_seconds = 3;</code> - * * @return This builder for chaining. */ public Builder clearMaxStalenessSeconds() { @@ -1234,28 +1115,22 @@ public Builder clearMaxStalenessSeconds() { } /** - * - * * <pre> * Indicates a read at a consistent timestamp. * </pre> * * <code>int64 exact_timestamp_micros = 4;</code> - * * @return Whether the exactTimestampMicros field is set. */ public boolean hasExactTimestampMicros() { return concurrencyModeCase_ == 4; } /** - * - * * <pre> * Indicates a read at a consistent timestamp. * </pre> * * <code>int64 exact_timestamp_micros = 4;</code> - * * @return The exactTimestampMicros. */ public long getExactTimestampMicros() { @@ -1265,14 +1140,11 @@ public long getExactTimestampMicros() { return 0L; } /** - * - * * <pre> * Indicates a read at a consistent timestamp. * </pre> * * <code>int64 exact_timestamp_micros = 4;</code> - * * @param value The exactTimestampMicros to set. * @return This builder for chaining. */ @@ -1284,14 +1156,11 @@ public Builder setExactTimestampMicros(long value) { return this; } /** - * - * * <pre> * Indicates a read at a consistent timestamp. * </pre> * * <code>int64 exact_timestamp_micros = 4;</code> - * * @return This builder for chaining. */ public Builder clearExactTimestampMicros() { @@ -1304,28 +1173,22 @@ public Builder clearExactTimestampMicros() { } /** - * - * * <pre> * Indicates a strong read, must only be set to true, or unset. * </pre> * * <code>bool strong = 5;</code> - * * @return Whether the strong field is set. */ public boolean hasStrong() { return concurrencyModeCase_ == 5; } /** - * - * * <pre> * Indicates a strong read, must only be set to true, or unset. * </pre> * * <code>bool strong = 5;</code> - * * @return The strong. */ public boolean getStrong() { @@ -1335,14 +1198,11 @@ public boolean getStrong() { return false; } /** - * - * * <pre> * Indicates a strong read, must only be set to true, or unset. * </pre> * * <code>bool strong = 5;</code> - * * @param value The strong to set. * @return This builder for chaining. */ @@ -1354,14 +1214,11 @@ public Builder setStrong(boolean value) { return this; } /** - * - * * <pre> * Indicates a strong read, must only be set to true, or unset. * </pre> * * <code>bool strong = 5;</code> - * * @return This builder for chaining. */ public Builder clearStrong() { @@ -1374,28 +1231,22 @@ public Builder clearStrong() { } /** - * - * * <pre> * Indicates a batch read, must only be set to true, or unset. * </pre> * * <code>bool batch = 6;</code> - * * @return Whether the batch field is set. */ public boolean hasBatch() { return concurrencyModeCase_ == 6; } /** - * - * * <pre> * Indicates a batch read, must only be set to true, or unset. * </pre> * * <code>bool batch = 6;</code> - * * @return The batch. */ public boolean getBatch() { @@ -1405,14 +1256,11 @@ public boolean getBatch() { return false; } /** - * - * * <pre> * Indicates a batch read, must only be set to true, or unset. * </pre> * * <code>bool batch = 6;</code> - * * @param value The batch to set. * @return This builder for chaining. */ @@ -1424,14 +1272,11 @@ public Builder setBatch(boolean value) { return this; } /** - * - * * <pre> * Indicates a batch read, must only be set to true, or unset. * </pre> * * <code>bool batch = 6;</code> - * * @return This builder for chaining. */ public Builder clearBatch() { @@ -1443,17 +1288,14 @@ public Builder clearBatch() { return this; } - private boolean snapshotEpochRead_; + private boolean snapshotEpochRead_ ; /** - * - * * <pre> * True if exact_timestamp_micros is set, and the chosen timestamp is that of * a snapshot epoch. * </pre> * * <code>bool snapshot_epoch_read = 7;</code> - * * @return The snapshotEpochRead. */ @java.lang.Override @@ -1461,15 +1303,12 @@ public boolean getSnapshotEpochRead() { return snapshotEpochRead_; } /** - * - * * <pre> * True if exact_timestamp_micros is set, and the chosen timestamp is that of * a snapshot epoch. * </pre> * * <code>bool snapshot_epoch_read = 7;</code> - * * @param value The snapshotEpochRead to set. * @return This builder for chaining. */ @@ -1481,15 +1320,12 @@ public Builder setSnapshotEpochRead(boolean value) { return this; } /** - * - * * <pre> * True if exact_timestamp_micros is set, and the chosen timestamp is that of * a snapshot epoch. * </pre> * * <code>bool snapshot_epoch_read = 7;</code> - * * @return This builder for chaining. */ public Builder clearSnapshotEpochRead() { @@ -1501,8 +1337,6 @@ public Builder clearSnapshotEpochRead() { private java.lang.Object snapshotEpochRootTable_ = ""; /** - * - * * <pre> * 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 @@ -1510,13 +1344,13 @@ public Builder clearSnapshotEpochRead() { * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotEpochRootTable_ = s; return s; @@ -1525,8 +1359,6 @@ public java.lang.String getSnapshotEpochRootTable() { } } /** - * - * * <pre> * 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 @@ -1534,14 +1366,15 @@ public java.lang.String getSnapshotEpochRootTable() { * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @return The bytes for snapshotEpochRootTable. */ - public com.google.protobuf.ByteString getSnapshotEpochRootTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snapshotEpochRootTable_ = b; return b; } else { @@ -1549,8 +1382,6 @@ public com.google.protobuf.ByteString getSnapshotEpochRootTableBytes() { } } /** - * - * * <pre> * 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 @@ -1558,22 +1389,18 @@ public com.google.protobuf.ByteString getSnapshotEpochRootTableBytes() { * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @param value The snapshotEpochRootTable to set. * @return This builder for chaining. */ - public Builder setSnapshotEpochRootTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSnapshotEpochRootTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } snapshotEpochRootTable_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * * <pre> * 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 @@ -1581,7 +1408,6 @@ public Builder setSnapshotEpochRootTable(java.lang.String value) { * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @return This builder for chaining. */ public Builder clearSnapshotEpochRootTable() { @@ -1591,8 +1417,6 @@ public Builder clearSnapshotEpochRootTable() { return this; } /** - * - * * <pre> * 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 @@ -1600,14 +1424,12 @@ public Builder clearSnapshotEpochRootTable() { * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @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(); - } + public Builder setSnapshotEpochRootTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotEpochRootTable_ = value; bitField0_ |= 0x00000080; @@ -1615,16 +1437,13 @@ public Builder setSnapshotEpochRootTableBytes(com.google.protobuf.ByteString val return this; } - private long batchReadTimestampMicros_; + private long batchReadTimestampMicros_ ; /** - * - * * <pre> * Set only when batch is true. * </pre> * * <code>int64 batch_read_timestamp_micros = 9;</code> - * * @return The batchReadTimestampMicros. */ @java.lang.Override @@ -1632,14 +1451,11 @@ public long getBatchReadTimestampMicros() { return batchReadTimestampMicros_; } /** - * - * * <pre> * Set only when batch is true. * </pre> * * <code>int64 batch_read_timestamp_micros = 9;</code> - * * @param value The batchReadTimestampMicros to set. * @return This builder for chaining. */ @@ -1651,14 +1467,11 @@ public Builder setBatchReadTimestampMicros(long value) { return this; } /** - * - * * <pre> * Set only when batch is true. * </pre> * * <code>int64 batch_read_timestamp_micros = 9;</code> - * * @return This builder for chaining. */ public Builder clearBatchReadTimestampMicros() { @@ -1667,9 +1480,9 @@ public Builder clearBatchReadTimestampMicros() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1679,12 +1492,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1693,27 +1506,27 @@ public static com.google.spanner.executor.v1.Concurrency getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<Concurrency> PARSER = - new com.google.protobuf.AbstractParser<Concurrency>() { - @java.lang.Override - public Concurrency parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<Concurrency> + PARSER = new com.google.protobuf.AbstractParser<Concurrency>() { + @java.lang.Override + public Concurrency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<Concurrency> parser() { return PARSER; @@ -1728,4 +1541,6 @@ public com.google.protobuf.Parser<Concurrency> getParserForType() { public com.google.spanner.executor.v1.Concurrency getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java similarity index 82% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java index fbed2003495..27113bb9dff 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ConcurrencyOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 interface ConcurrencyOrBuilder - extends +public interface ConcurrencyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.Concurrency) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * 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 @@ -33,13 +15,10 @@ public interface ConcurrencyOrBuilder * </pre> * * <code>double staleness_seconds = 1;</code> - * * @return Whether the stalenessSeconds field is set. */ boolean hasStalenessSeconds(); /** - * - * * <pre> * 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 @@ -47,153 +26,117 @@ public interface ConcurrencyOrBuilder * </pre> * * <code>double staleness_seconds = 1;</code> - * * @return The stalenessSeconds. */ double getStalenessSeconds(); /** - * - * * <pre> * Indicates a boundedly stale read that reads at a timestamp >= T. * </pre> * * <code>int64 min_read_timestamp_micros = 2;</code> - * * @return Whether the minReadTimestampMicros field is set. */ boolean hasMinReadTimestampMicros(); /** - * - * * <pre> * Indicates a boundedly stale read that reads at a timestamp >= T. * </pre> * * <code>int64 min_read_timestamp_micros = 2;</code> - * * @return The minReadTimestampMicros. */ long getMinReadTimestampMicros(); /** - * - * * <pre> * Indicates a boundedly stale read that is at most N seconds stale. * </pre> * * <code>double max_staleness_seconds = 3;</code> - * * @return Whether the maxStalenessSeconds field is set. */ boolean hasMaxStalenessSeconds(); /** - * - * * <pre> * Indicates a boundedly stale read that is at most N seconds stale. * </pre> * * <code>double max_staleness_seconds = 3;</code> - * * @return The maxStalenessSeconds. */ double getMaxStalenessSeconds(); /** - * - * * <pre> * Indicates a read at a consistent timestamp. * </pre> * * <code>int64 exact_timestamp_micros = 4;</code> - * * @return Whether the exactTimestampMicros field is set. */ boolean hasExactTimestampMicros(); /** - * - * * <pre> * Indicates a read at a consistent timestamp. * </pre> * * <code>int64 exact_timestamp_micros = 4;</code> - * * @return The exactTimestampMicros. */ long getExactTimestampMicros(); /** - * - * * <pre> * Indicates a strong read, must only be set to true, or unset. * </pre> * * <code>bool strong = 5;</code> - * * @return Whether the strong field is set. */ boolean hasStrong(); /** - * - * * <pre> * Indicates a strong read, must only be set to true, or unset. * </pre> * * <code>bool strong = 5;</code> - * * @return The strong. */ boolean getStrong(); /** - * - * * <pre> * Indicates a batch read, must only be set to true, or unset. * </pre> * * <code>bool batch = 6;</code> - * * @return Whether the batch field is set. */ boolean hasBatch(); /** - * - * * <pre> * Indicates a batch read, must only be set to true, or unset. * </pre> * * <code>bool batch = 6;</code> - * * @return The batch. */ boolean getBatch(); /** - * - * * <pre> * True if exact_timestamp_micros is set, and the chosen timestamp is that of * a snapshot epoch. * </pre> * * <code>bool snapshot_epoch_read = 7;</code> - * * @return The snapshotEpochRead. */ boolean getSnapshotEpochRead(); /** - * - * * <pre> * 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 @@ -201,13 +144,10 @@ public interface ConcurrencyOrBuilder * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @return The snapshotEpochRootTable. */ java.lang.String getSnapshotEpochRootTable(); /** - * - * * <pre> * 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 @@ -215,20 +155,17 @@ public interface ConcurrencyOrBuilder * </pre> * * <code>string snapshot_epoch_root_table = 8;</code> - * * @return The bytes for snapshotEpochRootTable. */ - com.google.protobuf.ByteString getSnapshotEpochRootTableBytes(); + com.google.protobuf.ByteString + getSnapshotEpochRootTableBytes(); /** - * - * * <pre> * Set only when batch is true. * </pre> * * <code>int64 batch_read_timestamp_micros = 9;</code> - * * @return The batchReadTimestampMicros. */ long getBatchReadTimestampMicros(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java similarity index 69% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java index 2a9a2c39648..a60db4ece8c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CopyCloudBackupAction} */ -public final class CopyCloudBackupAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -46,38 +28,33 @@ private CopyCloudBackupAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -117,18 +94,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -137,29 +110,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -168,18 +141,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int BACKUP_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ @java.lang.Override @@ -188,29 +157,29 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -219,12 +188,9 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } public static final int SOURCE_BACKUP_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object sourceBackup_ = ""; /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -232,7 +198,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { * </pre> * * <code>string source_backup = 4;</code> - * * @return The sourceBackup. */ @java.lang.Override @@ -241,15 +206,14 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceBackup_ = s; return s; } } /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -257,15 +221,16 @@ public java.lang.String getSourceBackup() { * </pre> * * <code>string source_backup = 4;</code> - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceBackup_ = b; return b; } else { @@ -276,16 +241,12 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp expireTime_; /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ @java.lang.Override @@ -293,16 +254,12 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ @java.lang.Override @@ -310,15 +267,12 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -326,7 +280,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +291,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -376,7 +330,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceBackup_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -386,21 +341,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -431,135 +390,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CopyCloudBackupAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that copies a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CopyCloudBackupAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CopyCloudBackupAction) com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CopyCloudBackupAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CopyCloudBackupAction.class, com.google.spanner.executor.v1.CopyCloudBackupAction.Builder.class); } // Construct using com.google.spanner.executor.v1.CopyCloudBackupAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -577,9 +532,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CopyCloudBackupAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CopyCloudBackupAction_descriptor; } @java.lang.Override @@ -598,11 +553,8 @@ public com.google.spanner.executor.v1.CopyCloudBackupAction build() { @java.lang.Override public com.google.spanner.executor.v1.CopyCloudBackupAction buildPartial() { - com.google.spanner.executor.v1.CopyCloudBackupAction result = - new com.google.spanner.executor.v1.CopyCloudBackupAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.CopyCloudBackupAction result = new com.google.spanner.executor.v1.CopyCloudBackupAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -622,7 +574,9 @@ private void buildPartial0(com.google.spanner.executor.v1.CopyCloudBackupAction result.sourceBackup_ = sourceBackup_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } } @@ -630,39 +584,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CopyCloudBackupAction public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CopyCloudBackupAction) { - return mergeFrom((com.google.spanner.executor.v1.CopyCloudBackupAction) other); + return mergeFrom((com.google.spanner.executor.v1.CopyCloudBackupAction)other); } else { super.mergeFrom(other); return this; @@ -670,8 +623,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CopyCloudBackupAction other) { - if (other == com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -721,43 +673,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - sourceBackup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + sourceBackup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -767,25 +715,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -794,21 +739,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -816,35 +760,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -854,21 +791,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -878,20 +811,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -900,21 +831,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -922,35 +852,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -960,21 +883,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -984,20 +903,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -1006,21 +923,20 @@ public java.lang.String getBackupId() { } } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -1028,35 +944,28 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearBackupId() { @@ -1066,21 +975,17 @@ public Builder clearBackupId() { return this; } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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(); - } + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backupId_ = value; bitField0_ |= 0x00000004; @@ -1090,8 +995,6 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceBackup_ = ""; /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -1099,13 +1002,13 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string source_backup = 4;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceBackup_ = s; return s; @@ -1114,8 +1017,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -1123,14 +1024,15 @@ public java.lang.String getSourceBackup() { * </pre> * * <code>string source_backup = 4;</code> - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceBackup_ = b; return b; } else { @@ -1138,8 +1040,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -1147,22 +1047,18 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { * </pre> * * <code>string source_backup = 4;</code> - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBackup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceBackup_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -1170,7 +1066,6 @@ public Builder setSourceBackup(java.lang.String value) { * </pre> * * <code>string source_backup = 4;</code> - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1180,8 +1075,6 @@ public Builder clearSourceBackup() { return this; } /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -1189,14 +1082,12 @@ public Builder clearSourceBackup() { * </pre> * * <code>string source_backup = 4;</code> - * * @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(); - } + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceBackup_ = value; bitField0_ |= 0x00000008; @@ -1206,61 +1097,42 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1276,18 +1148,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -1298,22 +1167,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1326,16 +1191,12 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1348,16 +1209,12 @@ public Builder clearExpireTime() { return this; } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000010; @@ -1365,57 +1222,45 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1425,12 +1270,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1439,27 +1284,27 @@ public static com.google.spanner.executor.v1.CopyCloudBackupAction getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CopyCloudBackupAction> PARSER = - new com.google.protobuf.AbstractParser<CopyCloudBackupAction>() { - @java.lang.Override - public CopyCloudBackupAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CopyCloudBackupAction> + PARSER = new com.google.protobuf.AbstractParser<CopyCloudBackupAction>() { + @java.lang.Override + public CopyCloudBackupAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CopyCloudBackupAction> parser() { return PARSER; @@ -1474,4 +1319,6 @@ public com.google.protobuf.Parser<CopyCloudBackupAction> getParserForType() { public com.google.spanner.executor.v1.CopyCloudBackupAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java index 3711ba08389..6d43774c196 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupActionOrBuilder.java @@ -1,106 +1,73 @@ -/* - * 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 interface CopyCloudBackupActionOrBuilder - extends +public interface CopyCloudBackupActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CopyCloudBackupAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -108,13 +75,10 @@ public interface CopyCloudBackupActionOrBuilder * </pre> * * <code>string source_backup = 4;</code> - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * * <pre> * The fully qualified uri of the source backup from which this * backup was copied. eg. @@ -122,49 +86,38 @@ public interface CopyCloudBackupActionOrBuilder * </pre> * * <code>string source_backup = 4;</code> - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java similarity index 71% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java index 58c05a75645..65e47db419e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CreateCloudBackupAction} */ -public final class CreateCloudBackupAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -46,39 +28,34 @@ private CreateCloudBackupAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -87,29 +64,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -118,18 +95,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -138,29 +111,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -169,18 +142,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int BACKUP_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ @java.lang.Override @@ -189,29 +158,29 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -220,12 +189,9 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } public static final int DATABASE_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -233,7 +199,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { * </pre> * * <code>string database_id = 4;</code> - * * @return The databaseId. */ @java.lang.Override @@ -242,15 +207,14 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -258,15 +222,16 @@ public java.lang.String getDatabaseId() { * </pre> * * <code>string database_id = 4;</code> - * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -277,16 +242,12 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp expireTime_; /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ @java.lang.Override @@ -294,16 +255,12 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ @java.lang.Override @@ -311,15 +268,12 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -329,8 +283,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int VERSION_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp versionTime_; /** - * - * * <pre> * 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 @@ -338,7 +290,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * </pre> * * <code>optional .google.protobuf.Timestamp version_time = 6;</code> - * * @return Whether the versionTime field is set. */ @java.lang.Override @@ -346,8 +297,6 @@ public boolean hasVersionTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * 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 @@ -355,7 +304,6 @@ public boolean hasVersionTime() { * </pre> * * <code>optional .google.protobuf.Timestamp version_time = 6;</code> - * * @return The versionTime. */ @java.lang.Override @@ -363,8 +311,6 @@ public com.google.protobuf.Timestamp getVersionTime() { return versionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } /** - * - * * <pre> * 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 @@ -379,7 +325,6 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -391,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -432,10 +378,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseId_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getExpireTime()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVersionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getVersionTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -445,25 +393,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (hasVersionTime() != other.hasVersionTime()) return false; if (hasVersionTime()) { - if (!getVersionTime().equals(other.getVersionTime())) return false; + if (!getVersionTime() + .equals(other.getVersionTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -498,127 +451,119 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CreateCloudBackupAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.CreateCloudBackupAction prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that creates a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CreateCloudBackupAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CreateCloudBackupAction) com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateCloudBackupAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CreateCloudBackupAction.class, com.google.spanner.executor.v1.CreateCloudBackupAction.Builder.class); } // Construct using com.google.spanner.executor.v1.CreateCloudBackupAction.newBuilder() @@ -626,18 +571,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getExpireTimeFieldBuilder(); getVersionTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +605,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateCloudBackupAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CreateCloudBackupAction_descriptor; } @java.lang.Override @@ -681,11 +626,8 @@ public com.google.spanner.executor.v1.CreateCloudBackupAction build() { @java.lang.Override public com.google.spanner.executor.v1.CreateCloudBackupAction buildPartial() { - com.google.spanner.executor.v1.CreateCloudBackupAction result = - new com.google.spanner.executor.v1.CreateCloudBackupAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.CreateCloudBackupAction result = new com.google.spanner.executor.v1.CreateCloudBackupAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -705,12 +647,15 @@ private void buildPartial0(com.google.spanner.executor.v1.CreateCloudBackupActio result.databaseId_ = databaseId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { - result.versionTime_ = - versionTimeBuilder_ == null ? versionTime_ : versionTimeBuilder_.build(); + result.versionTime_ = versionTimeBuilder_ == null + ? versionTime_ + : versionTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -720,39 +665,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CreateCloudBackupActio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CreateCloudBackupAction) { - return mergeFrom((com.google.spanner.executor.v1.CreateCloudBackupAction) other); + return mergeFrom((com.google.spanner.executor.v1.CreateCloudBackupAction)other); } else { super.mergeFrom(other); return this; @@ -760,8 +704,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CreateCloudBackupAction other) { - if (other == com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -814,49 +757,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - databaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getVersionTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getVersionTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -866,25 +806,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -893,21 +830,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -915,35 +851,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -953,21 +882,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -977,20 +902,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -999,21 +922,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -1021,35 +943,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -1059,21 +974,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -1083,20 +994,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -1105,21 +1014,20 @@ public java.lang.String getBackupId() { } } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -1127,35 +1035,28 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearBackupId() { @@ -1165,21 +1066,17 @@ public Builder clearBackupId() { return this; } /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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(); - } + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backupId_ = value; bitField0_ |= 0x00000004; @@ -1189,8 +1086,6 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseId_ = ""; /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -1198,13 +1093,13 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string database_id = 4;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -1213,8 +1108,6 @@ public java.lang.String getDatabaseId() { } } /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -1222,14 +1115,15 @@ public java.lang.String getDatabaseId() { * </pre> * * <code>string database_id = 4;</code> - * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -1237,8 +1131,6 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } } /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -1246,22 +1138,18 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { * </pre> * * <code>string database_id = 4;</code> - * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -1269,7 +1157,6 @@ public Builder setDatabaseId(java.lang.String value) { * </pre> * * <code>string database_id = 4;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseId() { @@ -1279,8 +1166,6 @@ public Builder clearDatabaseId() { return this; } /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -1288,14 +1173,12 @@ public Builder clearDatabaseId() { * </pre> * * <code>string database_id = 4;</code> - * * @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(); - } + public Builder setDatabaseIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseId_ = value; bitField0_ |= 0x00000008; @@ -1305,61 +1188,42 @@ public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1375,18 +1239,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -1397,22 +1258,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1425,16 +1282,12 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1447,16 +1300,12 @@ public Builder clearExpireTime() { return this; } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000010; @@ -1464,50 +1313,38 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * * <pre> * 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. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1515,13 +1352,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> versionTimeBuilder_; /** - * - * * <pre> * 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 @@ -1529,15 +1361,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * </pre> * * <code>optional .google.protobuf.Timestamp version_time = 6;</code> - * * @return Whether the versionTime field is set. */ public boolean hasVersionTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * * <pre> * 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 @@ -1545,21 +1374,16 @@ public boolean hasVersionTime() { * </pre> * * <code>optional .google.protobuf.Timestamp version_time = 6;</code> - * * @return The versionTime. */ public com.google.protobuf.Timestamp getVersionTime() { if (versionTimeBuilder_ == null) { - return versionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : versionTime_; + return versionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } else { return versionTimeBuilder_.getMessage(); } } /** - * - * * <pre> * 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 @@ -1582,8 +1406,6 @@ public Builder setVersionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * 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 @@ -1592,7 +1414,8 @@ public Builder setVersionTime(com.google.protobuf.Timestamp value) { * * <code>optional .google.protobuf.Timestamp version_time = 6;</code> */ - public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setVersionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (versionTimeBuilder_ == null) { versionTime_ = builderForValue.build(); } else { @@ -1603,8 +1426,6 @@ public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * * <pre> * 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 @@ -1615,9 +1436,9 @@ public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { if (versionTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && versionTime_ != null - && versionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + versionTime_ != null && + versionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getVersionTimeBuilder().mergeFrom(value); } else { versionTime_ = value; @@ -1630,8 +1451,6 @@ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * 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 @@ -1651,8 +1470,6 @@ public Builder clearVersionTime() { return this; } /** - * - * * <pre> * 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 @@ -1667,8 +1484,6 @@ public com.google.protobuf.Timestamp.Builder getVersionTimeBuilder() { return getVersionTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * 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 @@ -1681,14 +1496,11 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { if (versionTimeBuilder_ != null) { return versionTimeBuilder_.getMessageOrBuilder(); } else { - return versionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : versionTime_; + return versionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_; } } /** - * - * * <pre> * 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 @@ -1698,24 +1510,21 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() { * <code>optional .google.protobuf.Timestamp version_time = 6;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1725,12 +1534,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1739,27 +1548,27 @@ public static com.google.spanner.executor.v1.CreateCloudBackupAction getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateCloudBackupAction> PARSER = - new com.google.protobuf.AbstractParser<CreateCloudBackupAction>() { - @java.lang.Override - public CreateCloudBackupAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateCloudBackupAction> + PARSER = new com.google.protobuf.AbstractParser<CreateCloudBackupAction>() { + @java.lang.Override + public CreateCloudBackupAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateCloudBackupAction> parser() { return PARSER; @@ -1774,4 +1583,6 @@ public com.google.protobuf.Parser<CreateCloudBackupAction> getParserForType() { public com.google.spanner.executor.v1.CreateCloudBackupAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java similarity index 77% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java index bec47bf3112..88e781e3d4b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupActionOrBuilder.java @@ -1,106 +1,73 @@ -/* - * 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 interface CreateCloudBackupActionOrBuilder - extends +public interface CreateCloudBackupActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CreateCloudBackupAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * * <pre> * The id of the backup to be created, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -108,13 +75,10 @@ public interface CreateCloudBackupActionOrBuilder * </pre> * * <code>string database_id = 4;</code> - * * @return The databaseId. */ java.lang.String getDatabaseId(); /** - * - * * <pre> * The id of the database from which this backup was * created, e.g. "db0". Note that this needs to be in the @@ -122,55 +86,42 @@ public interface CreateCloudBackupActionOrBuilder * </pre> * * <code>string database_id = 4;</code> - * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString getDatabaseIdBytes(); + com.google.protobuf.ByteString + getDatabaseIdBytes(); /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * * <pre> * 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. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * * <pre> * 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 @@ -178,13 +129,10 @@ public interface CreateCloudBackupActionOrBuilder * </pre> * * <code>optional .google.protobuf.Timestamp version_time = 6;</code> - * * @return Whether the versionTime field is set. */ boolean hasVersionTime(); /** - * - * * <pre> * 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 @@ -192,13 +140,10 @@ public interface CreateCloudBackupActionOrBuilder * </pre> * * <code>optional .google.protobuf.Timestamp version_time = 6;</code> - * * @return The versionTime. */ com.google.protobuf.Timestamp getVersionTime(); /** - * - * * <pre> * 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 diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java index fcf13229671..9654e6c1a76 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java @@ -1,86 +1,64 @@ -/* - * 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; /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CreateCloudDatabaseAction} */ -public final class CreateCloudDatabaseAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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(); + 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) { + 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ @java.lang.Override @@ -89,29 +67,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -120,18 +98,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -140,29 +114,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -171,18 +145,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int DATABASE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The databaseId. */ @java.lang.Override @@ -191,29 +161,29 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -222,47 +192,38 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } public static final int SDL_STATEMENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return A list containing the sdlStatement. */ - public com.google.protobuf.ProtocolStringList getSdlStatementList() { + public com.google.protobuf.ProtocolStringList + getSdlStatementList() { return sdlStatement_; } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return The count of sdlStatement. */ public int getSdlStatementCount() { return sdlStatement_.size(); } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param index The index of the element to return. * @return The sdlStatement at the given index. */ @@ -270,33 +231,28 @@ public java.lang.String getSdlStatement(int index) { return sdlStatement_.get(index); } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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) { + 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_; /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. * </pre> * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> - * * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -304,26 +260,19 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. * </pre> * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> - * * @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_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -332,26 +281,19 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> */ @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 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_ = ""; /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return Whether the dialect field is set. */ @java.lang.Override @@ -359,14 +301,11 @@ public boolean hasDialect() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return The dialect. */ @java.lang.Override @@ -375,29 +314,29 @@ public java.lang.String getDialect() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dialect_ = s; return s; } } /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return The bytes for dialect. */ @java.lang.Override - public com.google.protobuf.ByteString getDialectBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dialect_ = b; return b; } else { @@ -409,7 +348,6 @@ public com.google.protobuf.ByteString getDialectBytes() { private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes proto_descriptors = 7;</code> - * * @return Whether the protoDescriptors field is set. */ @java.lang.Override @@ -418,7 +356,6 @@ public boolean hasProtoDescriptors() { } /** * <code>optional bytes proto_descriptors = 7;</code> - * * @return The protoDescriptors. */ @java.lang.Override @@ -427,7 +364,6 @@ public com.google.protobuf.ByteString getProtoDescriptors() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,7 +375,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -488,13 +425,15 @@ public int getSerializedSize() { size += 1 * getSdlStatementList().size(); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig()); + 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 += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, protoDescriptors_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -504,29 +443,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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 (!getEncryptionConfig() + .equals(other.getEncryptionConfig())) return false; } if (hasDialect() != other.hasDialect()) return false; if (hasDialect()) { - if (!getDialect().equals(other.getDialect())) return false; + if (!getDialect() + .equals(other.getDialect())) return false; } if (hasProtoDescriptors() != other.hasProtoDescriptors()) return false; if (hasProtoDescriptors()) { - if (!getProtoDescriptors().equals(other.getProtoDescriptors())) return false; + if (!getProtoDescriptors() + .equals(other.getProtoDescriptors())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -567,136 +512,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CreateCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.CreateCloudDatabaseAction prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that creates a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CreateCloudDatabaseAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CreateCloudDatabaseAction) com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CreateCloudDatabaseAction.class, com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder.class); } // Construct using com.google.spanner.executor.v1.CreateCloudDatabaseAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -704,7 +644,8 @@ public Builder clear() { instanceId_ = ""; projectId_ = ""; databaseId_ = ""; - sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sdlStatement_ = + com.google.protobuf.LazyStringArrayList.emptyList(); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -716,9 +657,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_descriptor; } @java.lang.Override @@ -737,11 +678,8 @@ public com.google.spanner.executor.v1.CreateCloudDatabaseAction build() { @java.lang.Override public com.google.spanner.executor.v1.CreateCloudDatabaseAction buildPartial() { - com.google.spanner.executor.v1.CreateCloudDatabaseAction result = - new com.google.spanner.executor.v1.CreateCloudDatabaseAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.CreateCloudDatabaseAction result = new com.google.spanner.executor.v1.CreateCloudDatabaseAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -762,8 +700,9 @@ private void buildPartial0(com.google.spanner.executor.v1.CreateCloudDatabaseAct result.sdlStatement_ = sdlStatement_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.encryptionConfig_ = - encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + result.encryptionConfig_ = encryptionConfigBuilder_ == null + ? encryptionConfig_ + : encryptionConfigBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { @@ -781,39 +720,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CreateCloudDatabaseAct public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CreateCloudDatabaseAction) { - return mergeFrom((com.google.spanner.executor.v1.CreateCloudDatabaseAction) other); + return mergeFrom((com.google.spanner.executor.v1.CreateCloudDatabaseAction)other); } else { super.mergeFrom(other); return this; @@ -821,8 +759,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CreateCloudDatabaseAction other) { - if (other == com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; bitField0_ |= 0x00000001; @@ -885,57 +822,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - databaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSdlStatementIsMutable(); - sdlStatement_.add(s); - break; - } // case 34 - case 42: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - dialect_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - protoDescriptors_ = input.readBytes(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSdlStatementIsMutable(); + sdlStatement_.add(s); + break; + } // case 34 + case 42: { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + dialect_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + protoDescriptors_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -945,25 +875,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -972,21 +899,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -994,35 +920,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -1032,21 +951,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -1056,20 +971,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1078,21 +991,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1100,35 +1012,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -1138,21 +1043,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -1162,20 +1063,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseId_ = ""; /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -1184,21 +1083,20 @@ public java.lang.String getDatabaseId() { } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -1206,35 +1104,28 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseId() { @@ -1244,21 +1135,17 @@ public Builder clearDatabaseId() { return this; } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @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(); - } + public Builder setDatabaseIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseId_ = value; bitField0_ |= 0x00000004; @@ -1268,7 +1155,6 @@ public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSdlStatementIsMutable() { if (!sdlStatement_.isModifiable()) { sdlStatement_ = new com.google.protobuf.LazyStringArrayList(sdlStatement_); @@ -1276,43 +1162,35 @@ private void ensureSdlStatementIsMutable() { bitField0_ |= 0x00000008; } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return A list containing the sdlStatement. */ - public com.google.protobuf.ProtocolStringList getSdlStatementList() { + public com.google.protobuf.ProtocolStringList + getSdlStatementList() { sdlStatement_.makeImmutable(); return sdlStatement_; } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return The count of sdlStatement. */ public int getSdlStatementCount() { return sdlStatement_.size(); } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param index The index of the element to return. * @return The sdlStatement at the given index. */ @@ -1320,37 +1198,31 @@ public java.lang.String getSdlStatement(int index) { return sdlStatement_.get(index); } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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) { + public com.google.protobuf.ByteString + getSdlStatementBytes(int index) { return sdlStatement_.getByteString(index); } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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(); - } + public Builder setSdlStatement( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSdlStatementIsMutable(); sdlStatement_.set(index, value); bitField0_ |= 0x00000008; @@ -1358,21 +1230,17 @@ public Builder setSdlStatement(int index, java.lang.String value) { return this; } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param value The sdlStatement to add. * @return This builder for chaining. */ - public Builder addSdlStatement(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSdlStatement( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSdlStatementIsMutable(); sdlStatement_.add(value); bitField0_ |= 0x00000008; @@ -1380,58 +1248,50 @@ public Builder addSdlStatement(java.lang.String value) { return this; } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param values The sdlStatement to add. * @return This builder for chaining. */ - public Builder addAllSdlStatement(java.lang.Iterable<java.lang.String> values) { + public Builder addAllSdlStatement( + java.lang.Iterable<java.lang.String> values) { ensureSdlStatementIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sdlStatement_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sdlStatement_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return This builder for chaining. */ public Builder clearSdlStatement() { - sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + sdlStatement_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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(); - } + public Builder addSdlStatementBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSdlStatementIsMutable(); sdlStatement_.add(value); @@ -1442,49 +1302,36 @@ public Builder addSdlStatementBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.admin.database.v1.EncryptionConfig, com.google.spanner.admin.database.v1.EncryptionConfig.Builder, com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder> encryptionConfigBuilder_; /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. * </pre> * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> - * * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. * </pre> * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> - * * @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_; + return encryptionConfig_ == null ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -1492,8 +1339,7 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> */ - public Builder setEncryptionConfig( - com.google.spanner.admin.database.v1.EncryptionConfig value) { + public Builder setEncryptionConfig(com.google.spanner.admin.database.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1507,8 +1353,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -1528,8 +1372,6 @@ public Builder setEncryptionConfig( return this; } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -1537,13 +1379,11 @@ public Builder setEncryptionConfig( * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> */ - public Builder mergeEncryptionConfig( - com.google.spanner.admin.database.v1.EncryptionConfig value) { + 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()) { + if (((bitField0_ & 0x00000010) != 0) && + encryptionConfig_ != null && + encryptionConfig_ != com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()) { getEncryptionConfigBuilder().mergeFrom(value); } else { encryptionConfig_ = value; @@ -1556,8 +1396,6 @@ public Builder mergeEncryptionConfig( return this; } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -1576,8 +1414,6 @@ public Builder clearEncryptionConfig() { return this; } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -1585,15 +1421,12 @@ public Builder clearEncryptionConfig() { * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> */ - public com.google.spanner.admin.database.v1.EncryptionConfig.Builder - getEncryptionConfigBuilder() { + public com.google.spanner.admin.database.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -1601,19 +1434,15 @@ public Builder clearEncryptionConfig() { * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> */ - public com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { + 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_; + return encryptionConfig_ == null ? + com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; } } /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -1622,17 +1451,14 @@ public Builder clearEncryptionConfig() { * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> */ 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> + 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()); + 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_; @@ -1640,34 +1466,29 @@ public Builder clearEncryptionConfig() { private java.lang.Object dialect_ = ""; /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return Whether the dialect field is set. */ public boolean hasDialect() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dialect_ = s; return s; @@ -1676,21 +1497,20 @@ public java.lang.String getDialect() { } } /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return The bytes for dialect. */ - public com.google.protobuf.ByteString getDialectBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dialect_ = b; return b; } else { @@ -1698,35 +1518,28 @@ public com.google.protobuf.ByteString getDialectBytes() { } } /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @param value The dialect to set. * @return This builder for chaining. */ - public Builder setDialect(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDialect( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dialect_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return This builder for chaining. */ public Builder clearDialect() { @@ -1736,21 +1549,17 @@ public Builder clearDialect() { return this; } /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @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(); - } + public Builder setDialectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dialect_ = value; bitField0_ |= 0x00000020; @@ -1761,7 +1570,6 @@ public Builder setDialectBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes proto_descriptors = 7;</code> - * * @return Whether the protoDescriptors field is set. */ @java.lang.Override @@ -1770,7 +1578,6 @@ public boolean hasProtoDescriptors() { } /** * <code>optional bytes proto_descriptors = 7;</code> - * * @return The protoDescriptors. */ @java.lang.Override @@ -1779,14 +1586,11 @@ public com.google.protobuf.ByteString getProtoDescriptors() { } /** * <code>optional bytes proto_descriptors = 7;</code> - * * @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(); - } + if (value == null) { throw new NullPointerException(); } protoDescriptors_ = value; bitField0_ |= 0x00000040; onChanged(); @@ -1794,7 +1598,6 @@ public Builder setProtoDescriptors(com.google.protobuf.ByteString value) { } /** * <code>optional bytes proto_descriptors = 7;</code> - * * @return This builder for chaining. */ public Builder clearProtoDescriptors() { @@ -1803,9 +1606,9 @@ public Builder clearProtoDescriptors() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1815,12 +1618,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -1829,27 +1632,27 @@ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateCloudDatabaseAction> PARSER = - new com.google.protobuf.AbstractParser<CreateCloudDatabaseAction>() { - @java.lang.Override - public CreateCloudDatabaseAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateCloudDatabaseAction> + PARSER = new com.google.protobuf.AbstractParser<CreateCloudDatabaseAction>() { + @java.lang.Override + public CreateCloudDatabaseAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateCloudDatabaseAction> parser() { return PARSER; @@ -1864,4 +1667,6 @@ public com.google.protobuf.Parser<CreateCloudDatabaseAction> getParserForType() public com.google.spanner.executor.v1.CreateCloudDatabaseAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java similarity index 77% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java index 82f57ec3511..ae815af8692 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseActionOrBuilder.java @@ -1,183 +1,134 @@ -/* - * 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 interface CreateCloudDatabaseActionOrBuilder - extends +public interface CreateCloudDatabaseActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CreateCloudDatabaseAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The databaseId. */ java.lang.String getDatabaseId(); /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString getDatabaseIdBytes(); + com.google.protobuf.ByteString + getDatabaseIdBytes(); /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return A list containing the sdlStatement. */ - java.util.List<java.lang.String> getSdlStatementList(); + java.util.List<java.lang.String> + getSdlStatementList(); /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return The count of sdlStatement. */ int getSdlStatementCount(); /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param index The index of the element to return. * @return The sdlStatement at the given index. */ java.lang.String getSdlStatement(int index); /** - * - * * <pre> * SDL statements to apply to the new database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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); + com.google.protobuf.ByteString + getSdlStatementBytes(int index); /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. * </pre> * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> - * * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. * </pre> * * <code>.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;</code> - * * @return The encryptionConfig. */ com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig(); /** - * - * * <pre> * The KMS key used to encrypt the database to be created if the database * should be CMEK protected. @@ -188,51 +139,41 @@ public interface CreateCloudDatabaseActionOrBuilder com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return Whether the dialect field is set. */ boolean hasDialect(); /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return The dialect. */ java.lang.String getDialect(); /** - * - * * <pre> * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. * </pre> * * <code>optional string dialect = 6;</code> - * * @return The bytes for dialect. */ - com.google.protobuf.ByteString getDialectBytes(); + com.google.protobuf.ByteString + getDialectBytes(); /** * <code>optional bytes proto_descriptors = 7;</code> - * * @return Whether the protoDescriptors field is set. */ boolean hasProtoDescriptors(); /** * <code>optional bytes proto_descriptors = 7;</code> - * * @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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java index 612ae8e2bb1..094855d0386 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CreateCloudInstanceAction} */ -public final class CreateCloudInstanceAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -45,50 +27,46 @@ private CreateCloudInstanceAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ @java.lang.Override @@ -97,29 +75,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -128,18 +106,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -148,29 +122,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -179,18 +153,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_CONFIG_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object instanceConfigId_ = ""; /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @return The instanceConfigId. */ @java.lang.Override @@ -199,29 +169,29 @@ public java.lang.String getInstanceConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceConfigId_ = s; return s; } } /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @return The bytes for instanceConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceConfigId_ = b; return b; } else { @@ -232,14 +202,11 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { public static final int NODE_COUNT_FIELD_NUMBER = 4; private int nodeCount_ = 0; /** - * - * * <pre> * Number of nodes (processing_units should not be set or set to 0 if used). * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return Whether the nodeCount field is set. */ @java.lang.Override @@ -247,14 +214,11 @@ public boolean hasNodeCount() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Number of nodes (processing_units should not be set or set to 0 if used). * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return The nodeCount. */ @java.lang.Override @@ -265,14 +229,11 @@ public int getNodeCount() { public static final int PROCESSING_UNITS_FIELD_NUMBER = 6; private int processingUnits_ = 0; /** - * - * * <pre> * Number of processing units (node_count should be set to 0 if used). * </pre> * * <code>optional int32 processing_units = 6;</code> - * * @return Whether the processingUnits field is set. */ @java.lang.Override @@ -280,14 +241,11 @@ public boolean hasProcessingUnits() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Number of processing units (node_count should be set to 0 if used). * </pre> * * <code>optional int32 processing_units = 6;</code> - * * @return The processingUnits. */ @java.lang.Override @@ -298,17 +256,13 @@ public int getProcessingUnits() { public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 7; private com.google.spanner.admin.instance.v1.AutoscalingConfig autoscalingConfig_; /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> - * + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> * @return Whether the autoscalingConfig field is set. */ @java.lang.Override @@ -316,74 +270,60 @@ public boolean hasAutoscalingConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> - * + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> * @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_; + return autoscalingConfig_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ @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 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<java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( - com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .<java.lang.String, java.lang.String>newDefaultInstance( + com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * labels. * </pre> @@ -391,21 +331,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * labels. * </pre> @@ -417,8 +356,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * labels. * </pre> @@ -426,19 +363,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + 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<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * labels. * </pre> @@ -446,11 +381,11 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -458,7 +393,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -470,7 +404,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -483,8 +418,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(4, nodeCount_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(6, processingUnits_); } @@ -510,23 +449,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceConfigId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, nodeCount_); - } - for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, nodeCount_); + } + for (java.util.Map.Entry<java.lang.String, java.lang.String> entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, processingUnits_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, processingUnits_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAutoscalingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAutoscalingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -536,30 +478,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.CreateCloudInstanceAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.CreateCloudInstanceAction other = - (com.google.spanner.executor.v1.CreateCloudInstanceAction) obj; + com.google.spanner.executor.v1.CreateCloudInstanceAction other = (com.google.spanner.executor.v1.CreateCloudInstanceAction) obj; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceConfigId().equals(other.getInstanceConfigId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getInstanceConfigId() + .equals(other.getInstanceConfigId())) return false; if (hasNodeCount() != other.hasNodeCount()) return false; if (hasNodeCount()) { - if (getNodeCount() != other.getNodeCount()) return false; + if (getNodeCount() + != other.getNodeCount()) return false; } if (hasProcessingUnits() != other.hasProcessingUnits()) return false; if (hasProcessingUnits()) { - if (getProcessingUnits() != other.getProcessingUnits()) return false; + if (getProcessingUnits() + != other.getProcessingUnits()) return false; } if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false; if (hasAutoscalingConfig()) { - if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false; + if (!getAutoscalingConfig() + .equals(other.getAutoscalingConfig())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -599,147 +547,141 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateCloudInstanceAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.CreateCloudInstanceAction 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.CreateCloudInstanceAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.CreateCloudInstanceAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.CreateCloudInstanceAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.CreateCloudInstanceAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that creates a Cloud Spanner instance. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CreateCloudInstanceAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CreateCloudInstanceAction) com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor; + 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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 + 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); + com.google.spanner.executor.v1.CreateCloudInstanceAction.class, com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder.class); } // Construct using com.google.spanner.executor.v1.CreateCloudInstanceAction.newBuilder() @@ -747,17 +689,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAutoscalingConfigFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -777,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor; } @java.lang.Override @@ -798,11 +740,8 @@ public com.google.spanner.executor.v1.CreateCloudInstanceAction build() { @java.lang.Override public com.google.spanner.executor.v1.CreateCloudInstanceAction buildPartial() { - com.google.spanner.executor.v1.CreateCloudInstanceAction result = - new com.google.spanner.executor.v1.CreateCloudInstanceAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.CreateCloudInstanceAction result = new com.google.spanner.executor.v1.CreateCloudInstanceAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -828,10 +767,9 @@ private void buildPartial0(com.google.spanner.executor.v1.CreateCloudInstanceAct to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.autoscalingConfig_ = - autoscalingConfigBuilder_ == null - ? autoscalingConfig_ - : autoscalingConfigBuilder_.build(); + result.autoscalingConfig_ = autoscalingConfigBuilder_ == null + ? autoscalingConfig_ + : autoscalingConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { @@ -845,39 +783,38 @@ private void buildPartial0(com.google.spanner.executor.v1.CreateCloudInstanceAct public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CreateCloudInstanceAction) { - return mergeFrom((com.google.spanner.executor.v1.CreateCloudInstanceAction) other); + return mergeFrom((com.google.spanner.executor.v1.CreateCloudInstanceAction)other); } else { super.mergeFrom(other); return this; @@ -885,8 +822,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CreateCloudInstanceAction other) { - if (other == com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; bitField0_ |= 0x00000001; @@ -911,7 +847,8 @@ public Builder mergeFrom(com.google.spanner.executor.v1.CreateCloudInstanceActio if (other.hasAutoscalingConfig()) { mergeAutoscalingConfig(other.getAutoscalingConfig()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000040; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -939,62 +876,53 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - instanceConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - nodeCount_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 48: - { - processingUnits_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - input.readMessage( - getAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + instanceConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + nodeCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 48: { + processingUnits_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + input.readMessage( + getAutoscalingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1004,25 +932,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -1031,21 +956,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -1053,35 +977,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -1091,21 +1008,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -1115,20 +1028,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1137,21 +1048,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1159,35 +1069,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -1197,21 +1100,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -1221,20 +1120,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceConfigId_ = ""; /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceConfigId_ = s; return s; @@ -1243,21 +1140,20 @@ public java.lang.String getInstanceConfigId() { } } /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @return The bytes for instanceConfigId. */ - public com.google.protobuf.ByteString getInstanceConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceConfigId_ = b; return b; } else { @@ -1265,35 +1161,28 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { } } /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @param value The instanceConfigId to set. * @return This builder for chaining. */ - public Builder setInstanceConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceConfigId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearInstanceConfigId() { @@ -1303,21 +1192,17 @@ public Builder clearInstanceConfigId() { return this; } /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @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(); - } + public Builder setInstanceConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceConfigId_ = value; bitField0_ |= 0x00000004; @@ -1325,16 +1210,13 @@ public Builder setInstanceConfigIdBytes(com.google.protobuf.ByteString value) { return this; } - private int nodeCount_; + private int nodeCount_ ; /** - * - * * <pre> * Number of nodes (processing_units should not be set or set to 0 if used). * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return Whether the nodeCount field is set. */ @java.lang.Override @@ -1342,14 +1224,11 @@ public boolean hasNodeCount() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Number of nodes (processing_units should not be set or set to 0 if used). * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return The nodeCount. */ @java.lang.Override @@ -1357,14 +1236,11 @@ public int getNodeCount() { return nodeCount_; } /** - * - * * <pre> * Number of nodes (processing_units should not be set or set to 0 if used). * </pre> * * <code>optional int32 node_count = 4;</code> - * * @param value The nodeCount to set. * @return This builder for chaining. */ @@ -1376,14 +1252,11 @@ public Builder setNodeCount(int value) { return this; } /** - * - * * <pre> * Number of nodes (processing_units should not be set or set to 0 if used). * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return This builder for chaining. */ public Builder clearNodeCount() { @@ -1393,16 +1266,13 @@ public Builder clearNodeCount() { return this; } - private int processingUnits_; + private int processingUnits_ ; /** - * - * * <pre> * Number of processing units (node_count should be set to 0 if used). * </pre> * * <code>optional int32 processing_units = 6;</code> - * * @return Whether the processingUnits field is set. */ @java.lang.Override @@ -1410,14 +1280,11 @@ public boolean hasProcessingUnits() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * Number of processing units (node_count should be set to 0 if used). * </pre> * * <code>optional int32 processing_units = 6;</code> - * * @return The processingUnits. */ @java.lang.Override @@ -1425,14 +1292,11 @@ public int getProcessingUnits() { return processingUnits_; } /** - * - * * <pre> * Number of processing units (node_count should be set to 0 if used). * </pre> * * <code>optional int32 processing_units = 6;</code> - * * @param value The processingUnits to set. * @return This builder for chaining. */ @@ -1444,14 +1308,11 @@ public Builder setProcessingUnits(int value) { return this; } /** - * - * * <pre> * Number of processing units (node_count should be set to 0 if used). * </pre> * * <code>optional int32 processing_units = 6;</code> - * * @return This builder for chaining. */ public Builder clearProcessingUnits() { @@ -1463,64 +1324,47 @@ public Builder clearProcessingUnits() { 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_; + com.google.spanner.admin.instance.v1.AutoscalingConfig, com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder, com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder> autoscalingConfigBuilder_; /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> - * + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> * @return Whether the autoscalingConfig field is set. */ public boolean hasAutoscalingConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> - * + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> * @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_; + return autoscalingConfig_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } else { return autoscalingConfigBuilder_.getMessage(); } } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ - public Builder setAutoscalingConfig( - com.google.spanner.admin.instance.v1.AutoscalingConfig value) { + public Builder setAutoscalingConfig(com.google.spanner.admin.instance.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1534,16 +1378,13 @@ public Builder setAutoscalingConfig( return this; } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ public Builder setAutoscalingConfig( com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder builderForValue) { @@ -1557,24 +1398,19 @@ public Builder setAutoscalingConfig( return this; } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ - public Builder mergeAutoscalingConfig( - com.google.spanner.admin.instance.v1.AutoscalingConfig value) { + 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()) { + if (((bitField0_ & 0x00000020) != 0) && + autoscalingConfig_ != null && + autoscalingConfig_ != com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()) { getAutoscalingConfigBuilder().mergeFrom(value); } else { autoscalingConfig_ = value; @@ -1587,16 +1423,13 @@ public Builder mergeAutoscalingConfig( return this; } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ public Builder clearAutoscalingConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1609,87 +1442,74 @@ public Builder clearAutoscalingConfig() { return this; } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ - public com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder - getAutoscalingConfigBuilder() { + public com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAutoscalingConfigFieldBuilder().getBuilder(); } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ - public com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder - getAutoscalingConfigOrBuilder() { + 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_; + return autoscalingConfig_ == null ? + com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } } /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ 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> + 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()); + 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<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1698,13 +1518,10 @@ private com.google.protobuf.MapField<java.lang.String, java.lang.String> interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * labels. * </pre> @@ -1712,21 +1529,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * labels. * </pre> @@ -1738,8 +1554,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * labels. * </pre> @@ -1747,19 +1561,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + 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<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * labels. * </pre> @@ -1767,81 +1579,79 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * * <pre> * labels. * </pre> * * <code>map<string, string> labels = 5;</code> */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + 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. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { + public java.util.Map<java.lang.String, java.lang.String> + getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** - * - * * <pre> * labels. * </pre> * * <code>map<string, string> labels = 5;</code> */ - 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); + 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; } /** - * - * * <pre> * labels. * </pre> * * <code>map<string, string> labels = 5;</code> */ - public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map<java.lang.String, java.lang.String> values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1851,12 +1661,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CreateCloudInstanceAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CreateCloudInstanceAction) private static final com.google.spanner.executor.v1.CreateCloudInstanceAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CreateCloudInstanceAction(); } @@ -1865,27 +1675,27 @@ public static com.google.spanner.executor.v1.CreateCloudInstanceAction getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateCloudInstanceAction> PARSER = - new com.google.protobuf.AbstractParser<CreateCloudInstanceAction>() { - @java.lang.Override - public CreateCloudInstanceAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateCloudInstanceAction> + PARSER = new com.google.protobuf.AbstractParser<CreateCloudInstanceAction>() { + @java.lang.Override + public CreateCloudInstanceAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateCloudInstanceAction> parser() { return PARSER; @@ -1900,4 +1710,6 @@ public com.google.protobuf.Parser<CreateCloudInstanceAction> getParserForType() public com.google.spanner.executor.v1.CreateCloudInstanceAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java index ea178d0fc75..6bb28aa6976 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceActionOrBuilder.java @@ -1,200 +1,144 @@ -/* - * 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 interface CreateCloudInstanceActionOrBuilder - extends +public interface CreateCloudInstanceActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CreateCloudInstanceAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @return The instanceConfigId. */ java.lang.String getInstanceConfigId(); /** - * - * * <pre> * Instance config ID, e.g. "test-config". * </pre> * * <code>string instance_config_id = 3;</code> - * * @return The bytes for instanceConfigId. */ - com.google.protobuf.ByteString getInstanceConfigIdBytes(); + com.google.protobuf.ByteString + getInstanceConfigIdBytes(); /** - * - * * <pre> * Number of nodes (processing_units should not be set or set to 0 if used). * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return Whether the nodeCount field is set. */ boolean hasNodeCount(); /** - * - * * <pre> * Number of nodes (processing_units should not be set or set to 0 if used). * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return The nodeCount. */ int getNodeCount(); /** - * - * * <pre> * Number of processing units (node_count should be set to 0 if used). * </pre> * * <code>optional int32 processing_units = 6;</code> - * * @return Whether the processingUnits field is set. */ boolean hasProcessingUnits(); /** - * - * * <pre> * Number of processing units (node_count should be set to 0 if used). * </pre> * * <code>optional int32 processing_units = 6;</code> - * * @return The processingUnits. */ int getProcessingUnits(); /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> - * + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> * @return Whether the autoscalingConfig field is set. */ boolean hasAutoscalingConfig(); /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> - * + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> * @return The autoscalingConfig. */ com.google.spanner.admin.instance.v1.AutoscalingConfig getAutoscalingConfig(); /** - * - * * <pre> * 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). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder(); /** - * - * * <pre> * labels. * </pre> @@ -203,31 +147,30 @@ public interface CreateCloudInstanceActionOrBuilder */ int getLabelsCount(); /** - * - * * <pre> * labels. * </pre> * * <code>map<string, string> labels = 5;</code> */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.String> getLabels(); + java.util.Map<java.lang.String, java.lang.String> + getLabels(); /** - * - * * <pre> * labels. * </pre> * * <code>map<string, string> labels = 5;</code> */ - java.util.Map<java.lang.String, java.lang.String> getLabelsMap(); + java.util.Map<java.lang.String, java.lang.String> + getLabelsMap(); /** - * - * * <pre> * labels. * </pre> @@ -235,18 +178,17 @@ public interface CreateCloudInstanceActionOrBuilder * <code>map<string, string> labels = 5;</code> */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * * <pre> * labels. * </pre> * * <code>map<string, string> labels = 5;</code> */ - java.lang.String getLabelsOrThrow(java.lang.String key); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java similarity index 71% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java index 2c38021fcd4..3f4c04a7127 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java @@ -1,43 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that creates a user instance config. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CreateUserInstanceConfigAction} */ -public final class CreateUserInstanceConfigAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +private static final long serialVersionUID = 0L; // Use CreateUserInstanceConfigAction.newBuilder() to construct. - private CreateUserInstanceConfigAction( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private CreateUserInstanceConfigAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private CreateUserInstanceConfigAction() { userConfigId_ = ""; projectId_ = ""; @@ -47,38 +28,33 @@ private CreateUserInstanceConfigAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The userConfigId. */ @java.lang.Override @@ -87,29 +63,29 @@ public java.lang.String getUserConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userConfigId_ = s; return s; } } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The bytes for userConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userConfigId_ = b; return b; } else { @@ -118,18 +94,14 @@ public com.google.protobuf.ByteString getUserConfigIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -138,29 +110,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -169,18 +141,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int BASE_CONFIG_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object baseConfigId_ = ""; /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @return The baseConfigId. */ @java.lang.Override @@ -189,29 +157,29 @@ public java.lang.String getBaseConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseConfigId_ = s; return s; } } /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @return The bytes for baseConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getBaseConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseConfigId_ = b; return b; } else { @@ -220,12 +188,9 @@ public com.google.protobuf.ByteString getBaseConfigIdBytes() { } public static final int REPLICAS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> replicas_; /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -237,8 +202,6 @@ public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getRepli return replicas_; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -246,13 +209,11 @@ public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getRepli * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getReplicasOrBuilderList() { return replicas_; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -264,8 +225,6 @@ public int getReplicasCount() { return replicas_.size(); } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -277,8 +236,6 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { return replicas_.get(index); } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -286,12 +243,12 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ @java.lang.Override - public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(int index) { + 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; @@ -303,7 +260,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -335,7 +293,8 @@ public int getSerializedSize() { 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 += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, replicas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -345,18 +304,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -384,136 +346,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.CreateUserInstanceConfigAction prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that creates a user instance config. * </pre> * * Protobuf type {@code google.spanner.executor.v1.CreateUserInstanceConfigAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.CreateUserInstanceConfigAction) com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.CreateUserInstanceConfigAction.class, com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder.class); } // Construct using com.google.spanner.executor.v1.CreateUserInstanceConfigAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -532,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.CreateUserInstanceConfigAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.CreateUserInstanceConfigAction getDefaultInstanceForType() { return com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance(); } @@ -554,18 +510,14 @@ public com.google.spanner.executor.v1.CreateUserInstanceConfigAction build() { @java.lang.Override public com.google.spanner.executor.v1.CreateUserInstanceConfigAction buildPartial() { - com.google.spanner.executor.v1.CreateUserInstanceConfigAction result = - new com.google.spanner.executor.v1.CreateUserInstanceConfigAction(this); + com.google.spanner.executor.v1.CreateUserInstanceConfigAction result = new com.google.spanner.executor.v1.CreateUserInstanceConfigAction(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.CreateUserInstanceConfigAction result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.CreateUserInstanceConfigAction result) { if (replicasBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { replicas_ = java.util.Collections.unmodifiableList(replicas_); @@ -577,8 +529,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.spanner.executor.v1.CreateUserInstanceConfigAction result) { + private void buildPartial0(com.google.spanner.executor.v1.CreateUserInstanceConfigAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.userConfigId_ = userConfigId_; @@ -595,39 +546,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.CreateUserInstanceConfigAction) { - return mergeFrom((com.google.spanner.executor.v1.CreateUserInstanceConfigAction) other); + return mergeFrom((com.google.spanner.executor.v1.CreateUserInstanceConfigAction)other); } else { super.mergeFrom(other); return this; @@ -635,9 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.CreateUserInstanceConfigAction other) { - if (other - == com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance()) return this; if (!other.getUserConfigId().isEmpty()) { userConfigId_ = other.userConfigId_; bitField0_ |= 0x00000001; @@ -671,10 +619,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.CreateUserInstanceConfig replicasBuilder_ = null; replicas_ = other.replicas_; bitField0_ = (bitField0_ & ~0x00000008); - replicasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReplicasFieldBuilder() - : null; + replicasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReplicasFieldBuilder() : null; } else { replicasBuilder_.addAllMessages(other.replicas_); } @@ -706,45 +653,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - userConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - baseConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.spanner.admin.instance.v1.ReplicaInfo m = - input.readMessage( - com.google.spanner.admin.instance.v1.ReplicaInfo.parser(), - extensionRegistry); - if (replicasBuilder_ == null) { - ensureReplicasIsMutable(); - replicas_.add(m); - } else { - replicasBuilder_.addMessage(m); - } - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + userConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + baseConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.spanner.admin.instance.v1.ReplicaInfo m = + input.readMessage( + com.google.spanner.admin.instance.v1.ReplicaInfo.parser(), + extensionRegistry); + if (replicasBuilder_ == null) { + ensureReplicasIsMutable(); + replicas_.add(m); + } else { + replicasBuilder_.addMessage(m); + } + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -754,25 +696,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object userConfigId_ = ""; /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userConfigId_ = s; return s; @@ -781,21 +720,20 @@ public java.lang.String getUserConfigId() { } } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The bytes for userConfigId. */ - public com.google.protobuf.ByteString getUserConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userConfigId_ = b; return b; } else { @@ -803,35 +741,28 @@ public com.google.protobuf.ByteString getUserConfigIdBytes() { } } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @param value The userConfigId to set. * @return This builder for chaining. */ - public Builder setUserConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userConfigId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearUserConfigId() { @@ -841,21 +772,17 @@ public Builder clearUserConfigId() { return this; } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @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(); - } + public Builder setUserConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userConfigId_ = value; bitField0_ |= 0x00000001; @@ -865,20 +792,18 @@ public Builder setUserConfigIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -887,21 +812,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -909,35 +833,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -947,21 +864,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -971,20 +884,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object baseConfigId_ = ""; /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseConfigId_ = s; return s; @@ -993,21 +904,20 @@ public java.lang.String getBaseConfigId() { } } /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @return The bytes for baseConfigId. */ - public com.google.protobuf.ByteString getBaseConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseConfigId_ = b; return b; } else { @@ -1015,35 +925,28 @@ public com.google.protobuf.ByteString getBaseConfigIdBytes() { } } /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @param value The baseConfigId to set. * @return This builder for chaining. */ - public Builder setBaseConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBaseConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } baseConfigId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearBaseConfigId() { @@ -1053,21 +956,17 @@ public Builder clearBaseConfigId() { return this; } /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @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(); - } + public Builder setBaseConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); baseConfigId_ = value; bitField0_ |= 0x00000004; @@ -1076,25 +975,18 @@ public Builder setBaseConfigIdBytes(com.google.protobuf.ByteString value) { } private java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> replicas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReplicasIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - replicas_ = - new java.util.ArrayList<com.google.spanner.admin.instance.v1.ReplicaInfo>(replicas_); + replicas_ = new java.util.ArrayList<com.google.spanner.admin.instance.v1.ReplicaInfo>(replicas_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - replicasBuilder_; + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> replicasBuilder_; /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1109,8 +1001,6 @@ public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getRepli } } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1125,8 +1015,6 @@ public int getReplicasCount() { } } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1141,15 +1029,14 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { } } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { + public Builder setReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1163,8 +1050,6 @@ public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.Repli return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1183,8 +1068,6 @@ public Builder setReplicas( return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1205,15 +1088,14 @@ public Builder addReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo valu return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - public Builder addReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { + public Builder addReplicas( + int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1227,8 +1109,6 @@ public Builder addReplicas(int index, com.google.spanner.admin.instance.v1.Repli return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1247,8 +1127,6 @@ public Builder addReplicas( return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1267,8 +1145,6 @@ public Builder addReplicas( return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1279,7 +1155,8 @@ 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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, replicas_); onChanged(); } else { replicasBuilder_.addAllMessages(values); @@ -1287,8 +1164,6 @@ public Builder addAllReplicas( return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1306,8 +1181,6 @@ public Builder clearReplicas() { return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1325,20 +1198,17 @@ public Builder removeReplicas(int index) { return this; } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuilder(int index) { + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuilder( + int index) { return getReplicasFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1348,22 +1218,19 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuild public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder( int index) { if (replicasBuilder_ == null) { - return replicas_.get(index); - } else { + return replicas_.get(index); } else { return replicasBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> - getReplicasOrBuilderList() { + public java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + getReplicasOrBuilderList() { if (replicasBuilder_ != null) { return replicasBuilder_.getMessageOrBuilderList(); } else { @@ -1371,8 +1238,6 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu } } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -1380,55 +1245,49 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder() { - return getReplicasFieldBuilder() - .addBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + return getReplicasFieldBuilder().addBuilder( + com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder(int index) { - return getReplicasFieldBuilder() - .addBuilder(index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); + public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder( + int index) { + return getReplicasFieldBuilder().addBuilder( + index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance()); } /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo.Builder> - getReplicasBuilderList() { + public java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo.Builder> + getReplicasBuilderList() { return getReplicasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getReplicasFieldBuilder() { if (replicasBuilder_ == null) { - replicasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.admin.instance.v1.ReplicaInfo, - com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( - replicas_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + replicasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.instance.v1.ReplicaInfo, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder, com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>( + replicas_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); replicas_ = null; } return replicasBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1438,13 +1297,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CreateUserInstanceConfigAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CreateUserInstanceConfigAction) - private static final com.google.spanner.executor.v1.CreateUserInstanceConfigAction - DEFAULT_INSTANCE; - + private static final com.google.spanner.executor.v1.CreateUserInstanceConfigAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CreateUserInstanceConfigAction(); } @@ -1453,27 +1311,27 @@ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<CreateUserInstanceConfigAction> PARSER = - new com.google.protobuf.AbstractParser<CreateUserInstanceConfigAction>() { - @java.lang.Override - public CreateUserInstanceConfigAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<CreateUserInstanceConfigAction> + PARSER = new com.google.protobuf.AbstractParser<CreateUserInstanceConfigAction>() { + @java.lang.Override + public CreateUserInstanceConfigAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<CreateUserInstanceConfigAction> parser() { return PARSER; @@ -1488,4 +1346,6 @@ public com.google.protobuf.Parser<CreateUserInstanceConfigAction> getParserForTy public com.google.spanner.executor.v1.CreateUserInstanceConfigAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java index c439a37c934..ed77b923d1e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigActionOrBuilder.java @@ -1,116 +1,82 @@ -/* - * 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 interface CreateUserInstanceConfigActionOrBuilder - extends +public interface CreateUserInstanceConfigActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.CreateUserInstanceConfigAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The userConfigId. */ java.lang.String getUserConfigId(); /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The bytes for userConfigId. */ - com.google.protobuf.ByteString getUserConfigIdBytes(); + com.google.protobuf.ByteString + getUserConfigIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @return The baseConfigId. */ java.lang.String getBaseConfigId(); /** - * - * * <pre> * Base config ID, e.g. "test-config". * </pre> * * <code>string base_config_id = 3;</code> - * * @return The bytes for baseConfigId. */ - com.google.protobuf.ByteString getBaseConfigIdBytes(); + com.google.protobuf.ByteString + getBaseConfigIdBytes(); /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> getReplicasList(); + java.util.List<com.google.spanner.admin.instance.v1.ReplicaInfo> + getReplicasList(); /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -119,8 +85,6 @@ public interface CreateUserInstanceConfigActionOrBuilder */ com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index); /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> @@ -129,24 +93,21 @@ public interface CreateUserInstanceConfigActionOrBuilder */ int getReplicasCount(); /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> + java.util.List<? extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder> getReplicasOrBuilderList(); /** - * - * * <pre> * Replicas that should be included in the user config. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;</code> */ - com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(int index); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java index dee22a9a6ad..b381459797b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * ChangeStream data change record. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord} */ -public final class DataChangeRecord extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -50,125 +32,104 @@ private DataChangeRecord() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + com.google.spanner.executor.v1.DataChangeRecord.class, com.google.spanner.executor.v1.DataChangeRecord.Builder.class); } - public interface ColumnTypeOrBuilder - extends + public interface ColumnTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DataChangeRecord.ColumnType) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @return The type. */ java.lang.String getType(); /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * * <pre> * Whether the column is a primary key column. * </pre> * * <code>bool is_primary_key = 3;</code> - * * @return The isPrimaryKey. */ boolean getIsPrimaryKey(); /** - * - * * <pre> * The position of the column as defined in the schema. * </pre> * * <code>int64 ordinal_position = 4;</code> - * * @return The ordinalPosition. */ long getOrdinalPosition(); } /** - * - * * <pre> * Column types. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord.ColumnType} */ - public static final class ColumnType extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + 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_ = ""; @@ -176,38 +137,33 @@ private ColumnType() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The name. */ @java.lang.Override @@ -216,29 +172,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -247,18 +203,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @return The type. */ @java.lang.Override @@ -267,29 +219,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -300,14 +252,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int IS_PRIMARY_KEY_FIELD_NUMBER = 3; private boolean isPrimaryKey_ = false; /** - * - * * <pre> * Whether the column is a primary key column. * </pre> * * <code>bool is_primary_key = 3;</code> - * * @return The isPrimaryKey. */ @java.lang.Override @@ -318,14 +267,11 @@ public boolean getIsPrimaryKey() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 4; private long ordinalPosition_ = 0L; /** - * - * * <pre> * The position of the column as defined in the schema. * </pre> * * <code>int64 ordinal_position = 4;</code> - * * @return The ordinalPosition. */ @java.lang.Override @@ -334,7 +280,6 @@ public long getOrdinalPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -346,7 +291,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -375,10 +321,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } if (isPrimaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isPrimaryKey_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isPrimaryKey_); } if (ordinalPosition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -388,18 +336,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -416,103 +367,100 @@ public int 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 = (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 = (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 { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -522,41 +470,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * Column types. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord.ColumnType} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.DataChangeRecord.ColumnType) com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder { - 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; + 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 + 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); + com.google.spanner.executor.v1.DataChangeRecord.ColumnType.class, com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder.class); } // Construct using com.google.spanner.executor.v1.DataChangeRecord.ColumnType.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -569,14 +515,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.DataChangeRecord.ColumnType - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.DataChangeRecord.ColumnType getDefaultInstanceForType() { return com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance(); } @@ -591,17 +536,13 @@ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType build() { @java.lang.Override public com.google.spanner.executor.v1.DataChangeRecord.ColumnType buildPartial() { - com.google.spanner.executor.v1.DataChangeRecord.ColumnType result = - new com.google.spanner.executor.v1.DataChangeRecord.ColumnType(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.DataChangeRecord.ColumnType result = new com.google.spanner.executor.v1.DataChangeRecord.ColumnType(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.DataChangeRecord.ColumnType result) { + private void buildPartial0(com.google.spanner.executor.v1.DataChangeRecord.ColumnType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -621,41 +562,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.DataChangeRecord.ColumnType) { - return mergeFrom((com.google.spanner.executor.v1.DataChangeRecord.ColumnType) other); + return mergeFrom((com.google.spanner.executor.v1.DataChangeRecord.ColumnType)other); } else { super.mergeFrom(other); return this; @@ -663,9 +601,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.DataChangeRecord.ColumnType other) { - if (other - == com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -708,37 +644,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - isPrimaryKey_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ordinalPosition_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + isPrimaryKey_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ordinalPosition_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -748,25 +679,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -775,21 +703,20 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -797,35 +724,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -835,21 +755,17 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Column name. * </pre> * * <code>string name = 1;</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -859,20 +775,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -881,21 +795,20 @@ public java.lang.String getType() { } } /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -903,35 +816,28 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @return This builder for chaining. */ public Builder clearType() { @@ -941,21 +847,17 @@ public Builder clearType() { return this; } /** - * - * * <pre> * Column type in JSON. * </pre> * * <code>string type = 2;</code> - * * @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(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000002; @@ -963,16 +865,13 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { return this; } - private boolean isPrimaryKey_; + private boolean isPrimaryKey_ ; /** - * - * * <pre> * Whether the column is a primary key column. * </pre> * * <code>bool is_primary_key = 3;</code> - * * @return The isPrimaryKey. */ @java.lang.Override @@ -980,14 +879,11 @@ public boolean getIsPrimaryKey() { return isPrimaryKey_; } /** - * - * * <pre> * Whether the column is a primary key column. * </pre> * * <code>bool is_primary_key = 3;</code> - * * @param value The isPrimaryKey to set. * @return This builder for chaining. */ @@ -999,14 +895,11 @@ public Builder setIsPrimaryKey(boolean value) { return this; } /** - * - * * <pre> * Whether the column is a primary key column. * </pre> * * <code>bool is_primary_key = 3;</code> - * * @return This builder for chaining. */ public Builder clearIsPrimaryKey() { @@ -1016,16 +909,13 @@ public Builder clearIsPrimaryKey() { return this; } - private long ordinalPosition_; + private long ordinalPosition_ ; /** - * - * * <pre> * The position of the column as defined in the schema. * </pre> * * <code>int64 ordinal_position = 4;</code> - * * @return The ordinalPosition. */ @java.lang.Override @@ -1033,14 +923,11 @@ public long getOrdinalPosition() { return ordinalPosition_; } /** - * - * * <pre> * The position of the column as defined in the schema. * </pre> * * <code>int64 ordinal_position = 4;</code> - * * @param value The ordinalPosition to set. * @return This builder for chaining. */ @@ -1052,14 +939,11 @@ public Builder setOrdinalPosition(long value) { return this; } /** - * - * * <pre> * The position of the column as defined in the schema. * </pre> * * <code>int64 ordinal_position = 4;</code> - * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1068,7 +952,6 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1081,13 +964,12 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.spanner.executor.v1.DataChangeRecord.ColumnType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DataChangeRecord.ColumnType(); } @@ -1096,28 +978,27 @@ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ColumnType> PARSER = - new com.google.protobuf.AbstractParser<ColumnType>() { - @java.lang.Override - public ColumnType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ColumnType> + PARSER = new com.google.protobuf.AbstractParser<ColumnType>() { + @java.lang.Override + public ColumnType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ColumnType> parser() { return PARSER; @@ -1132,111 +1013,93 @@ public com.google.protobuf.Parser<ColumnType> getParserForType() { public com.google.spanner.executor.v1.DataChangeRecord.ColumnType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ModOrBuilder - extends + public interface ModOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DataChangeRecord.Mod) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @return The keys. */ java.lang.String getKeys(); /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @return The bytes for keys. */ - com.google.protobuf.ByteString getKeysBytes(); + com.google.protobuf.ByteString + getKeysBytes(); /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @return The newValues. */ java.lang.String getNewValues(); /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @return The bytes for newValues. */ - com.google.protobuf.ByteString getNewValuesBytes(); + com.google.protobuf.ByteString + getNewValuesBytes(); /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @return The oldValues. */ java.lang.String getOldValues(); /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @return The bytes for oldValues. */ - com.google.protobuf.ByteString getOldValuesBytes(); + com.google.protobuf.ByteString + getOldValuesBytes(); } /** - * - * * <pre> * Describes the changes that were made. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord.Mod} */ - public static final class Mod extends com.google.protobuf.GeneratedMessageV3 - implements + 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; + 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_ = ""; @@ -1245,38 +1108,33 @@ private Mod() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @return The keys. */ @java.lang.Override @@ -1285,29 +1143,29 @@ public java.lang.String getKeys() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keys_ = s; return s; } } /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @return The bytes for keys. */ @java.lang.Override - public com.google.protobuf.ByteString getKeysBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keys_ = b; return b; } else { @@ -1316,19 +1174,15 @@ public com.google.protobuf.ByteString getKeysBytes() { } public static final int NEW_VALUES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object newValues_ = ""; /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @return The newValues. */ @java.lang.Override @@ -1337,30 +1191,30 @@ public java.lang.String getNewValues() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newValues_ = s; return s; } } /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @return The bytes for newValues. */ @java.lang.Override - public com.google.protobuf.ByteString getNewValuesBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); newValues_ = b; return b; } else { @@ -1369,19 +1223,15 @@ public com.google.protobuf.ByteString getNewValuesBytes() { } public static final int OLD_VALUES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object oldValues_ = ""; /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @return The oldValues. */ @java.lang.Override @@ -1390,30 +1240,30 @@ public java.lang.String getOldValues() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oldValues_ = s; return s; } } /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @return The bytes for oldValues. */ @java.lang.Override - public com.google.protobuf.ByteString getOldValuesBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); oldValues_ = b; return b; } else { @@ -1422,7 +1272,6 @@ public com.google.protobuf.ByteString getOldValuesBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1434,7 +1283,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -1470,17 +1320,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -1504,94 +1356,89 @@ public int hashCode() { } public static com.google.spanner.executor.v1.DataChangeRecord.Mod parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1601,41 +1448,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * Describes the changes that were made. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord.Mod} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.DataChangeRecord.Mod) com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder { - 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; + 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 + 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); + com.google.spanner.executor.v1.DataChangeRecord.Mod.class, com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder.class); } // Construct using com.google.spanner.executor.v1.DataChangeRecord.Mod.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1647,9 +1492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_descriptor; } @java.lang.Override @@ -1668,11 +1513,8 @@ public com.google.spanner.executor.v1.DataChangeRecord.Mod build() { @java.lang.Override public com.google.spanner.executor.v1.DataChangeRecord.Mod buildPartial() { - com.google.spanner.executor.v1.DataChangeRecord.Mod result = - new com.google.spanner.executor.v1.DataChangeRecord.Mod(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.DataChangeRecord.Mod result = new com.google.spanner.executor.v1.DataChangeRecord.Mod(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1694,41 +1536,38 @@ private void buildPartial0(com.google.spanner.executor.v1.DataChangeRecord.Mod r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.DataChangeRecord.Mod) { - return mergeFrom((com.google.spanner.executor.v1.DataChangeRecord.Mod) other); + return mergeFrom((com.google.spanner.executor.v1.DataChangeRecord.Mod)other); } else { super.mergeFrom(other); return this; @@ -1736,8 +1575,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.DataChangeRecord.Mod other) { - if (other == com.google.spanner.executor.v1.DataChangeRecord.Mod.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.DataChangeRecord.Mod.getDefaultInstance()) return this; if (!other.getKeys().isEmpty()) { keys_ = other.keys_; bitField0_ |= 0x00000001; @@ -1779,31 +1617,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - keys_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - newValues_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - oldValues_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + keys_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + newValues_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + oldValues_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1813,25 +1647,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object keys_ = ""; /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keys_ = s; return s; @@ -1840,21 +1671,20 @@ public java.lang.String getKeys() { } } /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @return The bytes for keys. */ - public com.google.protobuf.ByteString getKeysBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keys_ = b; return b; } else { @@ -1862,35 +1692,28 @@ public com.google.protobuf.ByteString getKeysBytes() { } } /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @param value The keys to set. * @return This builder for chaining. */ - public Builder setKeys(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeys( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } keys_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @return This builder for chaining. */ public Builder clearKeys() { @@ -1900,21 +1723,17 @@ public Builder clearKeys() { return this; } /** - * - * * <pre> * The primary key values in JSON. * </pre> * * <code>string keys = 1;</code> - * * @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(); - } + public Builder setKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keys_ = value; bitField0_ |= 0x00000001; @@ -1924,21 +1743,19 @@ public Builder setKeysBytes(com.google.protobuf.ByteString value) { private java.lang.Object newValues_ = ""; /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newValues_ = s; return s; @@ -1947,22 +1764,21 @@ public java.lang.String getNewValues() { } } /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @return The bytes for newValues. */ - public com.google.protobuf.ByteString getNewValuesBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); newValues_ = b; return b; } else { @@ -1970,37 +1786,30 @@ public com.google.protobuf.ByteString getNewValuesBytes() { } } /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @param value The newValues to set. * @return This builder for chaining. */ - public Builder setNewValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNewValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } newValues_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @return This builder for chaining. */ public Builder clearNewValues() { @@ -2010,22 +1819,18 @@ public Builder clearNewValues() { return this; } /** - * - * * <pre> * The new values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string new_values = 2;</code> - * * @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(); - } + public Builder setNewValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); newValues_ = value; bitField0_ |= 0x00000002; @@ -2035,21 +1840,19 @@ public Builder setNewValuesBytes(com.google.protobuf.ByteString value) { private java.lang.Object oldValues_ = ""; /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oldValues_ = s; return s; @@ -2058,22 +1861,21 @@ public java.lang.String getOldValues() { } } /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @return The bytes for oldValues. */ - public com.google.protobuf.ByteString getOldValuesBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); oldValues_ = b; return b; } else { @@ -2081,37 +1883,30 @@ public com.google.protobuf.ByteString getOldValuesBytes() { } } /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @param value The oldValues to set. * @return This builder for chaining. */ - public Builder setOldValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOldValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } oldValues_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @return This builder for chaining. */ public Builder clearOldValues() { @@ -2121,29 +1916,24 @@ public Builder clearOldValues() { return this; } /** - * - * * <pre> * The old values of the changed columns in JSON. Only contain the non-key * columns. * </pre> * * <code>string old_values = 3;</code> - * * @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(); - } + 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) { @@ -2156,12 +1946,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -2170,28 +1960,27 @@ public static com.google.spanner.executor.v1.DataChangeRecord.Mod getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<Mod> PARSER = - new com.google.protobuf.AbstractParser<Mod>() { - @java.lang.Override - public Mod parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<Mod> + PARSER = new com.google.protobuf.AbstractParser<Mod>() { + @java.lang.Override + public Mod parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<Mod> parser() { return PARSER; @@ -2206,19 +1995,17 @@ public com.google.protobuf.Parser<Mod> getParserForType() { public com.google.spanner.executor.v1.DataChangeRecord.Mod getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int COMMIT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp commitTime_; /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> * * <code>.google.protobuf.Timestamp commit_time = 1;</code> - * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -2226,14 +2013,11 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> * * <code>.google.protobuf.Timestamp commit_time = 1;</code> - * * @return The commitTime. */ @java.lang.Override @@ -2241,8 +2025,6 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> @@ -2255,18 +2037,14 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { } public static final int RECORD_SEQUENCE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object recordSequence_ = ""; /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @return The recordSequence. */ @java.lang.Override @@ -2275,29 +2053,29 @@ public java.lang.String getRecordSequence() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordSequence_ = s; return s; } } /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @return The bytes for recordSequence. */ @java.lang.Override - public com.google.protobuf.ByteString getRecordSequenceBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recordSequence_ = b; return b; } else { @@ -2306,19 +2084,15 @@ public com.google.protobuf.ByteString getRecordSequenceBytes() { } public static final int TRANSACTION_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object transactionId_ = ""; /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @return The transactionId. */ @java.lang.Override @@ -2327,30 +2101,30 @@ public java.lang.String getTransactionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; } } /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @return The bytes for transactionId. */ @java.lang.Override - public com.google.protobuf.ByteString getTransactionIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -2361,15 +2135,12 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { public static final int IS_LAST_RECORD_FIELD_NUMBER = 4; private boolean isLastRecord_ = false; /** - * - * * <pre> * Indicates whether this is the last record for a transaction in the current * partition. * </pre> * * <code>bool is_last_record = 4;</code> - * * @return The isLastRecord. */ @java.lang.Override @@ -2378,18 +2149,14 @@ public boolean getIsLastRecord() { } public static final int TABLE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @return The table. */ @java.lang.Override @@ -2398,29 +2165,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -2429,12 +2196,9 @@ public com.google.protobuf.ByteString getTableBytes() { } public static final int COLUMN_TYPES_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> columnTypes_; /** - * - * * <pre> * Column types defined in the schema. * </pre> @@ -2442,13 +2206,10 @@ public com.google.protobuf.ByteString getTableBytes() { * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ @java.lang.Override - public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> - getColumnTypesList() { + public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> getColumnTypesList() { return columnTypes_; } /** - * - * * <pre> * Column types defined in the schema. * </pre> @@ -2456,14 +2217,11 @@ public com.google.protobuf.ByteString getTableBytes() { * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ @java.lang.Override - public java.util.List< - ? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> getColumnTypesOrBuilderList() { return columnTypes_; } /** - * - * * <pre> * Column types defined in the schema. * </pre> @@ -2475,8 +2233,6 @@ public int getColumnTypesCount() { return columnTypes_.size(); } /** - * - * * <pre> * Column types defined in the schema. * </pre> @@ -2488,8 +2244,6 @@ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType getColumnTypes return columnTypes_.get(index); } /** - * - * * <pre> * Column types defined in the schema. * </pre> @@ -2497,18 +2251,15 @@ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType getColumnTypes * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder - getColumnTypesOrBuilder(int index) { + 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<com.google.spanner.executor.v1.DataChangeRecord.Mod> mods_; /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -2520,8 +2271,6 @@ public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.Mod> getMo return mods_; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -2529,13 +2278,11 @@ public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.Mod> getMo * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> getModsOrBuilderList() { return mods_; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -2547,8 +2294,6 @@ public int getModsCount() { return mods_.size(); } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -2560,8 +2305,6 @@ public com.google.spanner.executor.v1.DataChangeRecord.Mod getMods(int index) { return mods_.get(index); } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -2569,23 +2312,20 @@ public com.google.spanner.executor.v1.DataChangeRecord.Mod getMods(int index) { * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBuilder(int index) { + 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_ = ""; /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @return The modType. */ @java.lang.Override @@ -2594,29 +2334,29 @@ public java.lang.String getModType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modType_ = s; return s; } } /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @return The bytes for modType. */ @java.lang.Override - public com.google.protobuf.ByteString getModTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modType_ = b; return b; } else { @@ -2625,18 +2365,14 @@ public com.google.protobuf.ByteString getModTypeBytes() { } public static final int VALUE_CAPTURE_TYPE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object valueCaptureType_ = ""; /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @return The valueCaptureType. */ @java.lang.Override @@ -2645,29 +2381,29 @@ public java.lang.String getValueCaptureType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); valueCaptureType_ = s; return s; } } /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @return The bytes for valueCaptureType. */ @java.lang.Override - public com.google.protobuf.ByteString getValueCaptureTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); valueCaptureType_ = b; return b; } else { @@ -2678,14 +2414,11 @@ public com.google.protobuf.ByteString getValueCaptureTypeBytes() { public static final int RECORD_COUNT_FIELD_NUMBER = 10; private long recordCount_ = 0L; /** - * - * * <pre> * Number of records in transactions. * </pre> * * <code>int64 record_count = 10;</code> - * * @return The recordCount. */ @java.lang.Override @@ -2696,14 +2429,11 @@ public long getRecordCount() { public static final int PARTITION_COUNT_FIELD_NUMBER = 11; private long partitionCount_ = 0L; /** - * - * * <pre> * Number of partitions in transactions. * </pre> * * <code>int64 partition_count = 11;</code> - * * @return The partitionCount. */ @java.lang.Override @@ -2712,18 +2442,14 @@ public long getPartitionCount() { } public static final int TRANSACTION_TAG_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object transactionTag_ = ""; /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @return The transactionTag. */ @java.lang.Override @@ -2732,29 +2458,29 @@ public java.lang.String getTransactionTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionTag_ = s; return s; } } /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @return The bytes for transactionTag. */ @java.lang.Override - public com.google.protobuf.ByteString getTransactionTagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionTag_ = b; return b; } else { @@ -2765,14 +2491,11 @@ public com.google.protobuf.ByteString getTransactionTagBytes() { public static final int IS_SYSTEM_TRANSACTION_FIELD_NUMBER = 13; private boolean isSystemTransaction_ = false; /** - * - * * <pre> * Whether the transaction is a system transactionn. * </pre> * * <code>bool is_system_transaction = 13;</code> - * * @return The isSystemTransaction. */ @java.lang.Override @@ -2781,7 +2504,6 @@ public boolean getIsSystemTransaction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2793,7 +2515,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (commitTime_ != null) { output.writeMessage(1, getCommitTime()); } @@ -2843,7 +2566,8 @@ public int getSerializedSize() { size = 0; if (commitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCommitTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recordSequence_); @@ -2852,16 +2576,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionId_); } if (isLastRecord_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isLastRecord_); + 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)); + 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)); + 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_); @@ -2870,16 +2597,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, valueCaptureType_); } if (recordCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, recordCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, recordCount_); } if (partitionCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, partitionCount_); + 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 += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, isSystemTransaction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2889,30 +2619,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -2933,7 +2675,8 @@ public int 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 = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsLastRecord()); hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); if (getColumnTypesCount() > 0) { @@ -2949,148 +2692,147 @@ public int 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 = (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 = (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 = (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) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * ChangeStream data change record. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.DataChangeRecord) com.google.spanner.executor.v1.DataChangeRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor; + 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 + 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); + com.google.spanner.executor.v1.DataChangeRecord.class, com.google.spanner.executor.v1.DataChangeRecord.Builder.class); } // Construct using com.google.spanner.executor.v1.DataChangeRecord.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3128,9 +2870,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor; } @java.lang.Override @@ -3149,18 +2891,14 @@ public com.google.spanner.executor.v1.DataChangeRecord build() { @java.lang.Override public com.google.spanner.executor.v1.DataChangeRecord buildPartial() { - com.google.spanner.executor.v1.DataChangeRecord result = - new com.google.spanner.executor.v1.DataChangeRecord(this); + com.google.spanner.executor.v1.DataChangeRecord result = new com.google.spanner.executor.v1.DataChangeRecord(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.DataChangeRecord result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.DataChangeRecord result) { if (columnTypesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { columnTypes_ = java.util.Collections.unmodifiableList(columnTypes_); @@ -3184,7 +2922,9 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.spanner.executor.v1.DataChangeRecord result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null + ? commitTime_ + : commitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.recordSequence_ = recordSequence_; @@ -3222,39 +2962,38 @@ private void buildPartial0(com.google.spanner.executor.v1.DataChangeRecord resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.DataChangeRecord) { - return mergeFrom((com.google.spanner.executor.v1.DataChangeRecord) other); + return mergeFrom((com.google.spanner.executor.v1.DataChangeRecord)other); } else { super.mergeFrom(other); return this; @@ -3262,8 +3001,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.DataChangeRecord other) { - if (other == com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance()) return this; if (other.hasCommitTime()) { mergeCommitTime(other.getCommitTime()); } @@ -3303,10 +3041,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.DataChangeRecord other) columnTypesBuilder_ = null; columnTypes_ = other.columnTypes_; bitField0_ = (bitField0_ & ~0x00000020); - columnTypesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColumnTypesFieldBuilder() - : null; + columnTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnTypesFieldBuilder() : null; } else { columnTypesBuilder_.addAllMessages(other.columnTypes_); } @@ -3330,10 +3067,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.DataChangeRecord other) modsBuilder_ = null; mods_ = other.mods_; bitField0_ = (bitField0_ & ~0x00000040); - modsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getModsFieldBuilder() - : null; + modsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getModsFieldBuilder() : null; } else { modsBuilder_.addAllMessages(other.mods_); } @@ -3389,107 +3125,95 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - recordSequence_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - transactionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - isLastRecord_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.spanner.executor.v1.DataChangeRecord.ColumnType m = - input.readMessage( - com.google.spanner.executor.v1.DataChangeRecord.ColumnType.parser(), - extensionRegistry); - if (columnTypesBuilder_ == null) { - ensureColumnTypesIsMutable(); - columnTypes_.add(m); - } else { - columnTypesBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: - { - com.google.spanner.executor.v1.DataChangeRecord.Mod m = - input.readMessage( - com.google.spanner.executor.v1.DataChangeRecord.Mod.parser(), - extensionRegistry); - if (modsBuilder_ == null) { - ensureModsIsMutable(); - mods_.add(m); - } else { - modsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - modType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - valueCaptureType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 80: - { - recordCount_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: - { - partitionCount_ = input.readInt64(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 98: - { - transactionTag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 104: - { - isSystemTransaction_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 104 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCommitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + recordSequence_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + transactionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + isLastRecord_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + com.google.spanner.executor.v1.DataChangeRecord.ColumnType m = + input.readMessage( + com.google.spanner.executor.v1.DataChangeRecord.ColumnType.parser(), + extensionRegistry); + if (columnTypesBuilder_ == null) { + ensureColumnTypesIsMutable(); + columnTypes_.add(m); + } else { + columnTypesBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + com.google.spanner.executor.v1.DataChangeRecord.Mod m = + input.readMessage( + com.google.spanner.executor.v1.DataChangeRecord.Mod.parser(), + extensionRegistry); + if (modsBuilder_ == null) { + ensureModsIsMutable(); + mods_.add(m); + } else { + modsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + modType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + valueCaptureType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + partitionCount_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: { + transactionTag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: { + isSystemTransaction_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3499,52 +3223,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - commitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> * * <code>.google.protobuf.Timestamp commit_time = 1;</code> - * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> * * <code>.google.protobuf.Timestamp commit_time = 1;</code> - * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> @@ -3564,16 +3274,15 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } - /** - * - * + /** * <pre> * The timestamp in which the change was committed. * </pre> * * <code>.google.protobuf.Timestamp commit_time = 1;</code> */ - public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCommitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimeBuilder_ == null) { commitTime_ = builderForValue.build(); } else { @@ -3584,8 +3293,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> @@ -3594,9 +3301,9 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && commitTime_ != null - && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + commitTime_ != null && + commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCommitTimeBuilder().mergeFrom(value); } else { commitTime_ = value; @@ -3609,8 +3316,6 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> @@ -3628,8 +3333,6 @@ public Builder clearCommitTime() { return this; } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> @@ -3642,8 +3345,6 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { return getCommitTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> @@ -3654,14 +3355,11 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { if (commitTimeBuilder_ != null) { return commitTimeBuilder_.getMessageOrBuilder(); } else { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } } /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> @@ -3669,17 +3367,14 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { * <code>.google.protobuf.Timestamp commit_time = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -3687,20 +3382,18 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { private java.lang.Object recordSequence_ = ""; /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordSequence_ = s; return s; @@ -3709,21 +3402,20 @@ public java.lang.String getRecordSequence() { } } /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @return The bytes for recordSequence. */ - public com.google.protobuf.ByteString getRecordSequenceBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recordSequence_ = b; return b; } else { @@ -3731,35 +3423,28 @@ public com.google.protobuf.ByteString getRecordSequenceBytes() { } } /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @param value The recordSequence to set. * @return This builder for chaining. */ - public Builder setRecordSequence(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordSequence( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recordSequence_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @return This builder for chaining. */ public Builder clearRecordSequence() { @@ -3769,21 +3454,17 @@ public Builder clearRecordSequence() { return this; } /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @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(); - } + public Builder setRecordSequenceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recordSequence_ = value; bitField0_ |= 0x00000002; @@ -3793,21 +3474,19 @@ public Builder setRecordSequenceBytes(com.google.protobuf.ByteString value) { private java.lang.Object transactionId_ = ""; /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; @@ -3816,22 +3495,21 @@ public java.lang.String getTransactionId() { } } /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @return The bytes for transactionId. */ - public com.google.protobuf.ByteString getTransactionIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -3839,37 +3517,30 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { } } /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @param value The transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transactionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearTransactionId() { @@ -3879,22 +3550,18 @@ public Builder clearTransactionId() { return this; } /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @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(); - } + public Builder setTransactionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionId_ = value; bitField0_ |= 0x00000004; @@ -3902,17 +3569,14 @@ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean isLastRecord_; + private boolean isLastRecord_ ; /** - * - * * <pre> * Indicates whether this is the last record for a transaction in the current * partition. * </pre> * * <code>bool is_last_record = 4;</code> - * * @return The isLastRecord. */ @java.lang.Override @@ -3920,15 +3584,12 @@ public boolean getIsLastRecord() { return isLastRecord_; } /** - * - * * <pre> * Indicates whether this is the last record for a transaction in the current * partition. * </pre> * * <code>bool is_last_record = 4;</code> - * * @param value The isLastRecord to set. * @return This builder for chaining. */ @@ -3940,15 +3601,12 @@ public Builder setIsLastRecord(boolean value) { return this; } /** - * - * * <pre> * Indicates whether this is the last record for a transaction in the current * partition. * </pre> * * <code>bool is_last_record = 4;</code> - * * @return This builder for chaining. */ public Builder clearIsLastRecord() { @@ -3960,20 +3618,18 @@ public Builder clearIsLastRecord() { private java.lang.Object table_ = ""; /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -3982,21 +3638,20 @@ public java.lang.String getTable() { } } /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -4004,35 +3659,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @return This builder for chaining. */ public Builder clearTable() { @@ -4042,21 +3690,17 @@ public Builder clearTable() { return this; } /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @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(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000010; @@ -4064,36 +3708,26 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> - columnTypes_ = java.util.Collections.emptyList(); - + private java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> columnTypes_ = + java.util.Collections.emptyList(); private void ensureColumnTypesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - columnTypes_ = - new java.util.ArrayList<com.google.spanner.executor.v1.DataChangeRecord.ColumnType>( - columnTypes_); + columnTypes_ = new java.util.ArrayList<com.google.spanner.executor.v1.DataChangeRecord.ColumnType>(columnTypes_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.DataChangeRecord.ColumnType, - com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder, - com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> - columnTypesBuilder_; + com.google.spanner.executor.v1.DataChangeRecord.ColumnType, com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder, com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> columnTypesBuilder_; /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ - public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> - getColumnTypesList() { + public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> getColumnTypesList() { if (columnTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(columnTypes_); } else { @@ -4101,14 +3735,11 @@ private void ensureColumnTypesIsMutable() { } } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public int getColumnTypesCount() { if (columnTypesBuilder_ == null) { @@ -4118,14 +3749,11 @@ public int getColumnTypesCount() { } } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType getColumnTypes(int index) { if (columnTypesBuilder_ == null) { @@ -4135,14 +3763,11 @@ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType getColumnTypes } } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public Builder setColumnTypes( int index, com.google.spanner.executor.v1.DataChangeRecord.ColumnType value) { @@ -4159,18 +3784,14 @@ public Builder setColumnTypes( return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public Builder setColumnTypes( - int index, - com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder builderForValue) { + int index, com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder builderForValue) { if (columnTypesBuilder_ == null) { ensureColumnTypesIsMutable(); columnTypes_.set(index, builderForValue.build()); @@ -4181,17 +3802,13 @@ public Builder setColumnTypes( return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ - public Builder addColumnTypes( - com.google.spanner.executor.v1.DataChangeRecord.ColumnType value) { + public Builder addColumnTypes(com.google.spanner.executor.v1.DataChangeRecord.ColumnType value) { if (columnTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4205,14 +3822,11 @@ public Builder addColumnTypes( return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public Builder addColumnTypes( int index, com.google.spanner.executor.v1.DataChangeRecord.ColumnType value) { @@ -4229,14 +3843,11 @@ public Builder addColumnTypes( return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public Builder addColumnTypes( com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder builderForValue) { @@ -4250,18 +3861,14 @@ public Builder addColumnTypes( return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public Builder addColumnTypes( - int index, - com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder builderForValue) { + int index, com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder builderForValue) { if (columnTypesBuilder_ == null) { ensureColumnTypesIsMutable(); columnTypes_.add(index, builderForValue.build()); @@ -4272,21 +3879,18 @@ public Builder addColumnTypes( return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public Builder addAllColumnTypes( - java.lang.Iterable<? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnType> - values) { + java.lang.Iterable<? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnType> values) { if (columnTypesBuilder_ == null) { ensureColumnTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columnTypes_); onChanged(); } else { columnTypesBuilder_.addAllMessages(values); @@ -4294,14 +3898,11 @@ public Builder addAllColumnTypes( return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public Builder clearColumnTypes() { if (columnTypesBuilder_ == null) { @@ -4314,14 +3915,11 @@ public Builder clearColumnTypes() { return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public Builder removeColumnTypes(int index) { if (columnTypesBuilder_ == null) { @@ -4334,50 +3932,39 @@ public Builder removeColumnTypes(int index) { return this; } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder getColumnTypesBuilder( int index) { return getColumnTypesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ - public com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder - getColumnTypesOrBuilder(int index) { + public com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder getColumnTypesOrBuilder( + int index) { if (columnTypesBuilder_ == null) { - return columnTypes_.get(index); - } else { + return columnTypes_.get(index); } else { return columnTypesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ - public java.util.List< - ? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> - getColumnTypesOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> + getColumnTypesOrBuilderList() { if (columnTypesBuilder_ != null) { return columnTypesBuilder_.getMessageOrBuilderList(); } else { @@ -4385,89 +3972,67 @@ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder getCol } } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ - public com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder - addColumnTypesBuilder() { - return getColumnTypesFieldBuilder() - .addBuilder( - com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance()); + public com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder addColumnTypesBuilder() { + return getColumnTypesFieldBuilder().addBuilder( + com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance()); } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder addColumnTypesBuilder( int index) { - return getColumnTypesFieldBuilder() - .addBuilder( - index, - com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance()); + return getColumnTypesFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance()); } /** - * - * * <pre> * Column types defined in the schema. * </pre> * - * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; - * </code> + * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ - public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder> - getColumnTypesBuilderList() { + public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder> + getColumnTypesBuilderList() { return getColumnTypesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.DataChangeRecord.ColumnType, - com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder, - com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> + com.google.spanner.executor.v1.DataChangeRecord.ColumnType, com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder, com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> getColumnTypesFieldBuilder() { if (columnTypesBuilder_ == null) { - columnTypesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.DataChangeRecord.ColumnType, - com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder, - com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder>( - columnTypes_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + columnTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.DataChangeRecord.ColumnType, com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder, com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder>( + columnTypes_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); columnTypes_ = null; } return columnTypesBuilder_; } private java.util.List<com.google.spanner.executor.v1.DataChangeRecord.Mod> mods_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureModsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { mods_ = new java.util.ArrayList<com.google.spanner.executor.v1.DataChangeRecord.Mod>(mods_); bitField0_ |= 0x00000040; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.DataChangeRecord.Mod, - com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder, - com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> - modsBuilder_; + com.google.spanner.executor.v1.DataChangeRecord.Mod, com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder, com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> modsBuilder_; /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4482,8 +4047,6 @@ public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.Mod> getMo } } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4498,8 +4061,6 @@ public int getModsCount() { } } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4514,15 +4075,14 @@ public com.google.spanner.executor.v1.DataChangeRecord.Mod getMods(int index) { } } /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - public Builder setMods(int index, com.google.spanner.executor.v1.DataChangeRecord.Mod value) { + public Builder setMods( + int index, com.google.spanner.executor.v1.DataChangeRecord.Mod value) { if (modsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4536,8 +4096,6 @@ public Builder setMods(int index, com.google.spanner.executor.v1.DataChangeRecor return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4556,8 +4114,6 @@ public Builder setMods( return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4578,15 +4134,14 @@ public Builder addMods(com.google.spanner.executor.v1.DataChangeRecord.Mod value return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - public Builder addMods(int index, com.google.spanner.executor.v1.DataChangeRecord.Mod value) { + public Builder addMods( + int index, com.google.spanner.executor.v1.DataChangeRecord.Mod value) { if (modsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4600,8 +4155,6 @@ public Builder addMods(int index, com.google.spanner.executor.v1.DataChangeRecor return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4620,8 +4173,6 @@ public Builder addMods( return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4640,8 +4191,6 @@ public Builder addMods( return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4652,7 +4201,8 @@ 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_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mods_); onChanged(); } else { modsBuilder_.addAllMessages(values); @@ -4660,8 +4210,6 @@ public Builder addAllMods( return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4679,8 +4227,6 @@ public Builder clearMods() { return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4698,20 +4244,17 @@ public Builder removeMods(int index) { return this; } /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder getModsBuilder(int index) { + public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder getModsBuilder( + int index) { return getModsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4721,22 +4264,19 @@ public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder getModsBuilde public com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBuilder( int index) { if (modsBuilder_ == null) { - return mods_.get(index); - } else { + return mods_.get(index); } else { return modsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> - getModsOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> + getModsOrBuilderList() { if (modsBuilder_ != null) { return modsBuilder_.getMessageOrBuilderList(); } else { @@ -4744,8 +4284,6 @@ public com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBui } } /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -4753,49 +4291,42 @@ public com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBui * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder addModsBuilder() { - return getModsFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.DataChangeRecord.Mod.getDefaultInstance()); + return getModsFieldBuilder().addBuilder( + com.google.spanner.executor.v1.DataChangeRecord.Mod.getDefaultInstance()); } /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder addModsBuilder(int index) { - return getModsFieldBuilder() - .addBuilder( - index, com.google.spanner.executor.v1.DataChangeRecord.Mod.getDefaultInstance()); + public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder addModsBuilder( + int index) { + return getModsFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.DataChangeRecord.Mod.getDefaultInstance()); } /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder> - getModsBuilderList() { + public java.util.List<com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder> + getModsBuilderList() { return getModsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.DataChangeRecord.Mod, - com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder, - com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> + com.google.spanner.executor.v1.DataChangeRecord.Mod, com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder, com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> getModsFieldBuilder() { if (modsBuilder_ == null) { - modsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.DataChangeRecord.Mod, - com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder, - com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder>( - mods_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + modsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.DataChangeRecord.Mod, com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder, com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder>( + mods_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); mods_ = null; } return modsBuilder_; @@ -4803,20 +4334,18 @@ public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder addModsBuilde private java.lang.Object modType_ = ""; /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modType_ = s; return s; @@ -4825,21 +4354,20 @@ public java.lang.String getModType() { } } /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @return The bytes for modType. */ - public com.google.protobuf.ByteString getModTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modType_ = b; return b; } else { @@ -4847,35 +4375,28 @@ public com.google.protobuf.ByteString getModTypeBytes() { } } /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @param value The modType to set. * @return This builder for chaining. */ - public Builder setModType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } modType_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @return This builder for chaining. */ public Builder clearModType() { @@ -4885,21 +4406,17 @@ public Builder clearModType() { return this; } /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @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(); - } + public Builder setModTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modType_ = value; bitField0_ |= 0x00000080; @@ -4909,20 +4426,18 @@ public Builder setModTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object valueCaptureType_ = ""; /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); valueCaptureType_ = s; return s; @@ -4931,21 +4446,20 @@ public java.lang.String getValueCaptureType() { } } /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @return The bytes for valueCaptureType. */ - public com.google.protobuf.ByteString getValueCaptureTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); valueCaptureType_ = b; return b; } else { @@ -4953,35 +4467,28 @@ public com.google.protobuf.ByteString getValueCaptureTypeBytes() { } } /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @param value The valueCaptureType to set. * @return This builder for chaining. */ - public Builder setValueCaptureType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueCaptureType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } valueCaptureType_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @return This builder for chaining. */ public Builder clearValueCaptureType() { @@ -4991,21 +4498,17 @@ public Builder clearValueCaptureType() { return this; } /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @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(); - } + public Builder setValueCaptureTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCaptureType_ = value; bitField0_ |= 0x00000100; @@ -5013,16 +4516,13 @@ public Builder setValueCaptureTypeBytes(com.google.protobuf.ByteString value) { return this; } - private long recordCount_; + private long recordCount_ ; /** - * - * * <pre> * Number of records in transactions. * </pre> * * <code>int64 record_count = 10;</code> - * * @return The recordCount. */ @java.lang.Override @@ -5030,14 +4530,11 @@ public long getRecordCount() { return recordCount_; } /** - * - * * <pre> * Number of records in transactions. * </pre> * * <code>int64 record_count = 10;</code> - * * @param value The recordCount to set. * @return This builder for chaining. */ @@ -5049,14 +4546,11 @@ public Builder setRecordCount(long value) { return this; } /** - * - * * <pre> * Number of records in transactions. * </pre> * * <code>int64 record_count = 10;</code> - * * @return This builder for chaining. */ public Builder clearRecordCount() { @@ -5066,16 +4560,13 @@ public Builder clearRecordCount() { return this; } - private long partitionCount_; + private long partitionCount_ ; /** - * - * * <pre> * Number of partitions in transactions. * </pre> * * <code>int64 partition_count = 11;</code> - * * @return The partitionCount. */ @java.lang.Override @@ -5083,14 +4574,11 @@ public long getPartitionCount() { return partitionCount_; } /** - * - * * <pre> * Number of partitions in transactions. * </pre> * * <code>int64 partition_count = 11;</code> - * * @param value The partitionCount to set. * @return This builder for chaining. */ @@ -5102,14 +4590,11 @@ public Builder setPartitionCount(long value) { return this; } /** - * - * * <pre> * Number of partitions in transactions. * </pre> * * <code>int64 partition_count = 11;</code> - * * @return This builder for chaining. */ public Builder clearPartitionCount() { @@ -5121,20 +4606,18 @@ public Builder clearPartitionCount() { private java.lang.Object transactionTag_ = ""; /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionTag_ = s; return s; @@ -5143,21 +4626,20 @@ public java.lang.String getTransactionTag() { } } /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @return The bytes for transactionTag. */ - public com.google.protobuf.ByteString getTransactionTagBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionTag_ = b; return b; } else { @@ -5165,35 +4647,28 @@ public com.google.protobuf.ByteString getTransactionTagBytes() { } } /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @param value The transactionTag to set. * @return This builder for chaining. */ - public Builder setTransactionTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionTag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transactionTag_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @return This builder for chaining. */ public Builder clearTransactionTag() { @@ -5203,21 +4678,17 @@ public Builder clearTransactionTag() { return this; } /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @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(); - } + public Builder setTransactionTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionTag_ = value; bitField0_ |= 0x00000800; @@ -5225,16 +4696,13 @@ public Builder setTransactionTagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean isSystemTransaction_; + private boolean isSystemTransaction_ ; /** - * - * * <pre> * Whether the transaction is a system transactionn. * </pre> * * <code>bool is_system_transaction = 13;</code> - * * @return The isSystemTransaction. */ @java.lang.Override @@ -5242,14 +4710,11 @@ public boolean getIsSystemTransaction() { return isSystemTransaction_; } /** - * - * * <pre> * Whether the transaction is a system transactionn. * </pre> * * <code>bool is_system_transaction = 13;</code> - * * @param value The isSystemTransaction to set. * @return This builder for chaining. */ @@ -5261,14 +4726,11 @@ public Builder setIsSystemTransaction(boolean value) { return this; } /** - * - * * <pre> * Whether the transaction is a system transactionn. * </pre> * * <code>bool is_system_transaction = 13;</code> - * * @return This builder for chaining. */ public Builder clearIsSystemTransaction() { @@ -5277,9 +4739,9 @@ public Builder clearIsSystemTransaction() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5289,12 +4751,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -5303,27 +4765,27 @@ public static com.google.spanner.executor.v1.DataChangeRecord getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DataChangeRecord> PARSER = - new com.google.protobuf.AbstractParser<DataChangeRecord>() { - @java.lang.Override - public DataChangeRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DataChangeRecord> + PARSER = new com.google.protobuf.AbstractParser<DataChangeRecord>() { + @java.lang.Override + public DataChangeRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DataChangeRecord> parser() { return PARSER; @@ -5338,4 +4800,6 @@ public com.google.protobuf.Parser<DataChangeRecord> getParserForType() { public com.google.spanner.executor.v1.DataChangeRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java similarity index 81% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java index a90dcd59314..a7b53ff39d1 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface DataChangeRecordOrBuilder - extends +public interface DataChangeRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DataChangeRecord) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> * * <code>.google.protobuf.Timestamp commit_time = 1;</code> - * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> * * <code>.google.protobuf.Timestamp commit_time = 1;</code> - * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** - * - * * <pre> * The timestamp in which the change was committed. * </pre> @@ -59,109 +35,88 @@ public interface DataChangeRecordOrBuilder com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder(); /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @return The recordSequence. */ java.lang.String getRecordSequence(); /** - * - * * <pre> * The sequence number for the record within the transaction. * </pre> * * <code>string record_sequence = 2;</code> - * * @return The bytes for recordSequence. */ - com.google.protobuf.ByteString getRecordSequenceBytes(); + com.google.protobuf.ByteString + getRecordSequenceBytes(); /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @return The transactionId. */ java.lang.String getTransactionId(); /** - * - * * <pre> * A globally unique string that represents the transaction in which the * change was committed. * </pre> * * <code>string transaction_id = 3;</code> - * * @return The bytes for transactionId. */ - com.google.protobuf.ByteString getTransactionIdBytes(); + com.google.protobuf.ByteString + getTransactionIdBytes(); /** - * - * * <pre> * Indicates whether this is the last record for a transaction in the current * partition. * </pre> * * <code>bool is_last_record = 4;</code> - * * @return The isLastRecord. */ boolean getIsLastRecord(); /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @return The table. */ java.lang.String getTable(); /** - * - * * <pre> * Name of the table affected by the change. * </pre> * * <code>string table = 5;</code> - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * * <pre> * Column types defined in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ - java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> getColumnTypesList(); + java.util.List<com.google.spanner.executor.v1.DataChangeRecord.ColumnType> + getColumnTypesList(); /** - * - * * <pre> * Column types defined in the schema. * </pre> @@ -170,8 +125,6 @@ public interface DataChangeRecordOrBuilder */ com.google.spanner.executor.v1.DataChangeRecord.ColumnType getColumnTypes(int index); /** - * - * * <pre> * Column types defined in the schema. * </pre> @@ -180,19 +133,15 @@ public interface DataChangeRecordOrBuilder */ int getColumnTypesCount(); /** - * - * * <pre> * Column types defined in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder> getColumnTypesOrBuilderList(); /** - * - * * <pre> * Column types defined in the schema. * </pre> @@ -203,18 +152,15 @@ com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder getColumnTyp int index); /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - java.util.List<com.google.spanner.executor.v1.DataChangeRecord.Mod> getModsList(); + java.util.List<com.google.spanner.executor.v1.DataChangeRecord.Mod> + getModsList(); /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -223,8 +169,6 @@ com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder getColumnTyp */ com.google.spanner.executor.v1.DataChangeRecord.Mod getMods(int index); /** - * - * * <pre> * Changes made in the transaction. * </pre> @@ -233,137 +177,110 @@ com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder getColumnTyp */ int getModsCount(); /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder> getModsOrBuilderList(); /** - * - * * <pre> * Changes made in the transaction. * </pre> * * <code>repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;</code> */ - com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBuilder(int index); + com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBuilder( + int index); /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @return The modType. */ java.lang.String getModType(); /** - * - * * <pre> * Describes the type of change. One of INSERT, UPDATE or DELETE. * </pre> * * <code>string mod_type = 8;</code> - * * @return The bytes for modType. */ - com.google.protobuf.ByteString getModTypeBytes(); + com.google.protobuf.ByteString + getModTypeBytes(); /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @return The valueCaptureType. */ java.lang.String getValueCaptureType(); /** - * - * * <pre> * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. * </pre> * * <code>string value_capture_type = 9;</code> - * * @return The bytes for valueCaptureType. */ - com.google.protobuf.ByteString getValueCaptureTypeBytes(); + com.google.protobuf.ByteString + getValueCaptureTypeBytes(); /** - * - * * <pre> * Number of records in transactions. * </pre> * * <code>int64 record_count = 10;</code> - * * @return The recordCount. */ long getRecordCount(); /** - * - * * <pre> * Number of partitions in transactions. * </pre> * * <code>int64 partition_count = 11;</code> - * * @return The partitionCount. */ long getPartitionCount(); /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @return The transactionTag. */ java.lang.String getTransactionTag(); /** - * - * * <pre> * Transaction tag info. * </pre> * * <code>string transaction_tag = 12;</code> - * * @return The bytes for transactionTag. */ - com.google.protobuf.ByteString getTransactionTagBytes(); + com.google.protobuf.ByteString + getTransactionTagBytes(); /** - * - * * <pre> * Whether the transaction is a system transactionn. * </pre> * * <code>bool is_system_transaction = 13;</code> - * * @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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java index 35017e99411..511698da445 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DeleteCloudBackupAction} */ -public final class DeleteCloudBackupAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -45,38 +27,33 @@ private DeleteCloudBackupAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -167,18 +140,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int BACKUP_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ @java.lang.Override @@ -187,29 +156,29 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -218,7 +187,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -266,17 +235,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -300,136 +271,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.DeleteCloudBackupAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.DeleteCloudBackupAction prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that deletes a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DeleteCloudBackupAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.DeleteCloudBackupAction) com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.DeleteCloudBackupAction.class, com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder.class); } // Construct using com.google.spanner.executor.v1.DeleteCloudBackupAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_descriptor; } @java.lang.Override @@ -462,11 +428,8 @@ public com.google.spanner.executor.v1.DeleteCloudBackupAction build() { @java.lang.Override public com.google.spanner.executor.v1.DeleteCloudBackupAction buildPartial() { - com.google.spanner.executor.v1.DeleteCloudBackupAction result = - new com.google.spanner.executor.v1.DeleteCloudBackupAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.DeleteCloudBackupAction result = new com.google.spanner.executor.v1.DeleteCloudBackupAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -488,39 +451,38 @@ private void buildPartial0(com.google.spanner.executor.v1.DeleteCloudBackupActio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.DeleteCloudBackupAction) { - return mergeFrom((com.google.spanner.executor.v1.DeleteCloudBackupAction) other); + return mergeFrom((com.google.spanner.executor.v1.DeleteCloudBackupAction)other); } else { super.mergeFrom(other); return this; @@ -528,8 +490,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.DeleteCloudBackupAction other) { - if (other == com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -571,31 +532,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,25 +562,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -632,21 +586,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -654,35 +607,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -692,21 +638,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -716,20 +658,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -738,21 +678,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -760,35 +699,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -798,21 +730,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -822,20 +750,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -844,21 +770,20 @@ public java.lang.String getBackupId() { } } /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -866,35 +791,28 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearBackupId() { @@ -904,30 +822,26 @@ public Builder clearBackupId() { return this; } /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -937,12 +851,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -951,27 +865,27 @@ public static com.google.spanner.executor.v1.DeleteCloudBackupAction getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DeleteCloudBackupAction> PARSER = - new com.google.protobuf.AbstractParser<DeleteCloudBackupAction>() { - @java.lang.Override - public DeleteCloudBackupAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DeleteCloudBackupAction> + PARSER = new com.google.protobuf.AbstractParser<DeleteCloudBackupAction>() { + @java.lang.Override + public DeleteCloudBackupAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DeleteCloudBackupAction> parser() { return PARSER; @@ -986,4 +900,6 @@ public com.google.protobuf.Parser<DeleteCloudBackupAction> getParserForType() { public com.google.spanner.executor.v1.DeleteCloudBackupAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java similarity index 61% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java index 425f0ca134a..edd863b8215 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupActionOrBuilder.java @@ -1,100 +1,69 @@ -/* - * 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 interface DeleteCloudBackupActionOrBuilder - extends +public interface DeleteCloudBackupActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DeleteCloudBackupAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * * <pre> * The id of the backup to delete, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java index dd686b8f6a3..cf691333fee 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DeleteCloudInstanceAction} */ -public final class DeleteCloudInstanceAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -44,38 +26,33 @@ private DeleteCloudInstanceAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -115,18 +92,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -135,29 +108,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -166,7 +139,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -208,16 +181,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,136 +213,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.DeleteCloudInstanceAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.DeleteCloudInstanceAction prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that deletes a Cloud Spanner instance. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DeleteCloudInstanceAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.DeleteCloudInstanceAction) com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.DeleteCloudInstanceAction.class, com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder.class); } // Construct using com.google.spanner.executor.v1.DeleteCloudInstanceAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_descriptor; } @java.lang.Override @@ -400,11 +369,8 @@ public com.google.spanner.executor.v1.DeleteCloudInstanceAction build() { @java.lang.Override public com.google.spanner.executor.v1.DeleteCloudInstanceAction buildPartial() { - com.google.spanner.executor.v1.DeleteCloudInstanceAction result = - new com.google.spanner.executor.v1.DeleteCloudInstanceAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.DeleteCloudInstanceAction result = new com.google.spanner.executor.v1.DeleteCloudInstanceAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -423,39 +389,38 @@ private void buildPartial0(com.google.spanner.executor.v1.DeleteCloudInstanceAct public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.DeleteCloudInstanceAction) { - return mergeFrom((com.google.spanner.executor.v1.DeleteCloudInstanceAction) other); + return mergeFrom((com.google.spanner.executor.v1.DeleteCloudInstanceAction)other); } else { super.mergeFrom(other); return this; @@ -463,8 +428,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.DeleteCloudInstanceAction other) { - if (other == com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; bitField0_ |= 0x00000001; @@ -501,25 +465,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -529,25 +490,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -556,21 +514,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -578,35 +535,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -616,21 +566,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -640,20 +586,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -662,21 +606,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -684,35 +627,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -722,30 +658,26 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -755,12 +687,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -769,27 +701,27 @@ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DeleteCloudInstanceAction> PARSER = - new com.google.protobuf.AbstractParser<DeleteCloudInstanceAction>() { - @java.lang.Override - public DeleteCloudInstanceAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DeleteCloudInstanceAction> + PARSER = new com.google.protobuf.AbstractParser<DeleteCloudInstanceAction>() { + @java.lang.Override + public DeleteCloudInstanceAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DeleteCloudInstanceAction> parser() { return PARSER; @@ -804,4 +736,6 @@ public com.google.protobuf.Parser<DeleteCloudInstanceAction> getParserForType() public com.google.spanner.executor.v1.DeleteCloudInstanceAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java similarity index 56% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java index 47efef6e091..4b9647b02e2 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceActionOrBuilder.java @@ -1,75 +1,49 @@ -/* - * 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 interface DeleteCloudInstanceActionOrBuilder - extends +public interface DeleteCloudInstanceActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DeleteCloudInstanceAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java similarity index 65% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java index 4797f360e46..b7ce9c5253d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java @@ -1,43 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that deletes a user instance configs. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DeleteUserInstanceConfigAction} */ -public final class DeleteUserInstanceConfigAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +private static final long serialVersionUID = 0L; // Use DeleteUserInstanceConfigAction.newBuilder() to construct. - private DeleteUserInstanceConfigAction( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private DeleteUserInstanceConfigAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private DeleteUserInstanceConfigAction() { userConfigId_ = ""; projectId_ = ""; @@ -45,38 +26,33 @@ private DeleteUserInstanceConfigAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The userConfigId. */ @java.lang.Override @@ -85,29 +61,29 @@ public java.lang.String getUserConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userConfigId_ = s; return s; } } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The bytes for userConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userConfigId_ = b; return b; } else { @@ -116,18 +92,14 @@ public com.google.protobuf.ByteString getUserConfigIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -136,29 +108,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -167,7 +139,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -209,16 +181,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!getUserConfigId() + .equals(other.getUserConfigId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,136 +213,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.DeleteUserInstanceConfigAction prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that deletes a user instance configs. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DeleteUserInstanceConfigAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.DeleteUserInstanceConfigAction) com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.class, com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder.class); } // Construct using com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -380,14 +348,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction getDefaultInstanceForType() { return com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance(); } @@ -402,17 +369,13 @@ public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction build() { @java.lang.Override public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction buildPartial() { - com.google.spanner.executor.v1.DeleteUserInstanceConfigAction result = - new com.google.spanner.executor.v1.DeleteUserInstanceConfigAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.DeleteUserInstanceConfigAction result = new com.google.spanner.executor.v1.DeleteUserInstanceConfigAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.DeleteUserInstanceConfigAction result) { + private void buildPartial0(com.google.spanner.executor.v1.DeleteUserInstanceConfigAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.userConfigId_ = userConfigId_; @@ -426,39 +389,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) { - return mergeFrom((com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) other); + return mergeFrom((com.google.spanner.executor.v1.DeleteUserInstanceConfigAction)other); } else { super.mergeFrom(other); return this; @@ -466,9 +428,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.DeleteUserInstanceConfigAction other) { - if (other - == com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance()) return this; if (!other.getUserConfigId().isEmpty()) { userConfigId_ = other.userConfigId_; bitField0_ |= 0x00000001; @@ -505,25 +465,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - userConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + userConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -533,25 +490,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object userConfigId_ = ""; /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userConfigId_ = s; return s; @@ -560,21 +514,20 @@ public java.lang.String getUserConfigId() { } } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The bytes for userConfigId. */ - public com.google.protobuf.ByteString getUserConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userConfigId_ = b; return b; } else { @@ -582,35 +535,28 @@ public com.google.protobuf.ByteString getUserConfigIdBytes() { } } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @param value The userConfigId to set. * @return This builder for chaining. */ - public Builder setUserConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUserConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userConfigId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearUserConfigId() { @@ -620,21 +566,17 @@ public Builder clearUserConfigId() { return this; } /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @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(); - } + public Builder setUserConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userConfigId_ = value; bitField0_ |= 0x00000001; @@ -644,20 +586,18 @@ public Builder setUserConfigIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -666,21 +606,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -688,35 +627,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -726,30 +658,26 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,13 +687,12 @@ public final Builder mergeUnknownFields( 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; - + private static final com.google.spanner.executor.v1.DeleteUserInstanceConfigAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DeleteUserInstanceConfigAction(); } @@ -774,27 +701,27 @@ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DeleteUserInstanceConfigAction> PARSER = - new com.google.protobuf.AbstractParser<DeleteUserInstanceConfigAction>() { - @java.lang.Override - public DeleteUserInstanceConfigAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DeleteUserInstanceConfigAction> + PARSER = new com.google.protobuf.AbstractParser<DeleteUserInstanceConfigAction>() { + @java.lang.Override + public DeleteUserInstanceConfigAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DeleteUserInstanceConfigAction> parser() { return PARSER; @@ -809,4 +736,6 @@ public com.google.protobuf.Parser<DeleteUserInstanceConfigAction> getParserForTy public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java similarity index 56% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java index 05af4717e2a..516cdb6bff8 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigActionOrBuilder.java @@ -1,75 +1,49 @@ -/* - * 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 interface DeleteUserInstanceConfigActionOrBuilder - extends +public interface DeleteUserInstanceConfigActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DeleteUserInstanceConfigAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The userConfigId. */ java.lang.String getUserConfigId(); /** - * - * * <pre> * User instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string user_config_id = 1;</code> - * * @return The bytes for userConfigId. */ - com.google.protobuf.ByteString getUserConfigIdBytes(); + com.google.protobuf.ByteString + getUserConfigIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + 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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java index 0da95103de4..420add86827 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java @@ -1,77 +1,56 @@ -/* - * 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; /** - * - * * <pre> * A single DML statement. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DmlAction} */ -public final class DmlAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +private static final long serialVersionUID = 0L; // Use DmlAction.newBuilder() to construct. private DmlAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private DmlAction() {} + private DmlAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_; /** - * - * * <pre> * DML statement. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 1;</code> - * * @return Whether the update field is set. */ @java.lang.Override @@ -79,25 +58,18 @@ public boolean hasUpdate() { return update_ != null; } /** - * - * * <pre> * DML statement. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 1;</code> - * * @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_; + return update_ == null ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : update_; } /** - * - * * <pre> * DML statement. * </pre> @@ -106,23 +78,18 @@ public com.google.spanner.executor.v1.QueryAction getUpdate() { */ @java.lang.Override public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder() { - return update_ == null - ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() - : update_; + 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; /** - * - * * <pre> * Whether to autocommit the transaction after executing the DML statement, * if the Executor supports autocommit. * </pre> * * <code>optional bool autocommit_if_supported = 2;</code> - * * @return Whether the autocommitIfSupported field is set. */ @java.lang.Override @@ -130,15 +97,12 @@ public boolean hasAutocommitIfSupported() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Whether to autocommit the transaction after executing the DML statement, * if the Executor supports autocommit. * </pre> * * <code>optional bool autocommit_if_supported = 2;</code> - * * @return The autocommitIfSupported. */ @java.lang.Override @@ -147,7 +111,6 @@ public boolean getAutocommitIfSupported() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,7 +122,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (update_ != null) { output.writeMessage(1, getUpdate()); } @@ -176,10 +140,12 @@ public int getSerializedSize() { size = 0; if (update_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdate()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, autocommitIfSupported_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, autocommitIfSupported_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,7 +155,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.DmlAction)) { return super.equals(obj); @@ -198,11 +164,13 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdate() != other.hasUpdate()) return false; if (hasUpdate()) { - if (!getUpdate().equals(other.getUpdate())) return false; + if (!getUpdate() + .equals(other.getUpdate())) return false; } if (hasAutocommitIfSupported() != other.hasAutocommitIfSupported()) return false; if (hasAutocommitIfSupported()) { - if (getAutocommitIfSupported() != other.getAutocommitIfSupported()) return false; + if (getAutocommitIfSupported() + != other.getAutocommitIfSupported()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -221,143 +189,140 @@ public int hashCode() { } if (hasAutocommitIfSupported()) { hash = (37 * hash) + AUTOCOMMIT_IF_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutocommitIfSupported()); + 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) + 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) + 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) + 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); + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * A single DML statement. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DmlAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.DmlAction) com.google.spanner.executor.v1.DmlActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DmlAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.DmlAction.class, com.google.spanner.executor.v1.DmlAction.Builder.class); } // Construct using com.google.spanner.executor.v1.DmlAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DmlAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_DmlAction_descriptor; } @java.lang.Override @@ -393,11 +358,8 @@ public com.google.spanner.executor.v1.DmlAction build() { @java.lang.Override public com.google.spanner.executor.v1.DmlAction buildPartial() { - com.google.spanner.executor.v1.DmlAction result = - new com.google.spanner.executor.v1.DmlAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.DmlAction result = new com.google.spanner.executor.v1.DmlAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -405,7 +367,9 @@ public com.google.spanner.executor.v1.DmlAction buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.DmlAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); + result.update_ = updateBuilder_ == null + ? update_ + : updateBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -419,39 +383,38 @@ private void buildPartial0(com.google.spanner.executor.v1.DmlAction result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.DmlAction) { - return mergeFrom((com.google.spanner.executor.v1.DmlAction) other); + return mergeFrom((com.google.spanner.executor.v1.DmlAction)other); } else { super.mergeFrom(other); return this; @@ -492,25 +455,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - autocommitIfSupported_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + autocommitIfSupported_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -520,52 +482,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.spanner.executor.v1.QueryAction update_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> - updateBuilder_; + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder> updateBuilder_; /** - * - * * <pre> * DML statement. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 1;</code> - * * @return Whether the update field is set. */ public boolean hasUpdate() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * DML statement. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 1;</code> - * * @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_; + return update_ == null ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** - * - * * <pre> * DML statement. * </pre> @@ -586,15 +534,14 @@ public Builder setUpdate(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * DML statement. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 1;</code> */ - public Builder setUpdate(com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { + public Builder setUpdate( + com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); } else { @@ -605,8 +552,6 @@ public Builder setUpdate(com.google.spanner.executor.v1.QueryAction.Builder buil return this; } /** - * - * * <pre> * DML statement. * </pre> @@ -615,9 +560,9 @@ public Builder setUpdate(com.google.spanner.executor.v1.QueryAction.Builder buil */ 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()) { + if (((bitField0_ & 0x00000001) != 0) && + update_ != null && + update_ != com.google.spanner.executor.v1.QueryAction.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; @@ -630,8 +575,6 @@ public Builder mergeUpdate(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * DML statement. * </pre> @@ -649,8 +592,6 @@ public Builder clearUpdate() { return this; } /** - * - * * <pre> * DML statement. * </pre> @@ -663,8 +604,6 @@ public com.google.spanner.executor.v1.QueryAction.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /** - * - * * <pre> * DML statement. * </pre> @@ -675,14 +614,11 @@ 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_; + return update_ == null ? + com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : update_; } } /** - * - * * <pre> * DML statement. * </pre> @@ -690,33 +626,27 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder() * <code>.google.spanner.executor.v1.QueryAction update = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> + 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()); + 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_; + private boolean autocommitIfSupported_ ; /** - * - * * <pre> * Whether to autocommit the transaction after executing the DML statement, * if the Executor supports autocommit. * </pre> * * <code>optional bool autocommit_if_supported = 2;</code> - * * @return Whether the autocommitIfSupported field is set. */ @java.lang.Override @@ -724,15 +654,12 @@ public boolean hasAutocommitIfSupported() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Whether to autocommit the transaction after executing the DML statement, * if the Executor supports autocommit. * </pre> * * <code>optional bool autocommit_if_supported = 2;</code> - * * @return The autocommitIfSupported. */ @java.lang.Override @@ -740,15 +667,12 @@ public boolean getAutocommitIfSupported() { return autocommitIfSupported_; } /** - * - * * <pre> * Whether to autocommit the transaction after executing the DML statement, * if the Executor supports autocommit. * </pre> * * <code>optional bool autocommit_if_supported = 2;</code> - * * @param value The autocommitIfSupported to set. * @return This builder for chaining. */ @@ -760,15 +684,12 @@ public Builder setAutocommitIfSupported(boolean value) { return this; } /** - * - * * <pre> * Whether to autocommit the transaction after executing the DML statement, * if the Executor supports autocommit. * </pre> * * <code>optional bool autocommit_if_supported = 2;</code> - * * @return This builder for chaining. */ public Builder clearAutocommitIfSupported() { @@ -777,9 +698,9 @@ public Builder clearAutocommitIfSupported() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -789,12 +710,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -803,27 +724,27 @@ public static com.google.spanner.executor.v1.DmlAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DmlAction> PARSER = - new com.google.protobuf.AbstractParser<DmlAction>() { - @java.lang.Override - public DmlAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DmlAction> + PARSER = new com.google.protobuf.AbstractParser<DmlAction>() { + @java.lang.Override + public DmlAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DmlAction> parser() { return PARSER; @@ -838,4 +759,6 @@ public com.google.protobuf.Parser<DmlAction> getParserForType() { public com.google.spanner.executor.v1.DmlAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java index 150769c53b4..3de4fa05c30 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlActionOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface DmlActionOrBuilder - extends +public interface DmlActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DmlAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * DML statement. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 1;</code> - * * @return Whether the update field is set. */ boolean hasUpdate(); /** - * - * * <pre> * DML statement. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 1;</code> - * * @return The update. */ com.google.spanner.executor.v1.QueryAction getUpdate(); /** - * - * * <pre> * DML statement. * </pre> @@ -59,28 +35,22 @@ public interface DmlActionOrBuilder com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder(); /** - * - * * <pre> * Whether to autocommit the transaction after executing the DML statement, * if the Executor supports autocommit. * </pre> * * <code>optional bool autocommit_if_supported = 2;</code> - * * @return Whether the autocommitIfSupported field is set. */ boolean hasAutocommitIfSupported(); /** - * - * * <pre> * Whether to autocommit the transaction after executing the DML statement, * if the Executor supports autocommit. * </pre> * * <code>optional bool autocommit_if_supported = 2;</code> - * * @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/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java index c584cae1fdb..d578c67815f 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DropCloudDatabaseAction} */ -public final class DropCloudDatabaseAction extends com.google.protobuf.GeneratedMessageV3 - implements +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; +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_ = ""; @@ -45,38 +27,33 @@ private DropCloudDatabaseAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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; + 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 + 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); + 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_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -167,18 +140,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int DATABASE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The databaseId. */ @java.lang.Override @@ -187,29 +156,29 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -218,7 +187,6 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -266,17 +235,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + 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; + 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 (!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; } @@ -300,136 +271,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.DropCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + 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) + 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) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + 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); + 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.DropCloudDatabaseAction prototype) { + 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); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that drops a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.DropCloudDatabaseAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.DropCloudDatabaseAction) com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_descriptor; + 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 + 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); + com.google.spanner.executor.v1.DropCloudDatabaseAction.class, com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder.class); } // Construct using com.google.spanner.executor.v1.DropCloudDatabaseAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_descriptor; } @java.lang.Override @@ -462,11 +428,8 @@ public com.google.spanner.executor.v1.DropCloudDatabaseAction build() { @java.lang.Override public com.google.spanner.executor.v1.DropCloudDatabaseAction buildPartial() { - com.google.spanner.executor.v1.DropCloudDatabaseAction result = - new com.google.spanner.executor.v1.DropCloudDatabaseAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.DropCloudDatabaseAction result = new com.google.spanner.executor.v1.DropCloudDatabaseAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -488,39 +451,38 @@ private void buildPartial0(com.google.spanner.executor.v1.DropCloudDatabaseActio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.DropCloudDatabaseAction) { - return mergeFrom((com.google.spanner.executor.v1.DropCloudDatabaseAction) other); + return mergeFrom((com.google.spanner.executor.v1.DropCloudDatabaseAction)other); } else { super.mergeFrom(other); return this; @@ -528,8 +490,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.DropCloudDatabaseAction other) { - if (other == com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; bitField0_ |= 0x00000001; @@ -571,31 +532,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - databaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,25 +562,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -632,21 +586,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -654,35 +607,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -692,21 +638,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -716,20 +658,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -738,21 +678,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -760,35 +699,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -798,21 +730,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -822,20 +750,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseId_ = ""; /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -844,21 +770,20 @@ public java.lang.String getDatabaseId() { } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -866,35 +791,28 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseId() { @@ -904,30 +822,26 @@ public Builder clearDatabaseId() { return this; } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -937,12 +851,12 @@ public final Builder mergeUnknownFields( 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(); } @@ -951,27 +865,27 @@ public static com.google.spanner.executor.v1.DropCloudDatabaseAction getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<DropCloudDatabaseAction> PARSER = - new com.google.protobuf.AbstractParser<DropCloudDatabaseAction>() { - @java.lang.Override - public DropCloudDatabaseAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<DropCloudDatabaseAction> + PARSER = new com.google.protobuf.AbstractParser<DropCloudDatabaseAction>() { + @java.lang.Override + public DropCloudDatabaseAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<DropCloudDatabaseAction> parser() { return PARSER; @@ -986,4 +900,6 @@ public com.google.protobuf.Parser<DropCloudDatabaseAction> getParserForType() { public com.google.spanner.executor.v1.DropCloudDatabaseAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java similarity index 61% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java index 76870d4764f..38de46e7c2d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseActionOrBuilder.java @@ -1,100 +1,69 @@ -/* - * 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 interface DropCloudDatabaseActionOrBuilder - extends +public interface DropCloudDatabaseActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DropCloudDatabaseAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The databaseId. */ java.lang.String getDatabaseId(); /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString getDatabaseIdBytes(); + com.google.protobuf.ByteString + getDatabaseIdBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java similarity index 75% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java index c54424ced16..a81c8cdacda 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQuery.java @@ -1,84 +1,62 @@ -/* - * 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; /** - * - * * <pre> * Execute a change stream TVF query. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ExecuteChangeStreamQuery} */ -public final class ExecuteChangeStreamQuery extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExecuteChangeStreamQuery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ExecuteChangeStreamQuery) ExecuteChangeStreamQueryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExecuteChangeStreamQuery.newBuilder() to construct. private ExecuteChangeStreamQuery(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ExecuteChangeStreamQuery() { name_ = ""; partitionToken_ = ""; - readOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + readOptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); cloudDatabaseRole_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExecuteChangeStreamQuery(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ExecuteChangeStreamQuery.class, - com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder.class); + com.google.spanner.executor.v1.ExecuteChangeStreamQuery.class, com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @return The name. */ @java.lang.Override @@ -87,29 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,15 +98,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -136,15 +111,12 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ @java.lang.Override @@ -152,8 +124,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -169,15 +139,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. * </pre> * * <code>optional .google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -185,15 +152,12 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. * </pre> * * <code>optional .google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ @java.lang.Override @@ -201,8 +165,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -216,19 +178,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int PARTITION_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object partitionToken_ = ""; /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return Whether the partitionToken field is set. */ @java.lang.Override @@ -236,15 +194,12 @@ public boolean hasPartitionToken() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return The partitionToken. */ @java.lang.Override @@ -253,30 +208,30 @@ public java.lang.String getPartitionToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); partitionToken_ = s; return s; } } /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return The bytes for partitionToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPartitionTokenBytes() { + public com.google.protobuf.ByteString + getPartitionTokenBytes() { java.lang.Object ref = partitionToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); partitionToken_ = b; return b; } else { @@ -285,47 +240,38 @@ public com.google.protobuf.ByteString getPartitionTokenBytes() { } public static final int READ_OPTIONS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList readOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @return A list containing the readOptions. */ - public com.google.protobuf.ProtocolStringList getReadOptionsList() { + public com.google.protobuf.ProtocolStringList + getReadOptionsList() { return readOptions_; } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @return The count of readOptions. */ public int getReadOptionsCount() { return readOptions_.size(); } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param index The index of the element to return. * @return The readOptions at the given index. */ @@ -333,33 +279,28 @@ public java.lang.String getReadOptions(int index) { return readOptions_.get(index); } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param index The index of the value to return. * @return The bytes of the readOptions at the given index. */ - public com.google.protobuf.ByteString getReadOptionsBytes(int index) { + public com.google.protobuf.ByteString + getReadOptionsBytes(int index) { return readOptions_.getByteString(index); } public static final int HEARTBEAT_MILLISECONDS_FIELD_NUMBER = 6; private int heartbeatMilliseconds_ = 0; /** - * - * * <pre> * Determines how frequently a heartbeat ChangeRecord will be returned in case * there are no transactions committed in this partition, in milliseconds. * </pre> * * <code>optional int32 heartbeat_milliseconds = 6;</code> - * * @return Whether the heartbeatMilliseconds field is set. */ @java.lang.Override @@ -367,15 +308,12 @@ public boolean hasHeartbeatMilliseconds() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Determines how frequently a heartbeat ChangeRecord will be returned in case * there are no transactions committed in this partition, in milliseconds. * </pre> * * <code>optional int32 heartbeat_milliseconds = 6;</code> - * * @return The heartbeatMilliseconds. */ @java.lang.Override @@ -386,14 +324,11 @@ public int getHeartbeatMilliseconds() { public static final int DEADLINE_SECONDS_FIELD_NUMBER = 7; private long deadlineSeconds_ = 0L; /** - * - * * <pre> * Deadline for this change stream query, in seconds. * </pre> * * <code>optional int64 deadline_seconds = 7;</code> - * * @return Whether the deadlineSeconds field is set. */ @java.lang.Override @@ -401,14 +336,11 @@ public boolean hasDeadlineSeconds() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Deadline for this change stream query, in seconds. * </pre> * * <code>optional int64 deadline_seconds = 7;</code> - * * @return The deadlineSeconds. */ @java.lang.Override @@ -417,12 +349,9 @@ public long getDeadlineSeconds() { } public static final int CLOUD_DATABASE_ROLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object cloudDatabaseRole_ = ""; /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -430,7 +359,6 @@ public long getDeadlineSeconds() { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return Whether the cloudDatabaseRole field is set. */ @java.lang.Override @@ -438,8 +366,6 @@ public boolean hasCloudDatabaseRole() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -447,7 +373,6 @@ public boolean hasCloudDatabaseRole() { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return The cloudDatabaseRole. */ @java.lang.Override @@ -456,15 +381,14 @@ public java.lang.String getCloudDatabaseRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudDatabaseRole_ = s; return s; } } /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -472,15 +396,16 @@ public java.lang.String getCloudDatabaseRole() { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return The bytes for cloudDatabaseRole. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { + public com.google.protobuf.ByteString + getCloudDatabaseRoleBytes() { java.lang.Object ref = cloudDatabaseRole_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudDatabaseRole_ = b; return b; } else { @@ -489,7 +414,6 @@ public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -501,7 +425,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -539,10 +464,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, partitionToken_); @@ -556,10 +483,12 @@ public int getSerializedSize() { size += 1 * getReadOptionsList().size(); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, heartbeatMilliseconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, heartbeatMilliseconds_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, deadlineSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, deadlineSeconds_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cloudDatabaseRole_); @@ -572,39 +501,46 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ExecuteChangeStreamQuery)) { return super.equals(obj); } - com.google.spanner.executor.v1.ExecuteChangeStreamQuery other = - (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) obj; + com.google.spanner.executor.v1.ExecuteChangeStreamQuery other = (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (hasPartitionToken() != other.hasPartitionToken()) return false; if (hasPartitionToken()) { - if (!getPartitionToken().equals(other.getPartitionToken())) return false; + if (!getPartitionToken() + .equals(other.getPartitionToken())) return false; } - if (!getReadOptionsList().equals(other.getReadOptionsList())) return false; + if (!getReadOptionsList() + .equals(other.getReadOptionsList())) return false; if (hasHeartbeatMilliseconds() != other.hasHeartbeatMilliseconds()) return false; if (hasHeartbeatMilliseconds()) { - if (getHeartbeatMilliseconds() != other.getHeartbeatMilliseconds()) return false; + if (getHeartbeatMilliseconds() + != other.getHeartbeatMilliseconds()) return false; } if (hasDeadlineSeconds() != other.hasDeadlineSeconds()) return false; if (hasDeadlineSeconds()) { - if (getDeadlineSeconds() != other.getDeadlineSeconds()) return false; + if (getDeadlineSeconds() + != other.getDeadlineSeconds()) return false; } if (hasCloudDatabaseRole() != other.hasCloudDatabaseRole()) return false; if (hasCloudDatabaseRole()) { - if (!getCloudDatabaseRole().equals(other.getCloudDatabaseRole())) return false; + if (!getCloudDatabaseRole() + .equals(other.getCloudDatabaseRole())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -641,7 +577,8 @@ public int hashCode() { } if (hasDeadlineSeconds()) { hash = (37 * hash) + DEADLINE_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDeadlineSeconds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeadlineSeconds()); } if (hasCloudDatabaseRole()) { hash = (37 * hash) + CLOUD_DATABASE_ROLE_FIELD_NUMBER; @@ -653,127 +590,119 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ExecuteChangeStreamQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery 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.ExecuteChangeStreamQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ExecuteChangeStreamQuery prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ExecuteChangeStreamQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Execute a change stream TVF query. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ExecuteChangeStreamQuery} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ExecuteChangeStreamQuery) com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ExecuteChangeStreamQuery.class, - com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder.class); + com.google.spanner.executor.v1.ExecuteChangeStreamQuery.class, com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder.class); } // Construct using com.google.spanner.executor.v1.ExecuteChangeStreamQuery.newBuilder() @@ -781,18 +710,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -809,7 +738,8 @@ public Builder clear() { endTimeBuilder_ = null; } partitionToken_ = ""; - readOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + readOptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); heartbeatMilliseconds_ = 0; deadlineSeconds_ = 0L; cloudDatabaseRole_ = ""; @@ -817,9 +747,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor; } @java.lang.Override @@ -838,11 +768,8 @@ public com.google.spanner.executor.v1.ExecuteChangeStreamQuery build() { @java.lang.Override public com.google.spanner.executor.v1.ExecuteChangeStreamQuery buildPartial() { - com.google.spanner.executor.v1.ExecuteChangeStreamQuery result = - new com.google.spanner.executor.v1.ExecuteChangeStreamQuery(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ExecuteChangeStreamQuery result = new com.google.spanner.executor.v1.ExecuteChangeStreamQuery(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -853,11 +780,15 @@ private void buildPartial0(com.google.spanner.executor.v1.ExecuteChangeStreamQue result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { @@ -887,39 +818,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ExecuteChangeStreamQue public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ExecuteChangeStreamQuery) { - return mergeFrom((com.google.spanner.executor.v1.ExecuteChangeStreamQuery) other); + return mergeFrom((com.google.spanner.executor.v1.ExecuteChangeStreamQuery)other); } else { super.mergeFrom(other); return this; @@ -927,8 +857,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ExecuteChangeStreamQuery other) { - if (other == com.google.spanner.executor.v1.ExecuteChangeStreamQuery.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ExecuteChangeStreamQuery.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -992,62 +921,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - partitionToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureReadOptionsIsMutable(); - readOptions_.add(s); - break; - } // case 42 - case 48: - { - heartbeatMilliseconds_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - deadlineSeconds_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: - { - cloudDatabaseRole_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + partitionToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureReadOptionsIsMutable(); + readOptions_.add(s); + break; + } // case 42 + case 48: { + heartbeatMilliseconds_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + deadlineSeconds_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + cloudDatabaseRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1057,25 +981,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1084,21 +1005,20 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1106,35 +1026,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -1144,21 +1057,17 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1168,35 +1077,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1207,8 +1107,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -1230,8 +1128,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -1239,7 +1135,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * <code>.google.protobuf.Timestamp start_time = 2;</code> */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -1250,8 +1147,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -1261,9 +1156,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1276,8 +1171,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -1296,8 +1189,6 @@ public Builder clearStartTime() { return this; } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -1311,8 +1202,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -1324,12 +1213,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -1338,17 +1226,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * <code>.google.protobuf.Timestamp start_time = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1356,35 +1241,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. * </pre> * * <code>optional .google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. * </pre> * * <code>optional .google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1395,8 +1271,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -1418,8 +1292,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -1427,7 +1299,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * <code>optional .google.protobuf.Timestamp end_time = 3;</code> */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1438,8 +1311,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -1449,9 +1320,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1464,8 +1335,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -1484,8 +1353,6 @@ public Builder clearEndTime() { return this; } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -1499,8 +1366,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -1512,12 +1377,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -1526,17 +1390,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * <code>optional .google.protobuf.Timestamp end_time = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1544,36 +1405,31 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object partitionToken_ = ""; /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return Whether the partitionToken field is set. */ public boolean hasPartitionToken() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return The partitionToken. */ public java.lang.String getPartitionToken() { java.lang.Object ref = partitionToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); partitionToken_ = s; return s; @@ -1582,22 +1438,21 @@ public java.lang.String getPartitionToken() { } } /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return The bytes for partitionToken. */ - public com.google.protobuf.ByteString getPartitionTokenBytes() { + public com.google.protobuf.ByteString + getPartitionTokenBytes() { java.lang.Object ref = partitionToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); partitionToken_ = b; return b; } else { @@ -1605,37 +1460,30 @@ public com.google.protobuf.ByteString getPartitionTokenBytes() { } } /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @param value The partitionToken to set. * @return This builder for chaining. */ - public Builder setPartitionToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPartitionToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } partitionToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return This builder for chaining. */ public Builder clearPartitionToken() { @@ -1645,22 +1493,18 @@ public Builder clearPartitionToken() { return this; } /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @param value The bytes for partitionToken to set. * @return This builder for chaining. */ - public Builder setPartitionTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPartitionTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); partitionToken_ = value; bitField0_ |= 0x00000008; @@ -1670,7 +1514,6 @@ public Builder setPartitionTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList readOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureReadOptionsIsMutable() { if (!readOptions_.isModifiable()) { readOptions_ = new com.google.protobuf.LazyStringArrayList(readOptions_); @@ -1678,43 +1521,35 @@ private void ensureReadOptionsIsMutable() { bitField0_ |= 0x00000010; } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @return A list containing the readOptions. */ - public com.google.protobuf.ProtocolStringList getReadOptionsList() { + public com.google.protobuf.ProtocolStringList + getReadOptionsList() { readOptions_.makeImmutable(); return readOptions_; } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @return The count of readOptions. */ public int getReadOptionsCount() { return readOptions_.size(); } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param index The index of the element to return. * @return The readOptions at the given index. */ @@ -1722,37 +1557,31 @@ public java.lang.String getReadOptions(int index) { return readOptions_.get(index); } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param index The index of the value to return. * @return The bytes of the readOptions at the given index. */ - public com.google.protobuf.ByteString getReadOptionsBytes(int index) { + public com.google.protobuf.ByteString + getReadOptionsBytes(int index) { return readOptions_.getByteString(index); } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param index The index to set the value at. * @param value The readOptions to set. * @return This builder for chaining. */ - public Builder setReadOptions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReadOptions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReadOptionsIsMutable(); readOptions_.set(index, value); bitField0_ |= 0x00000010; @@ -1760,21 +1589,17 @@ public Builder setReadOptions(int index, java.lang.String value) { return this; } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param value The readOptions to add. * @return This builder for chaining. */ - public Builder addReadOptions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReadOptions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReadOptionsIsMutable(); readOptions_.add(value); bitField0_ |= 0x00000010; @@ -1782,58 +1607,50 @@ public Builder addReadOptions(java.lang.String value) { return this; } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param values The readOptions to add. * @return This builder for chaining. */ - public Builder addAllReadOptions(java.lang.Iterable<java.lang.String> values) { + public Builder addAllReadOptions( + java.lang.Iterable<java.lang.String> values) { ensureReadOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, readOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, readOptions_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @return This builder for chaining. */ public Builder clearReadOptions() { - readOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + readOptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param value The bytes of the readOptions to add. * @return This builder for chaining. */ - public Builder addReadOptionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReadOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureReadOptionsIsMutable(); readOptions_.add(value); @@ -1842,17 +1659,14 @@ public Builder addReadOptionsBytes(com.google.protobuf.ByteString value) { return this; } - private int heartbeatMilliseconds_; + private int heartbeatMilliseconds_ ; /** - * - * * <pre> * Determines how frequently a heartbeat ChangeRecord will be returned in case * there are no transactions committed in this partition, in milliseconds. * </pre> * * <code>optional int32 heartbeat_milliseconds = 6;</code> - * * @return Whether the heartbeatMilliseconds field is set. */ @java.lang.Override @@ -1860,15 +1674,12 @@ public boolean hasHeartbeatMilliseconds() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * * <pre> * Determines how frequently a heartbeat ChangeRecord will be returned in case * there are no transactions committed in this partition, in milliseconds. * </pre> * * <code>optional int32 heartbeat_milliseconds = 6;</code> - * * @return The heartbeatMilliseconds. */ @java.lang.Override @@ -1876,15 +1687,12 @@ public int getHeartbeatMilliseconds() { return heartbeatMilliseconds_; } /** - * - * * <pre> * Determines how frequently a heartbeat ChangeRecord will be returned in case * there are no transactions committed in this partition, in milliseconds. * </pre> * * <code>optional int32 heartbeat_milliseconds = 6;</code> - * * @param value The heartbeatMilliseconds to set. * @return This builder for chaining. */ @@ -1896,15 +1704,12 @@ public Builder setHeartbeatMilliseconds(int value) { return this; } /** - * - * * <pre> * Determines how frequently a heartbeat ChangeRecord will be returned in case * there are no transactions committed in this partition, in milliseconds. * </pre> * * <code>optional int32 heartbeat_milliseconds = 6;</code> - * * @return This builder for chaining. */ public Builder clearHeartbeatMilliseconds() { @@ -1914,16 +1719,13 @@ public Builder clearHeartbeatMilliseconds() { return this; } - private long deadlineSeconds_; + private long deadlineSeconds_ ; /** - * - * * <pre> * Deadline for this change stream query, in seconds. * </pre> * * <code>optional int64 deadline_seconds = 7;</code> - * * @return Whether the deadlineSeconds field is set. */ @java.lang.Override @@ -1931,14 +1733,11 @@ public boolean hasDeadlineSeconds() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * * <pre> * Deadline for this change stream query, in seconds. * </pre> * * <code>optional int64 deadline_seconds = 7;</code> - * * @return The deadlineSeconds. */ @java.lang.Override @@ -1946,14 +1745,11 @@ public long getDeadlineSeconds() { return deadlineSeconds_; } /** - * - * * <pre> * Deadline for this change stream query, in seconds. * </pre> * * <code>optional int64 deadline_seconds = 7;</code> - * * @param value The deadlineSeconds to set. * @return This builder for chaining. */ @@ -1965,14 +1761,11 @@ public Builder setDeadlineSeconds(long value) { return this; } /** - * - * * <pre> * Deadline for this change stream query, in seconds. * </pre> * * <code>optional int64 deadline_seconds = 7;</code> - * * @return This builder for chaining. */ public Builder clearDeadlineSeconds() { @@ -1984,8 +1777,6 @@ public Builder clearDeadlineSeconds() { private java.lang.Object cloudDatabaseRole_ = ""; /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -1993,15 +1784,12 @@ public Builder clearDeadlineSeconds() { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return Whether the cloudDatabaseRole field is set. */ public boolean hasCloudDatabaseRole() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -2009,13 +1797,13 @@ public boolean hasCloudDatabaseRole() { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return The cloudDatabaseRole. */ public java.lang.String getCloudDatabaseRole() { java.lang.Object ref = cloudDatabaseRole_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudDatabaseRole_ = s; return s; @@ -2024,8 +1812,6 @@ public java.lang.String getCloudDatabaseRole() { } } /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -2033,14 +1819,15 @@ public java.lang.String getCloudDatabaseRole() { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return The bytes for cloudDatabaseRole. */ - public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { + public com.google.protobuf.ByteString + getCloudDatabaseRoleBytes() { java.lang.Object ref = cloudDatabaseRole_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudDatabaseRole_ = b; return b; } else { @@ -2048,8 +1835,6 @@ public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { } } /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -2057,22 +1842,18 @@ public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @param value The cloudDatabaseRole to set. * @return This builder for chaining. */ - public Builder setCloudDatabaseRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCloudDatabaseRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cloudDatabaseRole_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -2080,7 +1861,6 @@ public Builder setCloudDatabaseRole(java.lang.String value) { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return This builder for chaining. */ public Builder clearCloudDatabaseRole() { @@ -2090,8 +1870,6 @@ public Builder clearCloudDatabaseRole() { return this; } /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -2099,23 +1877,21 @@ public Builder clearCloudDatabaseRole() { * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @param value The bytes for cloudDatabaseRole to set. * @return This builder for chaining. */ - public Builder setCloudDatabaseRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCloudDatabaseRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cloudDatabaseRole_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2125,12 +1901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ExecuteChangeStreamQuery) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ExecuteChangeStreamQuery) private static final com.google.spanner.executor.v1.ExecuteChangeStreamQuery DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ExecuteChangeStreamQuery(); } @@ -2139,27 +1915,27 @@ public static com.google.spanner.executor.v1.ExecuteChangeStreamQuery getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ExecuteChangeStreamQuery> PARSER = - new com.google.protobuf.AbstractParser<ExecuteChangeStreamQuery>() { - @java.lang.Override - public ExecuteChangeStreamQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ExecuteChangeStreamQuery> + PARSER = new com.google.protobuf.AbstractParser<ExecuteChangeStreamQuery>() { + @java.lang.Override + public ExecuteChangeStreamQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ExecuteChangeStreamQuery> parser() { return PARSER; @@ -2174,4 +1950,6 @@ public com.google.protobuf.Parser<ExecuteChangeStreamQuery> getParserForType() { public com.google.spanner.executor.v1.ExecuteChangeStreamQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java similarity index 83% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java index 6c56630f2d3..dcb59b7a6d9 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecuteChangeStreamQueryOrBuilder.java @@ -1,82 +1,53 @@ -/* - * 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 interface ExecuteChangeStreamQueryOrBuilder - extends +public interface ExecuteChangeStreamQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ExecuteChangeStreamQuery) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Name for this change stream. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. * </pre> * * <code>.google.protobuf.Timestamp start_time = 2;</code> - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * * <pre> * Specifies that records with commit_timestamp greater than or equal to * start_time should be returned. @@ -87,34 +58,26 @@ public interface ExecuteChangeStreamQueryOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. * </pre> * * <code>optional .google.protobuf.Timestamp end_time = 3;</code> - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. * </pre> * * <code>optional .google.protobuf.Timestamp end_time = 3;</code> - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * * <pre> * Specifies that records with commit_timestamp less than or equal to * end_time should be returned. @@ -125,151 +88,119 @@ public interface ExecuteChangeStreamQueryOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return Whether the partitionToken field is set. */ boolean hasPartitionToken(); /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return The partitionToken. */ java.lang.String getPartitionToken(); /** - * - * * <pre> * Specifies which change stream partition to query, based on the content of * child partitions records. * </pre> * * <code>optional string partition_token = 4;</code> - * * @return The bytes for partitionToken. */ - com.google.protobuf.ByteString getPartitionTokenBytes(); + com.google.protobuf.ByteString + getPartitionTokenBytes(); /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @return A list containing the readOptions. */ - java.util.List<java.lang.String> getReadOptionsList(); + java.util.List<java.lang.String> + getReadOptionsList(); /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @return The count of readOptions. */ int getReadOptionsCount(); /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param index The index of the element to return. * @return The readOptions at the given index. */ java.lang.String getReadOptions(int index); /** - * - * * <pre> * Read options for this change stream query. * </pre> * * <code>repeated string read_options = 5;</code> - * * @param index The index of the value to return. * @return The bytes of the readOptions at the given index. */ - com.google.protobuf.ByteString getReadOptionsBytes(int index); + com.google.protobuf.ByteString + getReadOptionsBytes(int index); /** - * - * * <pre> * Determines how frequently a heartbeat ChangeRecord will be returned in case * there are no transactions committed in this partition, in milliseconds. * </pre> * * <code>optional int32 heartbeat_milliseconds = 6;</code> - * * @return Whether the heartbeatMilliseconds field is set. */ boolean hasHeartbeatMilliseconds(); /** - * - * * <pre> * Determines how frequently a heartbeat ChangeRecord will be returned in case * there are no transactions committed in this partition, in milliseconds. * </pre> * * <code>optional int32 heartbeat_milliseconds = 6;</code> - * * @return The heartbeatMilliseconds. */ int getHeartbeatMilliseconds(); /** - * - * * <pre> * Deadline for this change stream query, in seconds. * </pre> * * <code>optional int64 deadline_seconds = 7;</code> - * * @return Whether the deadlineSeconds field is set. */ boolean hasDeadlineSeconds(); /** - * - * * <pre> * Deadline for this change stream query, in seconds. * </pre> * * <code>optional int64 deadline_seconds = 7;</code> - * * @return The deadlineSeconds. */ long getDeadlineSeconds(); /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -277,13 +208,10 @@ public interface ExecuteChangeStreamQueryOrBuilder * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return Whether the cloudDatabaseRole field is set. */ boolean hasCloudDatabaseRole(); /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -291,13 +219,10 @@ public interface ExecuteChangeStreamQueryOrBuilder * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return The cloudDatabaseRole. */ java.lang.String getCloudDatabaseRole(); /** - * - * * <pre> * Database role to assume while performing this action. This should only be * set for cloud requests. Setting the database role will enforce additional @@ -305,8 +230,8 @@ public interface ExecuteChangeStreamQueryOrBuilder * </pre> * * <code>optional string cloud_database_role = 8;</code> - * * @return The bytes for cloudDatabaseRole. */ - com.google.protobuf.ByteString getCloudDatabaseRoleBytes(); + com.google.protobuf.ByteString + getCloudDatabaseRoleBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java similarity index 65% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java index 0a809a3f468..96d3d98b1c5 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionAction.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * Performs a read or query for the given partitions. This action must be * executed in the context of the same transaction that was used to generate @@ -29,50 +12,46 @@ * * Protobuf type {@code google.spanner.executor.v1.ExecutePartitionAction} */ -public final class ExecutePartitionAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExecutePartitionAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ExecutePartitionAction) ExecutePartitionActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExecutePartitionAction.newBuilder() to construct. private ExecutePartitionAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private ExecutePartitionAction() {} + private ExecutePartitionAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExecutePartitionAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecutePartitionAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecutePartitionAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ExecutePartitionAction.class, - com.google.spanner.executor.v1.ExecutePartitionAction.Builder.class); + com.google.spanner.executor.v1.ExecutePartitionAction.class, com.google.spanner.executor.v1.ExecutePartitionAction.Builder.class); } public static final int PARTITION_FIELD_NUMBER = 1; private com.google.spanner.executor.v1.BatchPartition partition_; /** - * - * * <pre> * Batch partition to execute on. * </pre> * * <code>.google.spanner.executor.v1.BatchPartition partition = 1;</code> - * * @return Whether the partition field is set. */ @java.lang.Override @@ -80,25 +59,18 @@ public boolean hasPartition() { return partition_ != null; } /** - * - * * <pre> * Batch partition to execute on. * </pre> * * <code>.google.spanner.executor.v1.BatchPartition partition = 1;</code> - * * @return The partition. */ @java.lang.Override public com.google.spanner.executor.v1.BatchPartition getPartition() { - return partition_ == null - ? com.google.spanner.executor.v1.BatchPartition.getDefaultInstance() - : partition_; + return partition_ == null ? com.google.spanner.executor.v1.BatchPartition.getDefaultInstance() : partition_; } /** - * - * * <pre> * Batch partition to execute on. * </pre> @@ -107,13 +79,10 @@ public com.google.spanner.executor.v1.BatchPartition getPartition() { */ @java.lang.Override public com.google.spanner.executor.v1.BatchPartitionOrBuilder getPartitionOrBuilder() { - return partition_ == null - ? com.google.spanner.executor.v1.BatchPartition.getDefaultInstance() - : partition_; + return partition_ == null ? com.google.spanner.executor.v1.BatchPartition.getDefaultInstance() : partition_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,7 +94,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (partition_ != null) { output.writeMessage(1, getPartition()); } @@ -139,7 +109,8 @@ public int getSerializedSize() { size = 0; if (partition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPartition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPartition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -149,17 +120,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ExecutePartitionAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ExecutePartitionAction other = - (com.google.spanner.executor.v1.ExecutePartitionAction) obj; + com.google.spanner.executor.v1.ExecutePartitionAction other = (com.google.spanner.executor.v1.ExecutePartitionAction) obj; if (hasPartition() != other.hasPartition()) return false; if (hasPartition()) { - if (!getPartition().equals(other.getPartition())) return false; + if (!getPartition() + .equals(other.getPartition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -182,104 +153,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ExecutePartitionAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ExecutePartitionAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ExecutePartitionAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ExecutePartitionAction 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.ExecutePartitionAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ExecutePartitionAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ExecutePartitionAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ExecutePartitionAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ExecutePartitionAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ExecutePartitionAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ExecutePartitionAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ExecutePartitionAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ExecutePartitionAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ExecutePartitionAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ExecutePartitionAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ExecutePartitionAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Performs a read or query for the given partitions. This action must be * executed in the context of the same transaction that was used to generate @@ -288,32 +253,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.ExecutePartitionAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ExecutePartitionAction) com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecutePartitionAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecutePartitionAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ExecutePartitionAction.class, - com.google.spanner.executor.v1.ExecutePartitionAction.Builder.class); + com.google.spanner.executor.v1.ExecutePartitionAction.class, com.google.spanner.executor.v1.ExecutePartitionAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ExecutePartitionAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor; } @java.lang.Override @@ -348,11 +314,8 @@ public com.google.spanner.executor.v1.ExecutePartitionAction build() { @java.lang.Override public com.google.spanner.executor.v1.ExecutePartitionAction buildPartial() { - com.google.spanner.executor.v1.ExecutePartitionAction result = - new com.google.spanner.executor.v1.ExecutePartitionAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ExecutePartitionAction result = new com.google.spanner.executor.v1.ExecutePartitionAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -360,7 +323,9 @@ public com.google.spanner.executor.v1.ExecutePartitionAction buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.ExecutePartitionAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.partition_ = partitionBuilder_ == null ? partition_ : partitionBuilder_.build(); + result.partition_ = partitionBuilder_ == null + ? partition_ + : partitionBuilder_.build(); } } @@ -368,39 +333,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ExecutePartitionAction public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ExecutePartitionAction) { - return mergeFrom((com.google.spanner.executor.v1.ExecutePartitionAction) other); + return mergeFrom((com.google.spanner.executor.v1.ExecutePartitionAction)other); } else { super.mergeFrom(other); return this; @@ -408,8 +372,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ExecutePartitionAction other) { - if (other == com.google.spanner.executor.v1.ExecutePartitionAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ExecutePartitionAction.getDefaultInstance()) return this; if (other.hasPartition()) { mergePartition(other.getPartition()); } @@ -439,19 +402,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPartitionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPartitionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,52 +424,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.spanner.executor.v1.BatchPartition partition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.BatchPartition, - com.google.spanner.executor.v1.BatchPartition.Builder, - com.google.spanner.executor.v1.BatchPartitionOrBuilder> - partitionBuilder_; + com.google.spanner.executor.v1.BatchPartition, com.google.spanner.executor.v1.BatchPartition.Builder, com.google.spanner.executor.v1.BatchPartitionOrBuilder> partitionBuilder_; /** - * - * * <pre> * Batch partition to execute on. * </pre> * * <code>.google.spanner.executor.v1.BatchPartition partition = 1;</code> - * * @return Whether the partition field is set. */ public boolean hasPartition() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Batch partition to execute on. * </pre> * * <code>.google.spanner.executor.v1.BatchPartition partition = 1;</code> - * * @return The partition. */ public com.google.spanner.executor.v1.BatchPartition getPartition() { if (partitionBuilder_ == null) { - return partition_ == null - ? com.google.spanner.executor.v1.BatchPartition.getDefaultInstance() - : partition_; + return partition_ == null ? com.google.spanner.executor.v1.BatchPartition.getDefaultInstance() : partition_; } else { return partitionBuilder_.getMessage(); } } /** - * - * * <pre> * Batch partition to execute on. * </pre> @@ -527,8 +476,6 @@ public Builder setPartition(com.google.spanner.executor.v1.BatchPartition value) return this; } /** - * - * * <pre> * Batch partition to execute on. * </pre> @@ -547,8 +494,6 @@ public Builder setPartition( return this; } /** - * - * * <pre> * Batch partition to execute on. * </pre> @@ -557,9 +502,9 @@ public Builder setPartition( */ public Builder mergePartition(com.google.spanner.executor.v1.BatchPartition value) { if (partitionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && partition_ != null - && partition_ != com.google.spanner.executor.v1.BatchPartition.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + partition_ != null && + partition_ != com.google.spanner.executor.v1.BatchPartition.getDefaultInstance()) { getPartitionBuilder().mergeFrom(value); } else { partition_ = value; @@ -572,8 +517,6 @@ public Builder mergePartition(com.google.spanner.executor.v1.BatchPartition valu return this; } /** - * - * * <pre> * Batch partition to execute on. * </pre> @@ -591,8 +534,6 @@ public Builder clearPartition() { return this; } /** - * - * * <pre> * Batch partition to execute on. * </pre> @@ -605,8 +546,6 @@ public com.google.spanner.executor.v1.BatchPartition.Builder getPartitionBuilder return getPartitionFieldBuilder().getBuilder(); } /** - * - * * <pre> * Batch partition to execute on. * </pre> @@ -617,14 +556,11 @@ public com.google.spanner.executor.v1.BatchPartitionOrBuilder getPartitionOrBuil if (partitionBuilder_ != null) { return partitionBuilder_.getMessageOrBuilder(); } else { - return partition_ == null - ? com.google.spanner.executor.v1.BatchPartition.getDefaultInstance() - : partition_; + return partition_ == null ? + com.google.spanner.executor.v1.BatchPartition.getDefaultInstance() : partition_; } } /** - * - * * <pre> * Batch partition to execute on. * </pre> @@ -632,24 +568,21 @@ public com.google.spanner.executor.v1.BatchPartitionOrBuilder getPartitionOrBuil * <code>.google.spanner.executor.v1.BatchPartition partition = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.BatchPartition, - com.google.spanner.executor.v1.BatchPartition.Builder, - com.google.spanner.executor.v1.BatchPartitionOrBuilder> + com.google.spanner.executor.v1.BatchPartition, com.google.spanner.executor.v1.BatchPartition.Builder, com.google.spanner.executor.v1.BatchPartitionOrBuilder> getPartitionFieldBuilder() { if (partitionBuilder_ == null) { - partitionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.BatchPartition, - com.google.spanner.executor.v1.BatchPartition.Builder, - com.google.spanner.executor.v1.BatchPartitionOrBuilder>( - getPartition(), getParentForChildren(), isClean()); + partitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.BatchPartition, com.google.spanner.executor.v1.BatchPartition.Builder, com.google.spanner.executor.v1.BatchPartitionOrBuilder>( + getPartition(), + getParentForChildren(), + isClean()); partition_ = null; } return partitionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -659,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ExecutePartitionAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ExecutePartitionAction) private static final com.google.spanner.executor.v1.ExecutePartitionAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ExecutePartitionAction(); } @@ -673,27 +606,27 @@ public static com.google.spanner.executor.v1.ExecutePartitionAction getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ExecutePartitionAction> PARSER = - new com.google.protobuf.AbstractParser<ExecutePartitionAction>() { - @java.lang.Override - public ExecutePartitionAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ExecutePartitionAction> + PARSER = new com.google.protobuf.AbstractParser<ExecutePartitionAction>() { + @java.lang.Override + public ExecutePartitionAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ExecutePartitionAction> parser() { return PARSER; @@ -708,4 +641,6 @@ public com.google.protobuf.Parser<ExecutePartitionAction> getParserForType() { public com.google.spanner.executor.v1.ExecutePartitionAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java similarity index 59% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java index a6b6713a9ed..fcd9ba6af84 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ExecutePartitionActionOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface ExecutePartitionActionOrBuilder - extends +public interface ExecutePartitionActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ExecutePartitionAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Batch partition to execute on. * </pre> * * <code>.google.spanner.executor.v1.BatchPartition partition = 1;</code> - * * @return Whether the partition field is set. */ boolean hasPartition(); /** - * - * * <pre> * Batch partition to execute on. * </pre> * * <code>.google.spanner.executor.v1.BatchPartition partition = 1;</code> - * * @return The partition. */ com.google.spanner.executor.v1.BatchPartition getPartition(); /** - * - * * <pre> * Batch partition to execute on. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java similarity index 66% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java index 7648770a9a4..16f1df25ece 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionAction.java @@ -1,80 +1,58 @@ -/* - * 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; /** - * - * * <pre> * FinishTransactionAction defines an action of finishing a transaction. * </pre> * * Protobuf type {@code google.spanner.executor.v1.FinishTransactionAction} */ -public final class FinishTransactionAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FinishTransactionAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.FinishTransactionAction) FinishTransactionActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FinishTransactionAction.newBuilder() to construct. private FinishTransactionAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private FinishTransactionAction() { mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FinishTransactionAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_FinishTransactionAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_FinishTransactionAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.FinishTransactionAction.class, - com.google.spanner.executor.v1.FinishTransactionAction.Builder.class); + com.google.spanner.executor.v1.FinishTransactionAction.class, com.google.spanner.executor.v1.FinishTransactionAction.Builder.class); } /** - * - * * <pre> * Mode indicates how the transaction should be finished. * </pre> * * Protobuf enum {@code google.spanner.executor.v1.FinishTransactionAction.Mode} */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * "MODE_UNSPECIFIED" is equivalent to "COMMIT". * </pre> @@ -83,8 +61,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ MODE_UNSPECIFIED(0), /** - * - * * <pre> * Commit the transaction. * </pre> @@ -93,8 +69,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ COMMIT(1), /** - * - * * <pre> * Drop the transaction without committing it. * </pre> @@ -106,8 +80,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * "MODE_UNSPECIFIED" is equivalent to "COMMIT". * </pre> @@ -116,8 +88,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * Commit the transaction. * </pre> @@ -126,8 +96,6 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMMIT_VALUE = 1; /** - * - * * <pre> * Drop the transaction without committing it. * </pre> @@ -136,6 +104,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ABANDON_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -160,51 +129,49 @@ public static Mode valueOf(int value) { */ public static Mode forNumber(int value) { switch (value) { - case 0: - return MODE_UNSPECIFIED; - case 1: - return COMMIT; - case 2: - return ABANDON; - default: - return null; + case 0: return MODE_UNSPECIFIED; + case 1: return COMMIT; + case 2: return ABANDON; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<Mode> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<Mode> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<Mode>() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<Mode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Mode>() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.executor.v1.FinishTransactionAction.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.spanner.executor.v1.FinishTransactionAction.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -224,44 +191,32 @@ private Mode(int value) { public static final int MODE_FIELD_NUMBER = 1; private int mode_ = 0; /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @return The mode. */ - @java.lang.Override - public com.google.spanner.executor.v1.FinishTransactionAction.Mode getMode() { - com.google.spanner.executor.v1.FinishTransactionAction.Mode result = - com.google.spanner.executor.v1.FinishTransactionAction.Mode.forNumber(mode_); - return result == null - ? com.google.spanner.executor.v1.FinishTransactionAction.Mode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.spanner.executor.v1.FinishTransactionAction.Mode getMode() { + com.google.spanner.executor.v1.FinishTransactionAction.Mode result = com.google.spanner.executor.v1.FinishTransactionAction.Mode.forNumber(mode_); + return result == null ? com.google.spanner.executor.v1.FinishTransactionAction.Mode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,10 +228,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mode_ - != com.google.spanner.executor.v1.FinishTransactionAction.Mode.MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mode_ != com.google.spanner.executor.v1.FinishTransactionAction.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } getUnknownFields().writeTo(output); @@ -288,10 +242,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (mode_ - != com.google.spanner.executor.v1.FinishTransactionAction.Mode.MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + if (mode_ != com.google.spanner.executor.v1.FinishTransactionAction.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -301,13 +254,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.FinishTransactionAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.FinishTransactionAction other = - (com.google.spanner.executor.v1.FinishTransactionAction) obj; + com.google.spanner.executor.v1.FinishTransactionAction other = (com.google.spanner.executor.v1.FinishTransactionAction) obj; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -329,136 +281,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.FinishTransactionAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.FinishTransactionAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.FinishTransactionAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.FinishTransactionAction 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.FinishTransactionAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.FinishTransactionAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.FinishTransactionAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.FinishTransactionAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.FinishTransactionAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.FinishTransactionAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.FinishTransactionAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.FinishTransactionAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.FinishTransactionAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.FinishTransactionAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.FinishTransactionAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.FinishTransactionAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * FinishTransactionAction defines an action of finishing a transaction. * </pre> * * Protobuf type {@code google.spanner.executor.v1.FinishTransactionAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.FinishTransactionAction) com.google.spanner.executor.v1.FinishTransactionActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_FinishTransactionAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_FinishTransactionAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.FinishTransactionAction.class, - com.google.spanner.executor.v1.FinishTransactionAction.Builder.class); + com.google.spanner.executor.v1.FinishTransactionAction.class, com.google.spanner.executor.v1.FinishTransactionAction.Builder.class); } // Construct using com.google.spanner.executor.v1.FinishTransactionAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor; } @java.lang.Override @@ -489,11 +436,8 @@ public com.google.spanner.executor.v1.FinishTransactionAction build() { @java.lang.Override public com.google.spanner.executor.v1.FinishTransactionAction buildPartial() { - com.google.spanner.executor.v1.FinishTransactionAction result = - new com.google.spanner.executor.v1.FinishTransactionAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.FinishTransactionAction result = new com.google.spanner.executor.v1.FinishTransactionAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -509,39 +453,38 @@ private void buildPartial0(com.google.spanner.executor.v1.FinishTransactionActio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.FinishTransactionAction) { - return mergeFrom((com.google.spanner.executor.v1.FinishTransactionAction) other); + return mergeFrom((com.google.spanner.executor.v1.FinishTransactionAction)other); } else { super.mergeFrom(other); return this; @@ -549,8 +492,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.FinishTransactionAction other) { - if (other == com.google.spanner.executor.v1.FinishTransactionAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.FinishTransactionAction.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } @@ -580,19 +522,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -602,36 +542,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int mode_ = 0; /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -642,35 +574,26 @@ public Builder setModeValue(int value) { return this; } /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @return The mode. */ @java.lang.Override public com.google.spanner.executor.v1.FinishTransactionAction.Mode getMode() { - com.google.spanner.executor.v1.FinishTransactionAction.Mode result = - com.google.spanner.executor.v1.FinishTransactionAction.Mode.forNumber(mode_); - return result == null - ? com.google.spanner.executor.v1.FinishTransactionAction.Mode.UNRECOGNIZED - : result; + com.google.spanner.executor.v1.FinishTransactionAction.Mode result = com.google.spanner.executor.v1.FinishTransactionAction.Mode.forNumber(mode_); + return result == null ? com.google.spanner.executor.v1.FinishTransactionAction.Mode.UNRECOGNIZED : result; } /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @param value The mode to set. * @return This builder for chaining. */ @@ -684,15 +607,12 @@ public Builder setMode(com.google.spanner.executor.v1.FinishTransactionAction.Mo return this; } /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @return This builder for chaining. */ public Builder clearMode() { @@ -701,9 +621,9 @@ public Builder clearMode() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -713,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.FinishTransactionAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.FinishTransactionAction) private static final com.google.spanner.executor.v1.FinishTransactionAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.FinishTransactionAction(); } @@ -727,27 +647,27 @@ public static com.google.spanner.executor.v1.FinishTransactionAction getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<FinishTransactionAction> PARSER = - new com.google.protobuf.AbstractParser<FinishTransactionAction>() { - @java.lang.Override - public FinishTransactionAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<FinishTransactionAction> + PARSER = new com.google.protobuf.AbstractParser<FinishTransactionAction>() { + @java.lang.Override + public FinishTransactionAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<FinishTransactionAction> parser() { return PARSER; @@ -762,4 +682,6 @@ public com.google.protobuf.Parser<FinishTransactionAction> getParserForType() { public com.google.spanner.executor.v1.FinishTransactionAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java similarity index 57% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java index 9b8b1833b5f..86c4f9badf8 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/FinishTransactionActionOrBuilder.java @@ -1,51 +1,29 @@ -/* - * 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 interface FinishTransactionActionOrBuilder - extends +public interface FinishTransactionActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.FinishTransactionAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** - * - * * <pre> * Defines how exactly the transaction should be completed, e.g. with * commit or abortion. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;</code> - * * @return The mode. */ com.google.spanner.executor.v1.FinishTransactionAction.Mode getMode(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java similarity index 64% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java index 82558241ea1..be0a3c7f7c4 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryAction.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * Generate database partitions for the given query. Successful outcomes will * contain database partitions in the db_partition field. @@ -28,52 +11,47 @@ * * Protobuf type {@code google.spanner.executor.v1.GenerateDbPartitionsForQueryAction} */ -public final class GenerateDbPartitionsForQueryAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateDbPartitionsForQueryAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) GenerateDbPartitionsForQueryActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateDbPartitionsForQueryAction.newBuilder() to construct. - private GenerateDbPartitionsForQueryAction( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private GenerateDbPartitionsForQueryAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private GenerateDbPartitionsForQueryAction() {} + private GenerateDbPartitionsForQueryAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateDbPartitionsForQueryAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.class, - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder.class); + com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.class, com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder.class); } private int bitField0_; public static final int QUERY_FIELD_NUMBER = 1; private com.google.spanner.executor.v1.QueryAction query_; /** - * - * * <pre> * Query to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 1;</code> - * * @return Whether the query field is set. */ @java.lang.Override @@ -81,25 +59,18 @@ public boolean hasQuery() { return query_ != null; } /** - * - * * <pre> * Query to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 1;</code> - * * @return The query. */ @java.lang.Override public com.google.spanner.executor.v1.QueryAction getQuery() { - return query_ == null - ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() - : query_; + return query_ == null ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : query_; } /** - * - * * <pre> * Query to generate partitions for. * </pre> @@ -108,23 +79,18 @@ public com.google.spanner.executor.v1.QueryAction getQuery() { */ @java.lang.Override public com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder() { - return query_ == null - ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() - : query_; + return query_ == null ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : query_; } public static final int DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER = 2; private long desiredBytesPerPartition_ = 0L; /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 2;</code> - * * @return Whether the desiredBytesPerPartition field is set. */ @java.lang.Override @@ -132,15 +98,12 @@ public boolean hasDesiredBytesPerPartition() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 2;</code> - * * @return The desiredBytesPerPartition. */ @java.lang.Override @@ -149,7 +112,6 @@ public long getDesiredBytesPerPartition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,7 +123,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (query_ != null) { output.writeMessage(1, getQuery()); } @@ -178,10 +141,12 @@ public int getSerializedSize() { size = 0; if (query_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getQuery()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, desiredBytesPerPartition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, desiredBytesPerPartition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,21 +156,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction other = - (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) obj; + com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction other = (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) obj; if (hasQuery() != other.hasQuery()) return false; if (hasQuery()) { - if (!getQuery().equals(other.getQuery())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; } if (hasDesiredBytesPerPartition() != other.hasDesiredBytesPerPartition()) return false; if (hasDesiredBytesPerPartition()) { - if (getDesiredBytesPerPartition() != other.getDesiredBytesPerPartition()) return false; + if (getDesiredBytesPerPartition() + != other.getDesiredBytesPerPartition()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -224,7 +190,8 @@ public int hashCode() { } if (hasDesiredBytesPerPartition()) { hash = (37 * hash) + DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDesiredBytesPerPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDesiredBytesPerPartition()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -232,105 +199,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateDbPartitionsForQueryAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction 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.GenerateDbPartitionsForQueryAction parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - 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.GenerateDbPartitionsForQueryAction 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.GenerateDbPartitionsForQueryAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Generate database partitions for the given query. Successful outcomes will * contain database partitions in the db_partition field. @@ -338,33 +298,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.GenerateDbPartitionsForQueryAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.class, - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder.class); + com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.class, com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder.class); } - // Construct using - // com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.newBuilder() - private Builder() {} + // Construct using com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +339,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction getDefaultInstanceForType() { return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance(); } @@ -401,20 +360,18 @@ public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction build() @java.lang.Override public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction buildPartial() { - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction result = - new com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction result = new com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction result) { + private void buildPartial0(com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.query_ = queryBuilder_ == null ? query_ : queryBuilder_.build(); + result.query_ = queryBuilder_ == null + ? query_ + : queryBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -428,50 +385,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) { - return mergeFrom((com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) other); + return mergeFrom((com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction other) { - if (other - == com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction other) { + if (other == com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance()) return this; if (other.hasQuery()) { mergeQuery(other.getQuery()); } @@ -504,25 +457,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getQueryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - desiredBytesPerPartition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getQueryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + desiredBytesPerPartition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,52 +484,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.spanner.executor.v1.QueryAction query_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> - queryBuilder_; + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder> queryBuilder_; /** - * - * * <pre> * Query to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 1;</code> - * * @return Whether the query field is set. */ public boolean hasQuery() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Query to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 1;</code> - * * @return The query. */ public com.google.spanner.executor.v1.QueryAction getQuery() { if (queryBuilder_ == null) { - return query_ == null - ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() - : query_; + return query_ == null ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : query_; } else { return queryBuilder_.getMessage(); } } /** - * - * * <pre> * Query to generate partitions for. * </pre> @@ -598,15 +536,14 @@ public Builder setQuery(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * Query to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 1;</code> */ - public Builder setQuery(com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { + public Builder setQuery( + com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { if (queryBuilder_ == null) { query_ = builderForValue.build(); } else { @@ -617,8 +554,6 @@ public Builder setQuery(com.google.spanner.executor.v1.QueryAction.Builder build return this; } /** - * - * * <pre> * Query to generate partitions for. * </pre> @@ -627,9 +562,9 @@ public Builder setQuery(com.google.spanner.executor.v1.QueryAction.Builder build */ public Builder mergeQuery(com.google.spanner.executor.v1.QueryAction value) { if (queryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && query_ != null - && query_ != com.google.spanner.executor.v1.QueryAction.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + query_ != null && + query_ != com.google.spanner.executor.v1.QueryAction.getDefaultInstance()) { getQueryBuilder().mergeFrom(value); } else { query_ = value; @@ -642,8 +577,6 @@ public Builder mergeQuery(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * Query to generate partitions for. * </pre> @@ -661,8 +594,6 @@ public Builder clearQuery() { return this; } /** - * - * * <pre> * Query to generate partitions for. * </pre> @@ -675,8 +606,6 @@ public com.google.spanner.executor.v1.QueryAction.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** - * - * * <pre> * Query to generate partitions for. * </pre> @@ -687,14 +616,11 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder() { if (queryBuilder_ != null) { return queryBuilder_.getMessageOrBuilder(); } else { - return query_ == null - ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() - : query_; + return query_ == null ? + com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : query_; } } /** - * - * * <pre> * Query to generate partitions for. * </pre> @@ -702,33 +628,27 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder() { * <code>.google.spanner.executor.v1.QueryAction query = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { - queryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder>( - getQuery(), getParentForChildren(), isClean()); + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder>( + getQuery(), + getParentForChildren(), + isClean()); query_ = null; } return queryBuilder_; } - private long desiredBytesPerPartition_; + private long desiredBytesPerPartition_ ; /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 2;</code> - * * @return Whether the desiredBytesPerPartition field is set. */ @java.lang.Override @@ -736,15 +656,12 @@ public boolean hasDesiredBytesPerPartition() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 2;</code> - * * @return The desiredBytesPerPartition. */ @java.lang.Override @@ -752,15 +669,12 @@ public long getDesiredBytesPerPartition() { return desiredBytesPerPartition_; } /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 2;</code> - * * @param value The desiredBytesPerPartition to set. * @return This builder for chaining. */ @@ -772,15 +686,12 @@ public Builder setDesiredBytesPerPartition(long value) { return this; } /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 2;</code> - * * @return This builder for chaining. */ public Builder clearDesiredBytesPerPartition() { @@ -789,9 +700,9 @@ public Builder clearDesiredBytesPerPartition() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -801,43 +712,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) - private static final com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - DEFAULT_INSTANCE; - + private static final com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction(); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - getDefaultInstance() { + public static com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GenerateDbPartitionsForQueryAction> PARSER = - new com.google.protobuf.AbstractParser<GenerateDbPartitionsForQueryAction>() { - @java.lang.Override - public GenerateDbPartitionsForQueryAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GenerateDbPartitionsForQueryAction> + PARSER = new com.google.protobuf.AbstractParser<GenerateDbPartitionsForQueryAction>() { + @java.lang.Override + public GenerateDbPartitionsForQueryAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GenerateDbPartitionsForQueryAction> parser() { return PARSER; @@ -849,8 +758,9 @@ public com.google.protobuf.Parser<GenerateDbPartitionsForQueryAction> getParserF } @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java index 5fc93a7d88c..956469cf6a5 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForQueryActionOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface GenerateDbPartitionsForQueryActionOrBuilder - extends +public interface GenerateDbPartitionsForQueryActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Query to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 1;</code> - * * @return Whether the query field is set. */ boolean hasQuery(); /** - * - * * <pre> * Query to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 1;</code> - * * @return The query. */ com.google.spanner.executor.v1.QueryAction getQuery(); /** - * - * * <pre> * Query to generate partitions for. * </pre> @@ -59,28 +35,22 @@ public interface GenerateDbPartitionsForQueryActionOrBuilder com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder(); /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 2;</code> - * * @return Whether the desiredBytesPerPartition field is set. */ boolean hasDesiredBytesPerPartition(); /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 2;</code> - * * @return The desiredBytesPerPartition. */ long getDesiredBytesPerPartition(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java index 4650176ef55..0bafb18ce46 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadAction.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * Generate database partitions for the given read. Successful outcomes will * contain database partitions in the db_partition field. @@ -28,54 +11,48 @@ * * Protobuf type {@code google.spanner.executor.v1.GenerateDbPartitionsForReadAction} */ -public final class GenerateDbPartitionsForReadAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateDbPartitionsForReadAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.GenerateDbPartitionsForReadAction) GenerateDbPartitionsForReadActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateDbPartitionsForReadAction.newBuilder() to construct. - private GenerateDbPartitionsForReadAction( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private GenerateDbPartitionsForReadAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GenerateDbPartitionsForReadAction() { table_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateDbPartitionsForReadAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.class, - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder.class); + com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.class, com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder.class); } private int bitField0_; public static final int READ_FIELD_NUMBER = 1; private com.google.spanner.executor.v1.ReadAction read_; /** - * - * * <pre> * Read to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 1;</code> - * * @return Whether the read field is set. */ @java.lang.Override @@ -83,14 +60,11 @@ public boolean hasRead() { return read_ != null; } /** - * - * * <pre> * Read to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 1;</code> - * * @return The read. */ @java.lang.Override @@ -98,8 +72,6 @@ public com.google.spanner.executor.v1.ReadAction getRead() { return read_ == null ? com.google.spanner.executor.v1.ReadAction.getDefaultInstance() : read_; } /** - * - * * <pre> * Read to generate partitions for. * </pre> @@ -112,12 +84,9 @@ public com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder() { } public static final int TABLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.TableMetadata> table_; /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -129,8 +98,6 @@ public java.util.List<com.google.spanner.executor.v1.TableMetadata> getTableList return table_; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -138,13 +105,11 @@ public java.util.List<com.google.spanner.executor.v1.TableMetadata> getTableList * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> getTableOrBuilderList() { return table_; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -156,8 +121,6 @@ public int getTableCount() { return table_.size(); } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -169,8 +132,6 @@ public com.google.spanner.executor.v1.TableMetadata getTable(int index) { return table_.get(index); } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -178,22 +139,20 @@ public com.google.spanner.executor.v1.TableMetadata getTable(int index) { * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(int index) { + public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder( + int index) { return table_.get(index); } public static final int DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER = 3; private long desiredBytesPerPartition_ = 0L; /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 3;</code> - * * @return Whether the desiredBytesPerPartition field is set. */ @java.lang.Override @@ -201,15 +160,12 @@ public boolean hasDesiredBytesPerPartition() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 3;</code> - * * @return The desiredBytesPerPartition. */ @java.lang.Override @@ -220,15 +176,12 @@ public long getDesiredBytesPerPartition() { public static final int MAX_PARTITION_COUNT_FIELD_NUMBER = 4; private long maxPartitionCount_ = 0L; /** - * - * * <pre> * If set, the desired max number of partitions. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 max_partition_count = 4;</code> - * * @return Whether the maxPartitionCount field is set. */ @java.lang.Override @@ -236,15 +189,12 @@ public boolean hasMaxPartitionCount() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * If set, the desired max number of partitions. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 max_partition_count = 4;</code> - * * @return The maxPartitionCount. */ @java.lang.Override @@ -253,7 +203,6 @@ public long getMaxPartitionCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +214,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (read_ != null) { output.writeMessage(1, getRead()); } @@ -288,16 +238,20 @@ public int getSerializedSize() { size = 0; if (read_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRead()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRead()); } for (int i = 0; i < table_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, table_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, table_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, desiredBytesPerPartition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, desiredBytesPerPartition_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, maxPartitionCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, maxPartitionCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -307,26 +261,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction other = - (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) obj; + com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction other = (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) obj; if (hasRead() != other.hasRead()) return false; if (hasRead()) { - if (!getRead().equals(other.getRead())) return false; + if (!getRead() + .equals(other.getRead())) return false; } - if (!getTableList().equals(other.getTableList())) return false; + if (!getTableList() + .equals(other.getTableList())) return false; if (hasDesiredBytesPerPartition() != other.hasDesiredBytesPerPartition()) return false; if (hasDesiredBytesPerPartition()) { - if (getDesiredBytesPerPartition() != other.getDesiredBytesPerPartition()) return false; + if (getDesiredBytesPerPartition() + != other.getDesiredBytesPerPartition()) return false; } if (hasMaxPartitionCount() != other.hasMaxPartitionCount()) return false; if (hasMaxPartitionCount()) { - if (getMaxPartitionCount() != other.getMaxPartitionCount()) return false; + if (getMaxPartitionCount() + != other.getMaxPartitionCount()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -349,11 +306,13 @@ public int hashCode() { } if (hasDesiredBytesPerPartition()) { hash = (37 * hash) + DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDesiredBytesPerPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDesiredBytesPerPartition()); } if (hasMaxPartitionCount()) { hash = (37 * hash) + MAX_PARTITION_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxPartitionCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxPartitionCount()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -361,104 +320,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateDbPartitionsForReadAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction 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.GenerateDbPartitionsForReadAction parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Generate database partitions for the given read. Successful outcomes will * contain database partitions in the db_partition field. @@ -466,32 +419,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.GenerateDbPartitionsForReadAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.GenerateDbPartitionsForReadAction) com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.class, - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder.class); + com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.class, com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder.class); } // Construct using com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -514,14 +468,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction getDefaultInstanceForType() { return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance(); } @@ -536,18 +489,14 @@ public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction build() @java.lang.Override public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction buildPartial() { - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction result = - new com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction(this); + com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction result = new com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction result) { if (tableBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { table_ = java.util.Collections.unmodifiableList(table_); @@ -559,11 +508,12 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction result) { + private void buildPartial0(com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.read_ = readBuilder_ == null ? read_ : readBuilder_.build(); + result.read_ = readBuilder_ == null + ? read_ + : readBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { @@ -581,50 +531,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) { - return mergeFrom((com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) other); + return mergeFrom((com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction other) { - if (other - == com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction other) { + if (other == com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance()) return this; if (other.hasRead()) { mergeRead(other.getRead()); } @@ -646,10 +592,9 @@ public Builder mergeFrom( tableBuilder_ = null; table_ = other.table_; bitField0_ = (bitField0_ & ~0x00000002); - tableBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTableFieldBuilder() - : null; + tableBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTableFieldBuilder() : null; } else { tableBuilder_.addAllMessages(other.table_); } @@ -687,44 +632,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getReadFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.spanner.executor.v1.TableMetadata m = - input.readMessage( - com.google.spanner.executor.v1.TableMetadata.parser(), extensionRegistry); - if (tableBuilder_ == null) { - ensureTableIsMutable(); - table_.add(m); - } else { - tableBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - desiredBytesPerPartition_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - maxPartitionCount_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getReadFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.spanner.executor.v1.TableMetadata m = + input.readMessage( + com.google.spanner.executor.v1.TableMetadata.parser(), + extensionRegistry); + if (tableBuilder_ == null) { + ensureTableIsMutable(); + table_.add(m); + } else { + tableBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + desiredBytesPerPartition_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + maxPartitionCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,52 +677,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.spanner.executor.v1.ReadAction read_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadAction, - com.google.spanner.executor.v1.ReadAction.Builder, - com.google.spanner.executor.v1.ReadActionOrBuilder> - readBuilder_; + com.google.spanner.executor.v1.ReadAction, com.google.spanner.executor.v1.ReadAction.Builder, com.google.spanner.executor.v1.ReadActionOrBuilder> readBuilder_; /** - * - * * <pre> * Read to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 1;</code> - * * @return Whether the read field is set. */ public boolean hasRead() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Read to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 1;</code> - * * @return The read. */ public com.google.spanner.executor.v1.ReadAction getRead() { if (readBuilder_ == null) { - return read_ == null - ? com.google.spanner.executor.v1.ReadAction.getDefaultInstance() - : read_; + return read_ == null ? com.google.spanner.executor.v1.ReadAction.getDefaultInstance() : read_; } else { return readBuilder_.getMessage(); } } /** - * - * * <pre> * Read to generate partitions for. * </pre> @@ -800,15 +729,14 @@ public Builder setRead(com.google.spanner.executor.v1.ReadAction value) { return this; } /** - * - * * <pre> * Read to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 1;</code> */ - public Builder setRead(com.google.spanner.executor.v1.ReadAction.Builder builderForValue) { + public Builder setRead( + com.google.spanner.executor.v1.ReadAction.Builder builderForValue) { if (readBuilder_ == null) { read_ = builderForValue.build(); } else { @@ -819,8 +747,6 @@ public Builder setRead(com.google.spanner.executor.v1.ReadAction.Builder builder return this; } /** - * - * * <pre> * Read to generate partitions for. * </pre> @@ -829,9 +755,9 @@ public Builder setRead(com.google.spanner.executor.v1.ReadAction.Builder builder */ public Builder mergeRead(com.google.spanner.executor.v1.ReadAction value) { if (readBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && read_ != null - && read_ != com.google.spanner.executor.v1.ReadAction.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + read_ != null && + read_ != com.google.spanner.executor.v1.ReadAction.getDefaultInstance()) { getReadBuilder().mergeFrom(value); } else { read_ = value; @@ -844,8 +770,6 @@ public Builder mergeRead(com.google.spanner.executor.v1.ReadAction value) { return this; } /** - * - * * <pre> * Read to generate partitions for. * </pre> @@ -863,8 +787,6 @@ public Builder clearRead() { return this; } /** - * - * * <pre> * Read to generate partitions for. * </pre> @@ -877,8 +799,6 @@ public com.google.spanner.executor.v1.ReadAction.Builder getReadBuilder() { return getReadFieldBuilder().getBuilder(); } /** - * - * * <pre> * Read to generate partitions for. * </pre> @@ -889,14 +809,11 @@ public com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder() { if (readBuilder_ != null) { return readBuilder_.getMessageOrBuilder(); } else { - return read_ == null - ? com.google.spanner.executor.v1.ReadAction.getDefaultInstance() - : read_; + return read_ == null ? + com.google.spanner.executor.v1.ReadAction.getDefaultInstance() : read_; } } /** - * - * * <pre> * Read to generate partitions for. * </pre> @@ -904,41 +821,32 @@ public com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder() { * <code>.google.spanner.executor.v1.ReadAction read = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadAction, - com.google.spanner.executor.v1.ReadAction.Builder, - com.google.spanner.executor.v1.ReadActionOrBuilder> + com.google.spanner.executor.v1.ReadAction, com.google.spanner.executor.v1.ReadAction.Builder, com.google.spanner.executor.v1.ReadActionOrBuilder> getReadFieldBuilder() { if (readBuilder_ == null) { - readBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadAction, - com.google.spanner.executor.v1.ReadAction.Builder, - com.google.spanner.executor.v1.ReadActionOrBuilder>( - getRead(), getParentForChildren(), isClean()); + readBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.ReadAction, com.google.spanner.executor.v1.ReadAction.Builder, com.google.spanner.executor.v1.ReadActionOrBuilder>( + getRead(), + getParentForChildren(), + isClean()); read_ = null; } return readBuilder_; } private java.util.List<com.google.spanner.executor.v1.TableMetadata> table_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { table_ = new java.util.ArrayList<com.google.spanner.executor.v1.TableMetadata>(table_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.TableMetadata, - com.google.spanner.executor.v1.TableMetadata.Builder, - com.google.spanner.executor.v1.TableMetadataOrBuilder> - tableBuilder_; + com.google.spanner.executor.v1.TableMetadata, com.google.spanner.executor.v1.TableMetadata.Builder, com.google.spanner.executor.v1.TableMetadataOrBuilder> tableBuilder_; /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -953,8 +861,6 @@ public java.util.List<com.google.spanner.executor.v1.TableMetadata> getTableList } } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -969,8 +875,6 @@ public int getTableCount() { } } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -985,15 +889,14 @@ public com.google.spanner.executor.v1.TableMetadata getTable(int index) { } } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public Builder setTable(int index, com.google.spanner.executor.v1.TableMetadata value) { + public Builder setTable( + int index, com.google.spanner.executor.v1.TableMetadata value) { if (tableBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1007,8 +910,6 @@ public Builder setTable(int index, com.google.spanner.executor.v1.TableMetadata return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -1027,8 +928,6 @@ public Builder setTable( return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -1049,15 +948,14 @@ public Builder addTable(com.google.spanner.executor.v1.TableMetadata value) { return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public Builder addTable(int index, com.google.spanner.executor.v1.TableMetadata value) { + public Builder addTable( + int index, com.google.spanner.executor.v1.TableMetadata value) { if (tableBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1071,15 +969,14 @@ public Builder addTable(int index, com.google.spanner.executor.v1.TableMetadata return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public Builder addTable(com.google.spanner.executor.v1.TableMetadata.Builder builderForValue) { + public Builder addTable( + com.google.spanner.executor.v1.TableMetadata.Builder builderForValue) { if (tableBuilder_ == null) { ensureTableIsMutable(); table_.add(builderForValue.build()); @@ -1090,8 +987,6 @@ public Builder addTable(com.google.spanner.executor.v1.TableMetadata.Builder bui return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -1110,8 +1005,6 @@ public Builder addTable( return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -1122,7 +1015,8 @@ public Builder addAllTable( java.lang.Iterable<? extends com.google.spanner.executor.v1.TableMetadata> values) { if (tableBuilder_ == null) { ensureTableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, table_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, table_); onChanged(); } else { tableBuilder_.addAllMessages(values); @@ -1130,8 +1024,6 @@ public Builder addAllTable( return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -1149,8 +1041,6 @@ public Builder clearTable() { return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -1168,44 +1058,39 @@ public Builder removeTable(int index) { return this; } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public com.google.spanner.executor.v1.TableMetadata.Builder getTableBuilder(int index) { + public com.google.spanner.executor.v1.TableMetadata.Builder getTableBuilder( + int index) { return getTableFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(int index) { + public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder( + int index) { if (tableBuilder_ == null) { - return table_.get(index); - } else { + return table_.get(index); } else { return tableBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> - getTableOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> + getTableOrBuilderList() { if (tableBuilder_ != null) { return tableBuilder_.getMessageOrBuilderList(); } else { @@ -1213,8 +1098,6 @@ public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(i } } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -1222,64 +1105,55 @@ public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(i * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder() { - return getTableFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.TableMetadata.getDefaultInstance()); + return getTableFieldBuilder().addBuilder( + com.google.spanner.executor.v1.TableMetadata.getDefaultInstance()); } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder(int index) { - return getTableFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.TableMetadata.getDefaultInstance()); + public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder( + int index) { + return getTableFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.TableMetadata.getDefaultInstance()); } /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public java.util.List<com.google.spanner.executor.v1.TableMetadata.Builder> - getTableBuilderList() { + public java.util.List<com.google.spanner.executor.v1.TableMetadata.Builder> + getTableBuilderList() { return getTableFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.TableMetadata, - com.google.spanner.executor.v1.TableMetadata.Builder, - com.google.spanner.executor.v1.TableMetadataOrBuilder> + com.google.spanner.executor.v1.TableMetadata, com.google.spanner.executor.v1.TableMetadata.Builder, com.google.spanner.executor.v1.TableMetadataOrBuilder> getTableFieldBuilder() { if (tableBuilder_ == null) { - tableBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.TableMetadata, - com.google.spanner.executor.v1.TableMetadata.Builder, - com.google.spanner.executor.v1.TableMetadataOrBuilder>( - table_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + tableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.TableMetadata, com.google.spanner.executor.v1.TableMetadata.Builder, com.google.spanner.executor.v1.TableMetadataOrBuilder>( + table_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); table_ = null; } return tableBuilder_; } - private long desiredBytesPerPartition_; + private long desiredBytesPerPartition_ ; /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 3;</code> - * * @return Whether the desiredBytesPerPartition field is set. */ @java.lang.Override @@ -1287,15 +1161,12 @@ public boolean hasDesiredBytesPerPartition() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 3;</code> - * * @return The desiredBytesPerPartition. */ @java.lang.Override @@ -1303,15 +1174,12 @@ public long getDesiredBytesPerPartition() { return desiredBytesPerPartition_; } /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 3;</code> - * * @param value The desiredBytesPerPartition to set. * @return This builder for chaining. */ @@ -1323,15 +1191,12 @@ public Builder setDesiredBytesPerPartition(long value) { return this; } /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 3;</code> - * * @return This builder for chaining. */ public Builder clearDesiredBytesPerPartition() { @@ -1341,17 +1206,14 @@ public Builder clearDesiredBytesPerPartition() { return this; } - private long maxPartitionCount_; + private long maxPartitionCount_ ; /** - * - * * <pre> * If set, the desired max number of partitions. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 max_partition_count = 4;</code> - * * @return Whether the maxPartitionCount field is set. */ @java.lang.Override @@ -1359,15 +1221,12 @@ public boolean hasMaxPartitionCount() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * If set, the desired max number of partitions. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 max_partition_count = 4;</code> - * * @return The maxPartitionCount. */ @java.lang.Override @@ -1375,15 +1234,12 @@ public long getMaxPartitionCount() { return maxPartitionCount_; } /** - * - * * <pre> * If set, the desired max number of partitions. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 max_partition_count = 4;</code> - * * @param value The maxPartitionCount to set. * @return This builder for chaining. */ @@ -1395,15 +1251,12 @@ public Builder setMaxPartitionCount(long value) { return this; } /** - * - * * <pre> * If set, the desired max number of partitions. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 max_partition_count = 4;</code> - * * @return This builder for chaining. */ public Builder clearMaxPartitionCount() { @@ -1412,9 +1265,9 @@ public Builder clearMaxPartitionCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1424,43 +1277,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.GenerateDbPartitionsForReadAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.GenerateDbPartitionsForReadAction) - private static final com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - DEFAULT_INSTANCE; - + private static final com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction(); } - public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - getDefaultInstance() { + public static com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GenerateDbPartitionsForReadAction> PARSER = - new com.google.protobuf.AbstractParser<GenerateDbPartitionsForReadAction>() { - @java.lang.Override - public GenerateDbPartitionsForReadAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GenerateDbPartitionsForReadAction> + PARSER = new com.google.protobuf.AbstractParser<GenerateDbPartitionsForReadAction>() { + @java.lang.Override + public GenerateDbPartitionsForReadAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GenerateDbPartitionsForReadAction> parser() { return PARSER; @@ -1472,8 +1323,9 @@ public com.google.protobuf.Parser<GenerateDbPartitionsForReadAction> getParserFo } @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java similarity index 77% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java index 894e57aeaa0..1ab39dcdc06 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GenerateDbPartitionsForReadActionOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface GenerateDbPartitionsForReadActionOrBuilder - extends +public interface GenerateDbPartitionsForReadActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.GenerateDbPartitionsForReadAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Read to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 1;</code> - * * @return Whether the read field is set. */ boolean hasRead(); /** - * - * * <pre> * Read to generate partitions for. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 1;</code> - * * @return The read. */ com.google.spanner.executor.v1.ReadAction getRead(); /** - * - * * <pre> * Read to generate partitions for. * </pre> @@ -59,18 +35,15 @@ public interface GenerateDbPartitionsForReadActionOrBuilder com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder(); /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - java.util.List<com.google.spanner.executor.v1.TableMetadata> getTableList(); + java.util.List<com.google.spanner.executor.v1.TableMetadata> + getTableList(); /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -79,8 +52,6 @@ public interface GenerateDbPartitionsForReadActionOrBuilder */ com.google.spanner.executor.v1.TableMetadata getTable(int index); /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> @@ -89,77 +60,62 @@ public interface GenerateDbPartitionsForReadActionOrBuilder */ int getTableCount(); /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> getTableOrBuilderList(); /** - * - * * <pre> * Metadata related to the tables involved in the read. * </pre> * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(int index); + com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder( + int index); /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 3;</code> - * * @return Whether the desiredBytesPerPartition field is set. */ boolean hasDesiredBytesPerPartition(); /** - * - * * <pre> * Desired size of data in each partition. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 desired_bytes_per_partition = 3;</code> - * * @return The desiredBytesPerPartition. */ long getDesiredBytesPerPartition(); /** - * - * * <pre> * If set, the desired max number of partitions. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 max_partition_count = 4;</code> - * * @return Whether the maxPartitionCount field is set. */ boolean hasMaxPartitionCount(); /** - * - * * <pre> * If set, the desired max number of partitions. Spanner doesn't guarantee to * respect this value. * </pre> * * <code>optional int64 max_partition_count = 4;</code> - * * @return The maxPartitionCount. */ long getMaxPartitionCount(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java index d3f8cbc5e68..0d77574ea06 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetCloudBackupAction} */ -public final class GetCloudBackupAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCloudBackupAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.GetCloudBackupAction) GetCloudBackupActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCloudBackupAction.newBuilder() to construct. private GetCloudBackupAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetCloudBackupAction() { projectId_ = ""; instanceId_ = ""; @@ -45,38 +27,33 @@ private GetCloudBackupAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCloudBackupAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudBackupAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudBackupAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetCloudBackupAction.class, - com.google.spanner.executor.v1.GetCloudBackupAction.Builder.class); + com.google.spanner.executor.v1.GetCloudBackupAction.class, com.google.spanner.executor.v1.GetCloudBackupAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -167,18 +140,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int BACKUP_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ @java.lang.Override @@ -187,29 +156,29 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -218,7 +187,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -266,17 +235,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.GetCloudBackupAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.GetCloudBackupAction other = - (com.google.spanner.executor.v1.GetCloudBackupAction) obj; + com.google.spanner.executor.v1.GetCloudBackupAction other = (com.google.spanner.executor.v1.GetCloudBackupAction) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getBackupId().equals(other.getBackupId())) return false; + 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; } @@ -300,135 +271,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.GetCloudBackupAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudBackupAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetCloudBackupAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudBackupAction 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.GetCloudBackupAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudBackupAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.GetCloudBackupAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetCloudBackupAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetCloudBackupAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetCloudBackupAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetCloudBackupAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.GetCloudBackupAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetCloudBackupAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetCloudBackupAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.GetCloudBackupAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that gets a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetCloudBackupAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.GetCloudBackupAction) com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudBackupAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudBackupAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetCloudBackupAction.class, - com.google.spanner.executor.v1.GetCloudBackupAction.Builder.class); + com.google.spanner.executor.v1.GetCloudBackupAction.class, com.google.spanner.executor.v1.GetCloudBackupAction.Builder.class); } // Construct using com.google.spanner.executor.v1.GetCloudBackupAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor; } @java.lang.Override @@ -461,11 +428,8 @@ public com.google.spanner.executor.v1.GetCloudBackupAction build() { @java.lang.Override public com.google.spanner.executor.v1.GetCloudBackupAction buildPartial() { - com.google.spanner.executor.v1.GetCloudBackupAction result = - new com.google.spanner.executor.v1.GetCloudBackupAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.GetCloudBackupAction result = new com.google.spanner.executor.v1.GetCloudBackupAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -487,39 +451,38 @@ private void buildPartial0(com.google.spanner.executor.v1.GetCloudBackupAction r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.GetCloudBackupAction) { - return mergeFrom((com.google.spanner.executor.v1.GetCloudBackupAction) other); + return mergeFrom((com.google.spanner.executor.v1.GetCloudBackupAction)other); } else { super.mergeFrom(other); return this; @@ -527,8 +490,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.GetCloudBackupAction other) { - if (other == com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -570,31 +532,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,25 +562,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -631,21 +586,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -653,35 +607,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -691,21 +638,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -715,20 +658,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -737,21 +678,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -759,35 +699,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -797,21 +730,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -821,20 +750,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -843,21 +770,20 @@ public java.lang.String getBackupId() { } } /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -865,35 +791,28 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearBackupId() { @@ -903,30 +822,26 @@ public Builder clearBackupId() { return this; } /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,12 +851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.GetCloudBackupAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.GetCloudBackupAction) private static final com.google.spanner.executor.v1.GetCloudBackupAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.GetCloudBackupAction(); } @@ -950,27 +865,27 @@ public static com.google.spanner.executor.v1.GetCloudBackupAction getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetCloudBackupAction> PARSER = - new com.google.protobuf.AbstractParser<GetCloudBackupAction>() { - @java.lang.Override - public GetCloudBackupAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetCloudBackupAction> + PARSER = new com.google.protobuf.AbstractParser<GetCloudBackupAction>() { + @java.lang.Override + public GetCloudBackupAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetCloudBackupAction> parser() { return PARSER; @@ -985,4 +900,6 @@ public com.google.protobuf.Parser<GetCloudBackupAction> getParserForType() { public com.google.spanner.executor.v1.GetCloudBackupAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java similarity index 61% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java index 993df879633..7a91e925628 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudBackupActionOrBuilder.java @@ -1,100 +1,69 @@ -/* - * 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 interface GetCloudBackupActionOrBuilder - extends +public interface GetCloudBackupActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.GetCloudBackupAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * * <pre> * The id of the backup to get, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java index bda9567e815..3a0355125e1 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetCloudDatabaseAction} */ -public final class GetCloudDatabaseAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCloudDatabaseAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.GetCloudDatabaseAction) GetCloudDatabaseActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCloudDatabaseAction.newBuilder() to construct. private GetCloudDatabaseAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetCloudDatabaseAction() { projectId_ = ""; instanceId_ = ""; @@ -45,38 +27,33 @@ private GetCloudDatabaseAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCloudDatabaseAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetCloudDatabaseAction.class, - com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder.class); + com.google.spanner.executor.v1.GetCloudDatabaseAction.class, com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -167,18 +140,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int DATABASE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The databaseId. */ @java.lang.Override @@ -187,29 +156,29 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -218,7 +187,6 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -266,17 +235,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.GetCloudDatabaseAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.GetCloudDatabaseAction other = - (com.google.spanner.executor.v1.GetCloudDatabaseAction) obj; + com.google.spanner.executor.v1.GetCloudDatabaseAction other = (com.google.spanner.executor.v1.GetCloudDatabaseAction) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getDatabaseId() + .equals(other.getDatabaseId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,136 +271,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetCloudDatabaseAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudDatabaseAction 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.GetCloudDatabaseAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetCloudDatabaseAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.GetCloudDatabaseAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.GetCloudDatabaseAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that gets a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetCloudDatabaseAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.GetCloudDatabaseAction) com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetCloudDatabaseAction.class, - com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder.class); + com.google.spanner.executor.v1.GetCloudDatabaseAction.class, com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder.class); } // Construct using com.google.spanner.executor.v1.GetCloudDatabaseAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor; } @java.lang.Override @@ -462,11 +428,8 @@ public com.google.spanner.executor.v1.GetCloudDatabaseAction build() { @java.lang.Override public com.google.spanner.executor.v1.GetCloudDatabaseAction buildPartial() { - com.google.spanner.executor.v1.GetCloudDatabaseAction result = - new com.google.spanner.executor.v1.GetCloudDatabaseAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.GetCloudDatabaseAction result = new com.google.spanner.executor.v1.GetCloudDatabaseAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -488,39 +451,38 @@ private void buildPartial0(com.google.spanner.executor.v1.GetCloudDatabaseAction public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.GetCloudDatabaseAction) { - return mergeFrom((com.google.spanner.executor.v1.GetCloudDatabaseAction) other); + return mergeFrom((com.google.spanner.executor.v1.GetCloudDatabaseAction)other); } else { super.mergeFrom(other); return this; @@ -528,8 +490,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.GetCloudDatabaseAction other) { - if (other == com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -571,31 +532,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - databaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,25 +562,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -632,21 +586,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -654,35 +607,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -692,21 +638,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -716,20 +658,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -738,21 +678,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -760,35 +699,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -798,21 +730,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -822,20 +750,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseId_ = ""; /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -844,21 +770,20 @@ public java.lang.String getDatabaseId() { } } /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -866,35 +791,28 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } } /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseId() { @@ -904,30 +822,26 @@ public Builder clearDatabaseId() { return this; } /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -937,12 +851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.GetCloudDatabaseAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.GetCloudDatabaseAction) private static final com.google.spanner.executor.v1.GetCloudDatabaseAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.GetCloudDatabaseAction(); } @@ -951,27 +865,27 @@ public static com.google.spanner.executor.v1.GetCloudDatabaseAction getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetCloudDatabaseAction> PARSER = - new com.google.protobuf.AbstractParser<GetCloudDatabaseAction>() { - @java.lang.Override - public GetCloudDatabaseAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetCloudDatabaseAction> + PARSER = new com.google.protobuf.AbstractParser<GetCloudDatabaseAction>() { + @java.lang.Override + public GetCloudDatabaseAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetCloudDatabaseAction> parser() { return PARSER; @@ -986,4 +900,6 @@ public com.google.protobuf.Parser<GetCloudDatabaseAction> getParserForType() { public com.google.spanner.executor.v1.GetCloudDatabaseAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java similarity index 61% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java index 39196819f75..93d3cfa3f3c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudDatabaseActionOrBuilder.java @@ -1,100 +1,69 @@ -/* - * 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 interface GetCloudDatabaseActionOrBuilder - extends +public interface GetCloudDatabaseActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.GetCloudDatabaseAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The databaseId. */ java.lang.String getDatabaseId(); /** - * - * * <pre> * The id of the database to get, e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString getDatabaseIdBytes(); + com.google.protobuf.ByteString + getDatabaseIdBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java index 5e0a0e201df..298fdfaade4 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetCloudInstanceAction} */ -public final class GetCloudInstanceAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCloudInstanceAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.GetCloudInstanceAction) GetCloudInstanceActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCloudInstanceAction.newBuilder() to construct. private GetCloudInstanceAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetCloudInstanceAction() { projectId_ = ""; instanceId_ = ""; @@ -44,38 +26,33 @@ private GetCloudInstanceAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCloudInstanceAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetCloudInstanceAction.class, - com.google.spanner.executor.v1.GetCloudInstanceAction.Builder.class); + com.google.spanner.executor.v1.GetCloudInstanceAction.class, com.google.spanner.executor.v1.GetCloudInstanceAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -115,19 +92,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -136,30 +109,30 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -168,7 +141,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,7 +152,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -210,16 +183,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.GetCloudInstanceAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.GetCloudInstanceAction other = - (com.google.spanner.executor.v1.GetCloudInstanceAction) obj; + com.google.spanner.executor.v1.GetCloudInstanceAction other = (com.google.spanner.executor.v1.GetCloudInstanceAction) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,136 +215,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.GetCloudInstanceAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudInstanceAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetCloudInstanceAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudInstanceAction 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.GetCloudInstanceAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudInstanceAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.GetCloudInstanceAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetCloudInstanceAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetCloudInstanceAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetCloudInstanceAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetCloudInstanceAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.GetCloudInstanceAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetCloudInstanceAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetCloudInstanceAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.GetCloudInstanceAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.GetCloudInstanceAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that retrieves a Cloud Spanner instance. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetCloudInstanceAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.GetCloudInstanceAction) com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetCloudInstanceAction.class, - com.google.spanner.executor.v1.GetCloudInstanceAction.Builder.class); + com.google.spanner.executor.v1.GetCloudInstanceAction.class, com.google.spanner.executor.v1.GetCloudInstanceAction.Builder.class); } // Construct using com.google.spanner.executor.v1.GetCloudInstanceAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor; } @java.lang.Override @@ -402,11 +371,8 @@ public com.google.spanner.executor.v1.GetCloudInstanceAction build() { @java.lang.Override public com.google.spanner.executor.v1.GetCloudInstanceAction buildPartial() { - com.google.spanner.executor.v1.GetCloudInstanceAction result = - new com.google.spanner.executor.v1.GetCloudInstanceAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.GetCloudInstanceAction result = new com.google.spanner.executor.v1.GetCloudInstanceAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -425,39 +391,38 @@ private void buildPartial0(com.google.spanner.executor.v1.GetCloudInstanceAction public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.GetCloudInstanceAction) { - return mergeFrom((com.google.spanner.executor.v1.GetCloudInstanceAction) other); + return mergeFrom((com.google.spanner.executor.v1.GetCloudInstanceAction)other); } else { super.mergeFrom(other); return this; @@ -465,8 +430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.GetCloudInstanceAction other) { - if (other == com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -503,25 +467,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -531,25 +492,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -558,21 +516,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -580,35 +537,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -618,21 +568,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -642,21 +588,19 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -665,22 +609,21 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -688,37 +631,30 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -728,31 +664,27 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -762,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.GetCloudInstanceAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.GetCloudInstanceAction) private static final com.google.spanner.executor.v1.GetCloudInstanceAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.GetCloudInstanceAction(); } @@ -776,27 +708,27 @@ public static com.google.spanner.executor.v1.GetCloudInstanceAction getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetCloudInstanceAction> PARSER = - new com.google.protobuf.AbstractParser<GetCloudInstanceAction>() { - @java.lang.Override - public GetCloudInstanceAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetCloudInstanceAction> + PARSER = new com.google.protobuf.AbstractParser<GetCloudInstanceAction>() { + @java.lang.Override + public GetCloudInstanceAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetCloudInstanceAction> parser() { return PARSER; @@ -811,4 +743,6 @@ public com.google.protobuf.Parser<GetCloudInstanceAction> getParserForType() { public com.google.spanner.executor.v1.GetCloudInstanceAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java similarity index 57% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java index 95714251e02..5a984c96a6f 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceActionOrBuilder.java @@ -1,77 +1,51 @@ -/* - * 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 interface GetCloudInstanceActionOrBuilder - extends +public interface GetCloudInstanceActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.GetCloudInstanceAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path) to retrieve the instance from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java index 1be88c14e67..40b64d03ed3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that gets a user instance config. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetCloudInstanceConfigAction} */ -public final class GetCloudInstanceConfigAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCloudInstanceConfigAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.GetCloudInstanceConfigAction) GetCloudInstanceConfigActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCloudInstanceConfigAction.newBuilder() to construct. private GetCloudInstanceConfigAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetCloudInstanceConfigAction() { instanceConfigId_ = ""; projectId_ = ""; @@ -44,38 +26,33 @@ private GetCloudInstanceConfigAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCloudInstanceConfigAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetCloudInstanceConfigAction.class, - com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder.class); + com.google.spanner.executor.v1.GetCloudInstanceConfigAction.class, com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder.class); } public static final int INSTANCE_CONFIG_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object instanceConfigId_ = ""; /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @return The instanceConfigId. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getInstanceConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceConfigId_ = s; return s; } } /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @return The bytes for instanceConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceConfigId_ = b; return b; } else { @@ -115,18 +92,14 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -135,29 +108,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -166,7 +139,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceConfigId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceConfigId_); } @@ -208,16 +181,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.GetCloudInstanceConfigAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.GetCloudInstanceConfigAction other = - (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) obj; + com.google.spanner.executor.v1.GetCloudInstanceConfigAction other = (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) obj; - if (!getInstanceConfigId().equals(other.getInstanceConfigId())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getInstanceConfigId() + .equals(other.getInstanceConfigId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,136 +213,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetCloudInstanceConfigAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction 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.GetCloudInstanceConfigAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.GetCloudInstanceConfigAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.GetCloudInstanceConfigAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that gets a user instance config. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetCloudInstanceConfigAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.GetCloudInstanceConfigAction) com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetCloudInstanceConfigAction.class, - com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder.class); + com.google.spanner.executor.v1.GetCloudInstanceConfigAction.class, com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder.class); } // Construct using com.google.spanner.executor.v1.GetCloudInstanceConfigAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor; } @java.lang.Override @@ -400,11 +369,8 @@ public com.google.spanner.executor.v1.GetCloudInstanceConfigAction build() { @java.lang.Override public com.google.spanner.executor.v1.GetCloudInstanceConfigAction buildPartial() { - com.google.spanner.executor.v1.GetCloudInstanceConfigAction result = - new com.google.spanner.executor.v1.GetCloudInstanceConfigAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.GetCloudInstanceConfigAction result = new com.google.spanner.executor.v1.GetCloudInstanceConfigAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -423,39 +389,38 @@ private void buildPartial0(com.google.spanner.executor.v1.GetCloudInstanceConfig public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.GetCloudInstanceConfigAction) { - return mergeFrom((com.google.spanner.executor.v1.GetCloudInstanceConfigAction) other); + return mergeFrom((com.google.spanner.executor.v1.GetCloudInstanceConfigAction)other); } else { super.mergeFrom(other); return this; @@ -463,8 +428,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.GetCloudInstanceConfigAction other) { - if (other == com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance()) return this; if (!other.getInstanceConfigId().isEmpty()) { instanceConfigId_ = other.instanceConfigId_; bitField0_ |= 0x00000001; @@ -501,25 +465,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -529,25 +490,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object instanceConfigId_ = ""; /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceConfigId_ = s; return s; @@ -556,21 +514,20 @@ public java.lang.String getInstanceConfigId() { } } /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @return The bytes for instanceConfigId. */ - public com.google.protobuf.ByteString getInstanceConfigIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceConfigId_ = b; return b; } else { @@ -578,35 +535,28 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { } } /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @param value The instanceConfigId to set. * @return This builder for chaining. */ - public Builder setInstanceConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceConfigId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearInstanceConfigId() { @@ -616,21 +566,17 @@ public Builder clearInstanceConfigId() { return this; } /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @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(); - } + public Builder setInstanceConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceConfigId_ = value; bitField0_ |= 0x00000001; @@ -640,20 +586,18 @@ public Builder setInstanceConfigIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -662,21 +606,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -684,35 +627,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -722,30 +658,26 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -755,12 +687,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.GetCloudInstanceConfigAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.GetCloudInstanceConfigAction) private static final com.google.spanner.executor.v1.GetCloudInstanceConfigAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.GetCloudInstanceConfigAction(); } @@ -769,27 +701,27 @@ public static com.google.spanner.executor.v1.GetCloudInstanceConfigAction getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetCloudInstanceConfigAction> PARSER = - new com.google.protobuf.AbstractParser<GetCloudInstanceConfigAction>() { - @java.lang.Override - public GetCloudInstanceConfigAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetCloudInstanceConfigAction> + PARSER = new com.google.protobuf.AbstractParser<GetCloudInstanceConfigAction>() { + @java.lang.Override + public GetCloudInstanceConfigAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetCloudInstanceConfigAction> parser() { return PARSER; @@ -804,4 +736,6 @@ public com.google.protobuf.Parser<GetCloudInstanceConfigAction> getParserForType public com.google.spanner.executor.v1.GetCloudInstanceConfigAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java similarity index 56% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java index a15a7820bb6..8c90e9671a5 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetCloudInstanceConfigActionOrBuilder.java @@ -1,75 +1,49 @@ -/* - * 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 interface GetCloudInstanceConfigActionOrBuilder - extends +public interface GetCloudInstanceConfigActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.GetCloudInstanceConfigAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @return The instanceConfigId. */ java.lang.String getInstanceConfigId(); /** - * - * * <pre> * Instance config ID (not path), e.g. "custom-config". * </pre> * * <code>string instance_config_id = 1;</code> - * * @return The bytes for instanceConfigId. */ - com.google.protobuf.ByteString getInstanceConfigIdBytes(); + com.google.protobuf.ByteString + getInstanceConfigIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java similarity index 65% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java index e5dfcecd53d..cec68b68025 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationAction.java @@ -1,80 +1,57 @@ -/* - * 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; /** - * - * * <pre> * Action that gets an operation. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetOperationAction} */ -public final class GetOperationAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetOperationAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.GetOperationAction) GetOperationActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetOperationAction.newBuilder() to construct. private GetOperationAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetOperationAction() { operation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetOperationAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetOperationAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetOperationAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetOperationAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetOperationAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetOperationAction.class, - com.google.spanner.executor.v1.GetOperationAction.Builder.class); + com.google.spanner.executor.v1.GetOperationAction.class, com.google.spanner.executor.v1.GetOperationAction.Builder.class); } public static final int OPERATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object operation_ = ""; /** - * - * * <pre> * The name of the operation resource. * </pre> * * <code>string operation = 1;</code> - * * @return The operation. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getOperation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } } /** - * - * * <pre> * The name of the operation resource. * </pre> * * <code>string operation = 1;</code> - * * @return The bytes for operation. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operation_ = b; return b; } else { @@ -114,7 +91,6 @@ public com.google.protobuf.ByteString getOperationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -150,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.GetOperationAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.GetOperationAction other = - (com.google.spanner.executor.v1.GetOperationAction) obj; + com.google.spanner.executor.v1.GetOperationAction other = (com.google.spanner.executor.v1.GetOperationAction) obj; - if (!getOperation().equals(other.getOperation())) return false; + if (!getOperation() + .equals(other.getOperation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,135 +155,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.GetOperationAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetOperationAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetOperationAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetOperationAction 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.GetOperationAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.GetOperationAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.GetOperationAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetOperationAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetOperationAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetOperationAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.GetOperationAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.GetOperationAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.GetOperationAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.GetOperationAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.GetOperationAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that gets an operation. * </pre> * * Protobuf type {@code google.spanner.executor.v1.GetOperationAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.GetOperationAction) com.google.spanner.executor.v1.GetOperationActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetOperationAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetOperationAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetOperationAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetOperationAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.GetOperationAction.class, - com.google.spanner.executor.v1.GetOperationAction.Builder.class); + com.google.spanner.executor.v1.GetOperationAction.class, com.google.spanner.executor.v1.GetOperationAction.Builder.class); } // Construct using com.google.spanner.executor.v1.GetOperationAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -316,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_GetOperationAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_GetOperationAction_descriptor; } @java.lang.Override @@ -337,11 +310,8 @@ public com.google.spanner.executor.v1.GetOperationAction build() { @java.lang.Override public com.google.spanner.executor.v1.GetOperationAction buildPartial() { - com.google.spanner.executor.v1.GetOperationAction result = - new com.google.spanner.executor.v1.GetOperationAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.GetOperationAction result = new com.google.spanner.executor.v1.GetOperationAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -357,39 +327,38 @@ private void buildPartial0(com.google.spanner.executor.v1.GetOperationAction res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.GetOperationAction) { - return mergeFrom((com.google.spanner.executor.v1.GetOperationAction) other); + return mergeFrom((com.google.spanner.executor.v1.GetOperationAction)other); } else { super.mergeFrom(other); return this; @@ -397,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.GetOperationAction other) { - if (other == com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance()) return this; if (!other.getOperation().isEmpty()) { operation_ = other.operation_; bitField0_ |= 0x00000001; @@ -430,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - operation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -452,25 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object operation_ = ""; /** - * - * * <pre> * The name of the operation resource. * </pre> * * <code>string operation = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; @@ -479,21 +442,20 @@ public java.lang.String getOperation() { } } /** - * - * * <pre> * The name of the operation resource. * </pre> * * <code>string operation = 1;</code> - * * @return The bytes for operation. */ - public com.google.protobuf.ByteString getOperationBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operation_ = b; return b; } else { @@ -501,35 +463,28 @@ public com.google.protobuf.ByteString getOperationBytes() { } } /** - * - * * <pre> * The name of the operation resource. * </pre> * * <code>string operation = 1;</code> - * * @param value The operation to set. * @return This builder for chaining. */ - public Builder setOperation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The name of the operation resource. * </pre> * * <code>string operation = 1;</code> - * * @return This builder for chaining. */ public Builder clearOperation() { @@ -539,30 +494,26 @@ public Builder clearOperation() { return this; } /** - * - * * <pre> * The name of the operation resource. * </pre> * * <code>string operation = 1;</code> - * * @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(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -572,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.GetOperationAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.GetOperationAction) private static final com.google.spanner.executor.v1.GetOperationAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.GetOperationAction(); } @@ -586,27 +537,27 @@ public static com.google.spanner.executor.v1.GetOperationAction getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetOperationAction> PARSER = - new com.google.protobuf.AbstractParser<GetOperationAction>() { - @java.lang.Override - public GetOperationAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetOperationAction> + PARSER = new com.google.protobuf.AbstractParser<GetOperationAction>() { + @java.lang.Override + public GetOperationAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetOperationAction> parser() { return PARSER; @@ -621,4 +572,6 @@ public com.google.protobuf.Parser<GetOperationAction> getParserForType() { public com.google.spanner.executor.v1.GetOperationAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationActionOrBuilder.java new file mode 100644 index 00000000000..1ecac2bb57c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/GetOperationActionOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/executor/v1/cloud_executor.proto + +package com.google.spanner.executor.v1; + +public interface GetOperationActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.GetOperationAction) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * The name of the operation resource. + * </pre> + * + * <code>string operation = 1;</code> + * @return The operation. + */ + java.lang.String getOperation(); + /** + * <pre> + * The name of the operation resource. + * </pre> + * + * <code>string operation = 1;</code> + * @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/HeartbeatRecord.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java similarity index 65% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java index 6ca0298ebb8..ae680b9a1e7 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecord.java @@ -1,76 +1,55 @@ -/* - * 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; /** - * - * * <pre> * ChangeStream heartbeat record. * </pre> * * Protobuf type {@code google.spanner.executor.v1.HeartbeatRecord} */ -public final class HeartbeatRecord extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HeartbeatRecord extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.HeartbeatRecord) HeartbeatRecordOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HeartbeatRecord.newBuilder() to construct. private HeartbeatRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private HeartbeatRecord() {} + private HeartbeatRecord() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HeartbeatRecord(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_HeartbeatRecord_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_HeartbeatRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.HeartbeatRecord.class, - com.google.spanner.executor.v1.HeartbeatRecord.Builder.class); + com.google.spanner.executor.v1.HeartbeatRecord.class, com.google.spanner.executor.v1.HeartbeatRecord.Builder.class); } public static final int HEARTBEAT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp heartbeatTime_; /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> * * <code>.google.protobuf.Timestamp heartbeat_time = 1;</code> - * * @return Whether the heartbeatTime field is set. */ @java.lang.Override @@ -78,25 +57,18 @@ public boolean hasHeartbeatTime() { return heartbeatTime_ != null; } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> * * <code>.google.protobuf.Timestamp heartbeat_time = 1;</code> - * * @return The heartbeatTime. */ @java.lang.Override public com.google.protobuf.Timestamp getHeartbeatTime() { - return heartbeatTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : heartbeatTime_; + return heartbeatTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : heartbeatTime_; } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> @@ -105,13 +77,10 @@ public com.google.protobuf.Timestamp getHeartbeatTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getHeartbeatTimeOrBuilder() { - return heartbeatTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : heartbeatTime_; + return heartbeatTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : heartbeatTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -123,7 +92,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (heartbeatTime_ != null) { output.writeMessage(1, getHeartbeatTime()); } @@ -137,7 +107,8 @@ public int getSerializedSize() { size = 0; if (heartbeatTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeartbeatTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeartbeatTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,17 +118,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.HeartbeatRecord)) { return super.equals(obj); } - com.google.spanner.executor.v1.HeartbeatRecord other = - (com.google.spanner.executor.v1.HeartbeatRecord) obj; + com.google.spanner.executor.v1.HeartbeatRecord other = (com.google.spanner.executor.v1.HeartbeatRecord) obj; if (hasHeartbeatTime() != other.hasHeartbeatTime()) return false; if (hasHeartbeatTime()) { - if (!getHeartbeatTime().equals(other.getHeartbeatTime())) return false; + if (!getHeartbeatTime() + .equals(other.getHeartbeatTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -179,136 +150,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.HeartbeatRecord parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.HeartbeatRecord parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.HeartbeatRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.HeartbeatRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.HeartbeatRecord 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.HeartbeatRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.HeartbeatRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.HeartbeatRecord parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.HeartbeatRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.HeartbeatRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.HeartbeatRecord parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.HeartbeatRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.HeartbeatRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.HeartbeatRecord parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.HeartbeatRecord prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * ChangeStream heartbeat record. * </pre> * * Protobuf type {@code google.spanner.executor.v1.HeartbeatRecord} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.HeartbeatRecord) com.google.spanner.executor.v1.HeartbeatRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_HeartbeatRecord_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_HeartbeatRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.HeartbeatRecord.class, - com.google.spanner.executor.v1.HeartbeatRecord.Builder.class); + com.google.spanner.executor.v1.HeartbeatRecord.class, com.google.spanner.executor.v1.HeartbeatRecord.Builder.class); } // Construct using com.google.spanner.executor.v1.HeartbeatRecord.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor; } @java.lang.Override @@ -343,11 +310,8 @@ public com.google.spanner.executor.v1.HeartbeatRecord build() { @java.lang.Override public com.google.spanner.executor.v1.HeartbeatRecord buildPartial() { - com.google.spanner.executor.v1.HeartbeatRecord result = - new com.google.spanner.executor.v1.HeartbeatRecord(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.HeartbeatRecord result = new com.google.spanner.executor.v1.HeartbeatRecord(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -355,8 +319,9 @@ public com.google.spanner.executor.v1.HeartbeatRecord buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.HeartbeatRecord result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.heartbeatTime_ = - heartbeatTimeBuilder_ == null ? heartbeatTime_ : heartbeatTimeBuilder_.build(); + result.heartbeatTime_ = heartbeatTimeBuilder_ == null + ? heartbeatTime_ + : heartbeatTimeBuilder_.build(); } } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.spanner.executor.v1.HeartbeatRecord result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.HeartbeatRecord) { - return mergeFrom((com.google.spanner.executor.v1.HeartbeatRecord) other); + return mergeFrom((com.google.spanner.executor.v1.HeartbeatRecord)other); } else { super.mergeFrom(other); return this; @@ -434,19 +398,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getHeartbeatTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getHeartbeatTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -456,52 +420,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp heartbeatTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - heartbeatTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> heartbeatTimeBuilder_; /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> * * <code>.google.protobuf.Timestamp heartbeat_time = 1;</code> - * * @return Whether the heartbeatTime field is set. */ public boolean hasHeartbeatTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> * * <code>.google.protobuf.Timestamp heartbeat_time = 1;</code> - * * @return The heartbeatTime. */ public com.google.protobuf.Timestamp getHeartbeatTime() { if (heartbeatTimeBuilder_ == null) { - return heartbeatTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : heartbeatTime_; + return heartbeatTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : heartbeatTime_; } else { return heartbeatTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> @@ -522,15 +472,14 @@ public Builder setHeartbeatTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> * * <code>.google.protobuf.Timestamp heartbeat_time = 1;</code> */ - public Builder setHeartbeatTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setHeartbeatTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (heartbeatTimeBuilder_ == null) { heartbeatTime_ = builderForValue.build(); } else { @@ -541,8 +490,6 @@ public Builder setHeartbeatTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> @@ -551,9 +498,9 @@ public Builder setHeartbeatTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeHeartbeatTime(com.google.protobuf.Timestamp value) { if (heartbeatTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && heartbeatTime_ != null - && heartbeatTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + heartbeatTime_ != null && + heartbeatTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getHeartbeatTimeBuilder().mergeFrom(value); } else { heartbeatTime_ = value; @@ -566,8 +513,6 @@ public Builder mergeHeartbeatTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> @@ -585,8 +530,6 @@ public Builder clearHeartbeatTime() { return this; } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> @@ -599,8 +542,6 @@ public com.google.protobuf.Timestamp.Builder getHeartbeatTimeBuilder() { return getHeartbeatTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> @@ -611,14 +552,11 @@ public com.google.protobuf.TimestampOrBuilder getHeartbeatTimeOrBuilder() { if (heartbeatTimeBuilder_ != null) { return heartbeatTimeBuilder_.getMessageOrBuilder(); } else { - return heartbeatTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : heartbeatTime_; + return heartbeatTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : heartbeatTime_; } } /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> @@ -626,24 +564,21 @@ public com.google.protobuf.TimestampOrBuilder getHeartbeatTimeOrBuilder() { * <code>.google.protobuf.Timestamp heartbeat_time = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getHeartbeatTimeFieldBuilder() { if (heartbeatTimeBuilder_ == null) { - heartbeatTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getHeartbeatTime(), getParentForChildren(), isClean()); + heartbeatTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getHeartbeatTime(), + getParentForChildren(), + isClean()); heartbeatTime_ = null; } return heartbeatTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -653,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.HeartbeatRecord) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.HeartbeatRecord) private static final com.google.spanner.executor.v1.HeartbeatRecord DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.HeartbeatRecord(); } @@ -667,27 +602,27 @@ public static com.google.spanner.executor.v1.HeartbeatRecord getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<HeartbeatRecord> PARSER = - new com.google.protobuf.AbstractParser<HeartbeatRecord>() { - @java.lang.Override - public HeartbeatRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<HeartbeatRecord> + PARSER = new com.google.protobuf.AbstractParser<HeartbeatRecord>() { + @java.lang.Override + public HeartbeatRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<HeartbeatRecord> parser() { return PARSER; @@ -702,4 +637,6 @@ public com.google.protobuf.Parser<HeartbeatRecord> getParserForType() { public com.google.spanner.executor.v1.HeartbeatRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java similarity index 58% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java index 74d3fe25420..774430bb668 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/HeartbeatRecordOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface HeartbeatRecordOrBuilder - extends +public interface HeartbeatRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.HeartbeatRecord) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> * * <code>.google.protobuf.Timestamp heartbeat_time = 1;</code> - * * @return Whether the heartbeatTime field is set. */ boolean hasHeartbeatTime(); /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> * * <code>.google.protobuf.Timestamp heartbeat_time = 1;</code> - * * @return The heartbeatTime. */ com.google.protobuf.Timestamp getHeartbeatTime(); /** - * - * * <pre> * Timestamp for this heartbeat check. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java index fd29416a5d7..f1240d93b86 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRange.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * KeyRange represents a range of rows in a table or index. * @@ -33,44 +16,40 @@ * * Protobuf type {@code google.spanner.executor.v1.KeyRange} */ -public final class KeyRange extends com.google.protobuf.GeneratedMessageV3 - implements +public final class KeyRange extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.KeyRange) KeyRangeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use KeyRange.newBuilder() to construct. private KeyRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private KeyRange() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KeyRange(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeyRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeyRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeyRange_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeyRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.KeyRange.class, - com.google.spanner.executor.v1.KeyRange.Builder.class); + com.google.spanner.executor.v1.KeyRange.class, com.google.spanner.executor.v1.KeyRange.Builder.class); } /** - * - * * <pre> * Type controls whether "start" and "limit" are open or closed. By default, * "start" is closed, and "limit" is open. @@ -78,10 +57,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Protobuf enum {@code google.spanner.executor.v1.KeyRange.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * * <pre> * "TYPE_UNSPECIFIED" is equivalent to "CLOSED_OPEN". * </pre> @@ -90,8 +68,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * * <pre> * [start,limit] * </pre> @@ -100,8 +76,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CLOSED_CLOSED(1), /** - * - * * <pre> * [start,limit) * </pre> @@ -110,8 +84,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CLOSED_OPEN(2), /** - * - * * <pre> * (start,limit] * </pre> @@ -120,8 +92,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ OPEN_CLOSED(3), /** - * - * * <pre> * (start,limit) * </pre> @@ -133,8 +103,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * * <pre> * "TYPE_UNSPECIFIED" is equivalent to "CLOSED_OPEN". * </pre> @@ -143,8 +111,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * * <pre> * [start,limit] * </pre> @@ -153,8 +119,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOSED_CLOSED_VALUE = 1; /** - * - * * <pre> * [start,limit) * </pre> @@ -163,8 +127,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOSED_OPEN_VALUE = 2; /** - * - * * <pre> * (start,limit] * </pre> @@ -173,8 +135,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPEN_CLOSED_VALUE = 3; /** - * - * * <pre> * (start,limit) * </pre> @@ -183,6 +143,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPEN_OPEN_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -207,53 +168,51 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return CLOSED_CLOSED; - case 2: - return CLOSED_OPEN; - case 3: - return OPEN_CLOSED; - case 4: - return OPEN_OPEN; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return CLOSED_CLOSED; + case 2: return CLOSED_OPEN; + case 3: return OPEN_CLOSED; + case 4: return OPEN_OPEN; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap<Type> + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<Type>() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<Type>() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.spanner.executor.v1.KeyRange.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -274,8 +233,6 @@ private Type(int value) { public static final int START_FIELD_NUMBER = 1; private com.google.spanner.executor.v1.ValueList start_; /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -283,7 +240,6 @@ private Type(int value) { * </pre> * * <code>.google.spanner.executor.v1.ValueList start = 1;</code> - * * @return Whether the start field is set. */ @java.lang.Override @@ -291,8 +247,6 @@ public boolean hasStart() { return start_ != null; } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -300,7 +254,6 @@ public boolean hasStart() { * </pre> * * <code>.google.spanner.executor.v1.ValueList start = 1;</code> - * * @return The start. */ @java.lang.Override @@ -308,8 +261,6 @@ public com.google.spanner.executor.v1.ValueList getStart() { return start_ == null ? com.google.spanner.executor.v1.ValueList.getDefaultInstance() : start_; } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -326,14 +277,11 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getStartOrBuilder() { public static final int LIMIT_FIELD_NUMBER = 2; private com.google.spanner.executor.v1.ValueList limit_; /** - * - * * <pre> * The end key of this KeyRange. * </pre> * * <code>.google.spanner.executor.v1.ValueList limit = 2;</code> - * * @return Whether the limit field is set. */ @java.lang.Override @@ -341,14 +289,11 @@ public boolean hasLimit() { return limit_ != null; } /** - * - * * <pre> * The end key of this KeyRange. * </pre> * * <code>.google.spanner.executor.v1.ValueList limit = 2;</code> - * * @return The limit. */ @java.lang.Override @@ -356,8 +301,6 @@ public com.google.spanner.executor.v1.ValueList getLimit() { return limit_ == null ? com.google.spanner.executor.v1.ValueList.getDefaultInstance() : limit_; } /** - * - * * <pre> * The end key of this KeyRange. * </pre> @@ -372,55 +315,41 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getLimitOrBuilder() { public static final int TYPE_FIELD_NUMBER = 3; private int type_ = 0; /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return Whether the type field is set. */ - @java.lang.Override - public boolean hasType() { + @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return The type. */ - @java.lang.Override - public com.google.spanner.executor.v1.KeyRange.Type getType() { - com.google.spanner.executor.v1.KeyRange.Type result = - com.google.spanner.executor.v1.KeyRange.Type.forNumber(type_); + @java.lang.Override public com.google.spanner.executor.v1.KeyRange.Type getType() { + com.google.spanner.executor.v1.KeyRange.Type result = com.google.spanner.executor.v1.KeyRange.Type.forNumber(type_); return result == null ? com.google.spanner.executor.v1.KeyRange.Type.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,7 +361,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (start_ != null) { output.writeMessage(1, getStart()); } @@ -452,13 +382,16 @@ public int getSerializedSize() { size = 0; if (start_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStart()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStart()); } if (limit_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLimit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLimit()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -468,7 +401,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.KeyRange)) { return super.equals(obj); @@ -477,11 +410,13 @@ public boolean equals(final java.lang.Object obj) { if (hasStart() != other.hasStart()) return false; if (hasStart()) { - if (!getStart().equals(other.getStart())) return false; + if (!getStart() + .equals(other.getStart())) return false; } if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { - if (!getLimit().equals(other.getLimit())) return false; + if (!getLimit() + .equals(other.getLimit())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { @@ -515,104 +450,99 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.KeyRange parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.KeyRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.KeyRange parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.KeyRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.KeyRange 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.KeyRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.KeyRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.KeyRange parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.KeyRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.KeyRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.KeyRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.KeyRange parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.KeyRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.KeyRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.KeyRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * KeyRange represents a range of rows in a table or index. * @@ -625,32 +555,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.KeyRange} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.KeyRange) com.google.spanner.executor.v1.KeyRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeyRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeyRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeyRange_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeyRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.KeyRange.class, - com.google.spanner.executor.v1.KeyRange.Builder.class); + com.google.spanner.executor.v1.KeyRange.class, com.google.spanner.executor.v1.KeyRange.Builder.class); } // Construct using com.google.spanner.executor.v1.KeyRange.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -670,9 +601,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeyRange_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeyRange_descriptor; } @java.lang.Override @@ -691,11 +622,8 @@ public com.google.spanner.executor.v1.KeyRange build() { @java.lang.Override public com.google.spanner.executor.v1.KeyRange buildPartial() { - com.google.spanner.executor.v1.KeyRange result = - new com.google.spanner.executor.v1.KeyRange(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.KeyRange result = new com.google.spanner.executor.v1.KeyRange(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -703,10 +631,14 @@ public com.google.spanner.executor.v1.KeyRange buildPartial() { private void buildPartial0(com.google.spanner.executor.v1.KeyRange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.start_ = startBuilder_ == null ? start_ : startBuilder_.build(); + result.start_ = startBuilder_ == null + ? start_ + : startBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.limit_ = limitBuilder_ == null ? limit_ : limitBuilder_.build(); + result.limit_ = limitBuilder_ == null + ? limit_ + : limitBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { @@ -720,39 +652,38 @@ private void buildPartial0(com.google.spanner.executor.v1.KeyRange result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.KeyRange) { - return mergeFrom((com.google.spanner.executor.v1.KeyRange) other); + return mergeFrom((com.google.spanner.executor.v1.KeyRange)other); } else { super.mergeFrom(other); return this; @@ -796,31 +727,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getLimitFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getLimitFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -830,18 +761,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.spanner.executor.v1.ValueList start_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> - startBuilder_; + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> startBuilder_; /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -849,15 +774,12 @@ public Builder mergeFrom( * </pre> * * <code>.google.spanner.executor.v1.ValueList start = 1;</code> - * * @return Whether the start field is set. */ public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -865,21 +787,16 @@ public boolean hasStart() { * </pre> * * <code>.google.spanner.executor.v1.ValueList start = 1;</code> - * * @return The start. */ public com.google.spanner.executor.v1.ValueList getStart() { if (startBuilder_ == null) { - return start_ == null - ? com.google.spanner.executor.v1.ValueList.getDefaultInstance() - : start_; + return start_ == null ? com.google.spanner.executor.v1.ValueList.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -902,8 +819,6 @@ public Builder setStart(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -912,7 +827,8 @@ public Builder setStart(com.google.spanner.executor.v1.ValueList value) { * * <code>.google.spanner.executor.v1.ValueList start = 1;</code> */ - public Builder setStart(com.google.spanner.executor.v1.ValueList.Builder builderForValue) { + public Builder setStart( + com.google.spanner.executor.v1.ValueList.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); } else { @@ -923,8 +839,6 @@ public Builder setStart(com.google.spanner.executor.v1.ValueList.Builder builder return this; } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -935,9 +849,9 @@ public Builder setStart(com.google.spanner.executor.v1.ValueList.Builder builder */ public Builder mergeStart(com.google.spanner.executor.v1.ValueList value) { if (startBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && start_ != null - && start_ != com.google.spanner.executor.v1.ValueList.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + start_ != null && + start_ != com.google.spanner.executor.v1.ValueList.getDefaultInstance()) { getStartBuilder().mergeFrom(value); } else { start_ = value; @@ -950,8 +864,6 @@ public Builder mergeStart(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -971,8 +883,6 @@ public Builder clearStart() { return this; } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -987,8 +897,6 @@ public com.google.spanner.executor.v1.ValueList.Builder getStartBuilder() { return getStartFieldBuilder().getBuilder(); } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -1001,14 +909,11 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { - return start_ == null - ? com.google.spanner.executor.v1.ValueList.getDefaultInstance() - : start_; + return start_ == null ? + com.google.spanner.executor.v1.ValueList.getDefaultInstance() : start_; } } /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -1018,17 +923,14 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getStartOrBuilder() { * <code>.google.spanner.executor.v1.ValueList start = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { - startBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder>( - getStart(), getParentForChildren(), isClean()); + startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder>( + getStart(), + getParentForChildren(), + isClean()); start_ = null; } return startBuilder_; @@ -1036,47 +938,34 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getStartOrBuilder() { private com.google.spanner.executor.v1.ValueList limit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> - limitBuilder_; + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> limitBuilder_; /** - * - * * <pre> * The end key of this KeyRange. * </pre> * * <code>.google.spanner.executor.v1.ValueList limit = 2;</code> - * * @return Whether the limit field is set. */ public boolean hasLimit() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The end key of this KeyRange. * </pre> * * <code>.google.spanner.executor.v1.ValueList limit = 2;</code> - * * @return The limit. */ public com.google.spanner.executor.v1.ValueList getLimit() { if (limitBuilder_ == null) { - return limit_ == null - ? com.google.spanner.executor.v1.ValueList.getDefaultInstance() - : limit_; + return limit_ == null ? com.google.spanner.executor.v1.ValueList.getDefaultInstance() : limit_; } else { return limitBuilder_.getMessage(); } } /** - * - * * <pre> * The end key of this KeyRange. * </pre> @@ -1097,15 +986,14 @@ public Builder setLimit(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * The end key of this KeyRange. * </pre> * * <code>.google.spanner.executor.v1.ValueList limit = 2;</code> */ - public Builder setLimit(com.google.spanner.executor.v1.ValueList.Builder builderForValue) { + public Builder setLimit( + com.google.spanner.executor.v1.ValueList.Builder builderForValue) { if (limitBuilder_ == null) { limit_ = builderForValue.build(); } else { @@ -1116,8 +1004,6 @@ public Builder setLimit(com.google.spanner.executor.v1.ValueList.Builder builder return this; } /** - * - * * <pre> * The end key of this KeyRange. * </pre> @@ -1126,9 +1012,9 @@ public Builder setLimit(com.google.spanner.executor.v1.ValueList.Builder builder */ public Builder mergeLimit(com.google.spanner.executor.v1.ValueList value) { if (limitBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && limit_ != null - && limit_ != com.google.spanner.executor.v1.ValueList.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + limit_ != null && + limit_ != com.google.spanner.executor.v1.ValueList.getDefaultInstance()) { getLimitBuilder().mergeFrom(value); } else { limit_ = value; @@ -1141,8 +1027,6 @@ public Builder mergeLimit(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * The end key of this KeyRange. * </pre> @@ -1160,8 +1044,6 @@ public Builder clearLimit() { return this; } /** - * - * * <pre> * The end key of this KeyRange. * </pre> @@ -1174,8 +1056,6 @@ public com.google.spanner.executor.v1.ValueList.Builder getLimitBuilder() { return getLimitFieldBuilder().getBuilder(); } /** - * - * * <pre> * The end key of this KeyRange. * </pre> @@ -1186,14 +1066,11 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getLimitOrBuilder() { if (limitBuilder_ != null) { return limitBuilder_.getMessageOrBuilder(); } else { - return limit_ == null - ? com.google.spanner.executor.v1.ValueList.getDefaultInstance() - : limit_; + return limit_ == null ? + com.google.spanner.executor.v1.ValueList.getDefaultInstance() : limit_; } } /** - * - * * <pre> * The end key of this KeyRange. * </pre> @@ -1201,17 +1078,14 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getLimitOrBuilder() { * <code>.google.spanner.executor.v1.ValueList limit = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> getLimitFieldBuilder() { if (limitBuilder_ == null) { - limitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder>( - getLimit(), getParentForChildren(), isClean()); + limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder>( + getLimit(), + getParentForChildren(), + isClean()); limit_ = null; } return limitBuilder_; @@ -1219,44 +1093,33 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getLimitOrBuilder() { private int type_ = 0; /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return Whether the type field is set. */ - @java.lang.Override - public boolean hasType() { + @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1267,31 +1130,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return The type. */ @java.lang.Override public com.google.spanner.executor.v1.KeyRange.Type getType() { - com.google.spanner.executor.v1.KeyRange.Type result = - com.google.spanner.executor.v1.KeyRange.Type.forNumber(type_); + com.google.spanner.executor.v1.KeyRange.Type result = com.google.spanner.executor.v1.KeyRange.Type.forNumber(type_); return result == null ? com.google.spanner.executor.v1.KeyRange.Type.UNRECOGNIZED : result; } /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @param value The type to set. * @return This builder for chaining. */ @@ -1305,14 +1161,11 @@ public Builder setType(com.google.spanner.executor.v1.KeyRange.Type value) { return this; } /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return This builder for chaining. */ public Builder clearType() { @@ -1321,9 +1174,9 @@ public Builder clearType() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1333,12 +1186,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.KeyRange) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.KeyRange) private static final com.google.spanner.executor.v1.KeyRange DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.KeyRange(); } @@ -1347,27 +1200,27 @@ public static com.google.spanner.executor.v1.KeyRange getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<KeyRange> PARSER = - new com.google.protobuf.AbstractParser<KeyRange>() { - @java.lang.Override - public KeyRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<KeyRange> + PARSER = new com.google.protobuf.AbstractParser<KeyRange>() { + @java.lang.Override + public KeyRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<KeyRange> parser() { return PARSER; @@ -1382,4 +1235,6 @@ public com.google.protobuf.Parser<KeyRange> getParserForType() { public com.google.spanner.executor.v1.KeyRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java similarity index 77% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java index 7b06df2b79b..60a9787deaa 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeyRangeOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 interface KeyRangeOrBuilder - extends +public interface KeyRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.KeyRange) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -33,13 +15,10 @@ public interface KeyRangeOrBuilder * </pre> * * <code>.google.spanner.executor.v1.ValueList start = 1;</code> - * * @return Whether the start field is set. */ boolean hasStart(); /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -47,13 +26,10 @@ public interface KeyRangeOrBuilder * </pre> * * <code>.google.spanner.executor.v1.ValueList start = 1;</code> - * * @return The start. */ com.google.spanner.executor.v1.ValueList getStart(); /** - * - * * <pre> * "start" and "limit" must have the same number of key parts, * though they may name only a prefix of the table or index key. @@ -65,32 +41,24 @@ public interface KeyRangeOrBuilder com.google.spanner.executor.v1.ValueListOrBuilder getStartOrBuilder(); /** - * - * * <pre> * The end key of this KeyRange. * </pre> * * <code>.google.spanner.executor.v1.ValueList limit = 2;</code> - * * @return Whether the limit field is set. */ boolean hasLimit(); /** - * - * * <pre> * The end key of this KeyRange. * </pre> * * <code>.google.spanner.executor.v1.ValueList limit = 2;</code> - * * @return The limit. */ com.google.spanner.executor.v1.ValueList getLimit(); /** - * - * * <pre> * The end key of this KeyRange. * </pre> @@ -100,38 +68,29 @@ public interface KeyRangeOrBuilder com.google.spanner.executor.v1.ValueListOrBuilder getLimitOrBuilder(); /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return Whether the type field is set. */ boolean hasType(); /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * * <pre> * "start" and "limit" type for this KeyRange. * </pre> * * <code>optional .google.spanner.executor.v1.KeyRange.Type type = 3;</code> - * * @return The type. */ com.google.spanner.executor.v1.KeyRange.Type getType(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java similarity index 75% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java index 42e3abdea5c..b397207f287 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySet.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * KeySet defines a collection of Spanner keys and/or key ranges. All * the keys are expected to be in the same table. The keys need not be @@ -29,16 +12,15 @@ * * Protobuf type {@code google.spanner.executor.v1.KeySet} */ -public final class KeySet extends com.google.protobuf.GeneratedMessageV3 - implements +public final class KeySet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.KeySet) KeySetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use KeySet.newBuilder() to construct. private KeySet(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private KeySet() { point_ = java.util.Collections.emptyList(); range_ = java.util.Collections.emptyList(); @@ -46,32 +28,28 @@ private KeySet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KeySet(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeySet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeySet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeySet_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeySet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.KeySet.class, - com.google.spanner.executor.v1.KeySet.Builder.class); + com.google.spanner.executor.v1.KeySet.class, com.google.spanner.executor.v1.KeySet.Builder.class); } public static final int POINT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.ValueList> point_; /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -85,8 +63,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getPointList() { return point_; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -96,13 +72,11 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getPointList() { * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getPointOrBuilderList() { return point_; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -116,8 +90,6 @@ public int getPointCount() { return point_.size(); } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -131,8 +103,6 @@ public com.google.spanner.executor.v1.ValueList getPoint(int index) { return point_.get(index); } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -142,17 +112,15 @@ public com.google.spanner.executor.v1.ValueList getPoint(int index) { * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder( + int index) { return point_.get(index); } public static final int RANGE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.KeyRange> range_; /** - * - * * <pre> * A list of key ranges. * </pre> @@ -164,8 +132,6 @@ public java.util.List<com.google.spanner.executor.v1.KeyRange> getRangeList() { return range_; } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -173,13 +139,11 @@ public java.util.List<com.google.spanner.executor.v1.KeyRange> getRangeList() { * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.KeyRangeOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.KeyRangeOrBuilder> getRangeOrBuilderList() { return range_; } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -191,8 +155,6 @@ public int getRangeCount() { return range_.size(); } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -204,8 +166,6 @@ public com.google.spanner.executor.v1.KeyRange getRange(int index) { return range_.get(index); } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -213,15 +173,14 @@ public com.google.spanner.executor.v1.KeyRange getRange(int index) { * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder(int index) { + public com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder( + int index) { return range_.get(index); } public static final int ALL_FIELD_NUMBER = 3; private boolean all_ = false; /** - * - * * <pre> * For convenience "all" can be set to "true" to indicate that this * "KeySet" matches all keys in the table or index. Note that any keys @@ -229,7 +188,6 @@ public com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder(int in * </pre> * * <code>bool all = 3;</code> - * * @return The all. */ @java.lang.Override @@ -238,7 +196,6 @@ public boolean getAll() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +207,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < point_.size(); i++) { output.writeMessage(1, point_.get(i)); } @@ -270,13 +228,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < point_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, point_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, point_.get(i)); } for (int i = 0; i < range_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, range_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, range_.get(i)); } if (all_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, all_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, all_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -286,16 +247,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.KeySet)) { return super.equals(obj); } com.google.spanner.executor.v1.KeySet other = (com.google.spanner.executor.v1.KeySet) obj; - if (!getPointList().equals(other.getPointList())) return false; - if (!getRangeList().equals(other.getRangeList())) return false; - if (getAll() != other.getAll()) return false; + if (!getPointList() + .equals(other.getPointList())) return false; + if (!getRangeList() + .equals(other.getRangeList())) return false; + if (getAll() + != other.getAll()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -316,109 +280,106 @@ public int hashCode() { hash = (53 * hash) + getRangeList().hashCode(); } hash = (37 * hash) + ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAll()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAll()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.spanner.executor.v1.KeySet parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.KeySet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.KeySet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.KeySet parseFrom(com.google.protobuf.ByteString data) + public static com.google.spanner.executor.v1.KeySet parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.KeySet 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.KeySet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.KeySet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.KeySet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.KeySet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.spanner.executor.v1.KeySet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.KeySet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.KeySet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.KeySet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.KeySet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * KeySet defines a collection of Spanner keys and/or key ranges. All * the keys are expected to be in the same table. The keys need not be @@ -427,32 +388,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.KeySet} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.KeySet) com.google.spanner.executor.v1.KeySetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeySet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeySet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeySet_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeySet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.KeySet.class, - com.google.spanner.executor.v1.KeySet.Builder.class); + com.google.spanner.executor.v1.KeySet.class, com.google.spanner.executor.v1.KeySet.Builder.class); } // Construct using com.google.spanner.executor.v1.KeySet.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +438,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_KeySet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_KeySet_descriptor; } @java.lang.Override @@ -497,12 +459,9 @@ public com.google.spanner.executor.v1.KeySet build() { @java.lang.Override public com.google.spanner.executor.v1.KeySet buildPartial() { - com.google.spanner.executor.v1.KeySet result = - new com.google.spanner.executor.v1.KeySet(this); + com.google.spanner.executor.v1.KeySet result = new com.google.spanner.executor.v1.KeySet(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -539,39 +498,38 @@ private void buildPartial0(com.google.spanner.executor.v1.KeySet result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.KeySet) { - return mergeFrom((com.google.spanner.executor.v1.KeySet) other); + return mergeFrom((com.google.spanner.executor.v1.KeySet)other); } else { super.mergeFrom(other); return this; @@ -598,10 +556,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.KeySet other) { pointBuilder_ = null; point_ = other.point_; bitField0_ = (bitField0_ & ~0x00000001); - pointBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPointFieldBuilder() - : null; + pointBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPointFieldBuilder() : null; } else { pointBuilder_.addAllMessages(other.point_); } @@ -625,10 +582,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.KeySet other) { rangeBuilder_ = null; range_ = other.range_; bitField0_ = (bitField0_ & ~0x00000002); - rangeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRangeFieldBuilder() - : null; + rangeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRangeFieldBuilder() : null; } else { rangeBuilder_.addAllMessages(other.range_); } @@ -663,45 +619,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.executor.v1.ValueList m = - input.readMessage( - com.google.spanner.executor.v1.ValueList.parser(), extensionRegistry); - if (pointBuilder_ == null) { - ensurePointIsMutable(); - point_.add(m); - } else { - pointBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.spanner.executor.v1.KeyRange m = - input.readMessage( - com.google.spanner.executor.v1.KeyRange.parser(), extensionRegistry); - if (rangeBuilder_ == null) { - ensureRangeIsMutable(); - range_.add(m); - } else { - rangeBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - all_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.executor.v1.ValueList m = + input.readMessage( + com.google.spanner.executor.v1.ValueList.parser(), + extensionRegistry); + if (pointBuilder_ == null) { + ensurePointIsMutable(); + point_.add(m); + } else { + pointBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.spanner.executor.v1.KeyRange m = + input.readMessage( + com.google.spanner.executor.v1.KeyRange.parser(), + extensionRegistry); + if (rangeBuilder_ == null) { + ensureRangeIsMutable(); + range_.add(m); + } else { + rangeBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + all_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -711,28 +665,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.executor.v1.ValueList> point_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePointIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { point_ = new java.util.ArrayList<com.google.spanner.executor.v1.ValueList>(point_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> - pointBuilder_; + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> pointBuilder_; /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -749,8 +696,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getPointList() { } } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -767,8 +712,6 @@ public int getPointCount() { } } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -785,8 +728,6 @@ public com.google.spanner.executor.v1.ValueList getPoint(int index) { } } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -795,7 +736,8 @@ public com.google.spanner.executor.v1.ValueList getPoint(int index) { * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - public Builder setPoint(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder setPoint( + int index, com.google.spanner.executor.v1.ValueList value) { if (pointBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,8 +751,6 @@ public Builder setPoint(int index, com.google.spanner.executor.v1.ValueList valu return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -831,8 +771,6 @@ public Builder setPoint( return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -855,8 +793,6 @@ public Builder addPoint(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -865,7 +801,8 @@ public Builder addPoint(com.google.spanner.executor.v1.ValueList value) { * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - public Builder addPoint(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder addPoint( + int index, com.google.spanner.executor.v1.ValueList value) { if (pointBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -879,8 +816,6 @@ public Builder addPoint(int index, com.google.spanner.executor.v1.ValueList valu return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -889,7 +824,8 @@ public Builder addPoint(int index, com.google.spanner.executor.v1.ValueList valu * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - public Builder addPoint(com.google.spanner.executor.v1.ValueList.Builder builderForValue) { + public Builder addPoint( + com.google.spanner.executor.v1.ValueList.Builder builderForValue) { if (pointBuilder_ == null) { ensurePointIsMutable(); point_.add(builderForValue.build()); @@ -900,8 +836,6 @@ public Builder addPoint(com.google.spanner.executor.v1.ValueList.Builder builder return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -922,8 +856,6 @@ public Builder addPoint( return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -936,7 +868,8 @@ public Builder addAllPoint( java.lang.Iterable<? extends com.google.spanner.executor.v1.ValueList> values) { if (pointBuilder_ == null) { ensurePointIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, point_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, point_); onChanged(); } else { pointBuilder_.addAllMessages(values); @@ -944,8 +877,6 @@ public Builder addAllPoint( return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -965,8 +896,6 @@ public Builder clearPoint() { return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -986,8 +915,6 @@ public Builder removePoint(int index) { return this; } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -996,12 +923,11 @@ public Builder removePoint(int index) { * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder getPointBuilder(int index) { + public com.google.spanner.executor.v1.ValueList.Builder getPointBuilder( + int index) { return getPointFieldBuilder().getBuilder(index); } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -1010,16 +936,14 @@ public com.google.spanner.executor.v1.ValueList.Builder getPointBuilder(int inde * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - public com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder( + int index) { if (pointBuilder_ == null) { - return point_.get(index); - } else { + return point_.get(index); } else { return pointBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -1028,8 +952,8 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder(int i * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> - getPointOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + getPointOrBuilderList() { if (pointBuilder_ != null) { return pointBuilder_.getMessageOrBuilderList(); } else { @@ -1037,8 +961,6 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder(int i } } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -1048,12 +970,10 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder(int i * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ public com.google.spanner.executor.v1.ValueList.Builder addPointBuilder() { - return getPointFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + return getPointFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -1062,13 +982,12 @@ public com.google.spanner.executor.v1.ValueList.Builder addPointBuilder() { * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder addPointBuilder(int index) { - return getPointFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + public com.google.spanner.executor.v1.ValueList.Builder addPointBuilder( + int index) { + return getPointFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -1077,46 +996,38 @@ public com.google.spanner.executor.v1.ValueList.Builder addPointBuilder(int inde * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> getPointBuilderList() { + public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> + getPointBuilderList() { return getPointFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> getPointFieldBuilder() { if (pointBuilder_ == null) { - pointBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder>( - point_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder>( + point_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); point_ = null; } return pointBuilder_; } private java.util.List<com.google.spanner.executor.v1.KeyRange> range_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRangeIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { range_ = new java.util.ArrayList<com.google.spanner.executor.v1.KeyRange>(range_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.KeyRange, - com.google.spanner.executor.v1.KeyRange.Builder, - com.google.spanner.executor.v1.KeyRangeOrBuilder> - rangeBuilder_; + com.google.spanner.executor.v1.KeyRange, com.google.spanner.executor.v1.KeyRange.Builder, com.google.spanner.executor.v1.KeyRangeOrBuilder> rangeBuilder_; /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1131,8 +1042,6 @@ public java.util.List<com.google.spanner.executor.v1.KeyRange> getRangeList() { } } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1147,8 +1056,6 @@ public int getRangeCount() { } } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1163,15 +1070,14 @@ public com.google.spanner.executor.v1.KeyRange getRange(int index) { } } /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - public Builder setRange(int index, com.google.spanner.executor.v1.KeyRange value) { + public Builder setRange( + int index, com.google.spanner.executor.v1.KeyRange value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1185,8 +1091,6 @@ public Builder setRange(int index, com.google.spanner.executor.v1.KeyRange value return this; } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1205,8 +1109,6 @@ public Builder setRange( return this; } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1227,15 +1129,14 @@ public Builder addRange(com.google.spanner.executor.v1.KeyRange value) { return this; } /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - public Builder addRange(int index, com.google.spanner.executor.v1.KeyRange value) { + public Builder addRange( + int index, com.google.spanner.executor.v1.KeyRange value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1249,15 +1150,14 @@ public Builder addRange(int index, com.google.spanner.executor.v1.KeyRange value return this; } /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - public Builder addRange(com.google.spanner.executor.v1.KeyRange.Builder builderForValue) { + public Builder addRange( + com.google.spanner.executor.v1.KeyRange.Builder builderForValue) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.add(builderForValue.build()); @@ -1268,8 +1168,6 @@ public Builder addRange(com.google.spanner.executor.v1.KeyRange.Builder builderF return this; } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1288,8 +1186,6 @@ public Builder addRange( return this; } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1300,7 +1196,8 @@ public Builder addAllRange( java.lang.Iterable<? extends com.google.spanner.executor.v1.KeyRange> values) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, range_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, range_); onChanged(); } else { rangeBuilder_.addAllMessages(values); @@ -1308,8 +1205,6 @@ public Builder addAllRange( return this; } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1327,8 +1222,6 @@ public Builder clearRange() { return this; } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1346,44 +1239,39 @@ public Builder removeRange(int index) { return this; } /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - public com.google.spanner.executor.v1.KeyRange.Builder getRangeBuilder(int index) { + public com.google.spanner.executor.v1.KeyRange.Builder getRangeBuilder( + int index) { return getRangeFieldBuilder().getBuilder(index); } /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - public com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder(int index) { + public com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder( + int index) { if (rangeBuilder_ == null) { - return range_.get(index); - } else { + return range_.get(index); } else { return rangeBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.KeyRangeOrBuilder> - getRangeOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.KeyRangeOrBuilder> + getRangeOrBuilderList() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilderList(); } else { @@ -1391,8 +1279,6 @@ public com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder(int in } } /** - * - * * <pre> * A list of key ranges. * </pre> @@ -1400,56 +1286,49 @@ public com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder(int in * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ public com.google.spanner.executor.v1.KeyRange.Builder addRangeBuilder() { - return getRangeFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.KeyRange.getDefaultInstance()); + return getRangeFieldBuilder().addBuilder( + com.google.spanner.executor.v1.KeyRange.getDefaultInstance()); } /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - public com.google.spanner.executor.v1.KeyRange.Builder addRangeBuilder(int index) { - return getRangeFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.KeyRange.getDefaultInstance()); + public com.google.spanner.executor.v1.KeyRange.Builder addRangeBuilder( + int index) { + return getRangeFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.KeyRange.getDefaultInstance()); } /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - public java.util.List<com.google.spanner.executor.v1.KeyRange.Builder> getRangeBuilderList() { + public java.util.List<com.google.spanner.executor.v1.KeyRange.Builder> + getRangeBuilderList() { return getRangeFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.KeyRange, - com.google.spanner.executor.v1.KeyRange.Builder, - com.google.spanner.executor.v1.KeyRangeOrBuilder> + com.google.spanner.executor.v1.KeyRange, com.google.spanner.executor.v1.KeyRange.Builder, com.google.spanner.executor.v1.KeyRangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { - rangeBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.KeyRange, - com.google.spanner.executor.v1.KeyRange.Builder, - com.google.spanner.executor.v1.KeyRangeOrBuilder>( - range_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.KeyRange, com.google.spanner.executor.v1.KeyRange.Builder, com.google.spanner.executor.v1.KeyRangeOrBuilder>( + range_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); range_ = null; } return rangeBuilder_; } - private boolean all_; + private boolean all_ ; /** - * - * * <pre> * For convenience "all" can be set to "true" to indicate that this * "KeySet" matches all keys in the table or index. Note that any keys @@ -1457,7 +1336,6 @@ public java.util.List<com.google.spanner.executor.v1.KeyRange.Builder> getRangeB * </pre> * * <code>bool all = 3;</code> - * * @return The all. */ @java.lang.Override @@ -1465,8 +1343,6 @@ public boolean getAll() { return all_; } /** - * - * * <pre> * For convenience "all" can be set to "true" to indicate that this * "KeySet" matches all keys in the table or index. Note that any keys @@ -1474,7 +1350,6 @@ public boolean getAll() { * </pre> * * <code>bool all = 3;</code> - * * @param value The all to set. * @return This builder for chaining. */ @@ -1486,8 +1361,6 @@ public Builder setAll(boolean value) { return this; } /** - * - * * <pre> * For convenience "all" can be set to "true" to indicate that this * "KeySet" matches all keys in the table or index. Note that any keys @@ -1495,7 +1368,6 @@ public Builder setAll(boolean value) { * </pre> * * <code>bool all = 3;</code> - * * @return This builder for chaining. */ public Builder clearAll() { @@ -1504,9 +1376,9 @@ public Builder clearAll() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1516,12 +1388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.KeySet) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.KeySet) private static final com.google.spanner.executor.v1.KeySet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.KeySet(); } @@ -1530,27 +1402,27 @@ public static com.google.spanner.executor.v1.KeySet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<KeySet> PARSER = - new com.google.protobuf.AbstractParser<KeySet>() { - @java.lang.Override - public KeySet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<KeySet> + PARSER = new com.google.protobuf.AbstractParser<KeySet>() { + @java.lang.Override + public KeySet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<KeySet> parser() { return PARSER; @@ -1565,4 +1437,6 @@ public com.google.protobuf.Parser<KeySet> getParserForType() { public com.google.spanner.executor.v1.KeySet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java similarity index 77% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java index 6e8533c5469..12f2fb167a7 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/KeySetOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 interface KeySetOrBuilder - extends +public interface KeySetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.KeySet) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -34,10 +16,9 @@ public interface KeySetOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - java.util.List<com.google.spanner.executor.v1.ValueList> getPointList(); + java.util.List<com.google.spanner.executor.v1.ValueList> + getPointList(); /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -48,8 +29,6 @@ public interface KeySetOrBuilder */ com.google.spanner.executor.v1.ValueList getPoint(int index); /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -60,8 +39,6 @@ public interface KeySetOrBuilder */ int getPointCount(); /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -70,11 +47,9 @@ public interface KeySetOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getPointOrBuilderList(); /** - * - * * <pre> * A list of specific keys. Entries in "keys" should have exactly as * many elements as there are columns in the primary or index key @@ -83,21 +58,19 @@ public interface KeySetOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList point = 1;</code> */ - com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder(int index); + com.google.spanner.executor.v1.ValueListOrBuilder getPointOrBuilder( + int index); /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - java.util.List<com.google.spanner.executor.v1.KeyRange> getRangeList(); + java.util.List<com.google.spanner.executor.v1.KeyRange> + getRangeList(); /** - * - * * <pre> * A list of key ranges. * </pre> @@ -106,8 +79,6 @@ public interface KeySetOrBuilder */ com.google.spanner.executor.v1.KeyRange getRange(int index); /** - * - * * <pre> * A list of key ranges. * </pre> @@ -116,30 +87,25 @@ public interface KeySetOrBuilder */ int getRangeCount(); /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.KeyRangeOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.KeyRangeOrBuilder> getRangeOrBuilderList(); /** - * - * * <pre> * A list of key ranges. * </pre> * * <code>repeated .google.spanner.executor.v1.KeyRange range = 2;</code> */ - com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder(int index); + com.google.spanner.executor.v1.KeyRangeOrBuilder getRangeOrBuilder( + int index); /** - * - * * <pre> * For convenience "all" can be set to "true" to indicate that this * "KeySet" matches all keys in the table or index. Note that any keys @@ -147,7 +113,6 @@ public interface KeySetOrBuilder * </pre> * * <code>bool all = 3;</code> - * * @return The all. */ boolean getAll(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java similarity index 70% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java index ab8e30e959a..9a849f56c4c 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsAction.java @@ -1,43 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudBackupOperationsAction} */ -public final class ListCloudBackupOperationsAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCloudBackupOperationsAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ListCloudBackupOperationsAction) ListCloudBackupOperationsActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCloudBackupOperationsAction.newBuilder() to construct. - private ListCloudBackupOperationsAction( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private ListCloudBackupOperationsAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListCloudBackupOperationsAction() { projectId_ = ""; instanceId_ = ""; @@ -47,38 +28,33 @@ private ListCloudBackupOperationsAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCloudBackupOperationsAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudBackupOperationsAction.class, - com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder.class); + com.google.spanner.executor.v1.ListCloudBackupOperationsAction.class, com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -87,29 +63,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -118,19 +94,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -139,30 +111,30 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -171,12 +143,9 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int FILTER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -186,7 +155,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ @java.lang.Override @@ -195,15 +163,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -213,15 +180,16 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -232,15 +200,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ @java.lang.Override @@ -249,12 +214,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -262,7 +224,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ @java.lang.Override @@ -271,15 +232,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -287,15 +247,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -304,7 +265,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +276,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -351,7 +312,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -364,19 +326,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ListCloudBackupOperationsAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ListCloudBackupOperationsAction other = - (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.spanner.executor.v1.ListCloudBackupOperationsAction other = (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -404,136 +370,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListCloudBackupOperationsAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction 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.ListCloudBackupOperationsAction parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ListCloudBackupOperationsAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ListCloudBackupOperationsAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that lists Cloud Spanner database backup operations. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudBackupOperationsAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ListCloudBackupOperationsAction) com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudBackupOperationsAction.class, - com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder.class); + com.google.spanner.executor.v1.ListCloudBackupOperationsAction.class, com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ListCloudBackupOperationsAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -547,14 +508,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.ListCloudBackupOperationsAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.ListCloudBackupOperationsAction getDefaultInstanceForType() { return com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance(); } @@ -569,17 +529,13 @@ public com.google.spanner.executor.v1.ListCloudBackupOperationsAction build() { @java.lang.Override public com.google.spanner.executor.v1.ListCloudBackupOperationsAction buildPartial() { - com.google.spanner.executor.v1.ListCloudBackupOperationsAction result = - new com.google.spanner.executor.v1.ListCloudBackupOperationsAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ListCloudBackupOperationsAction result = new com.google.spanner.executor.v1.ListCloudBackupOperationsAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.ListCloudBackupOperationsAction result) { + private void buildPartial0(com.google.spanner.executor.v1.ListCloudBackupOperationsAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectId_ = projectId_; @@ -602,39 +558,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ListCloudBackupOperationsAction) { - return mergeFrom((com.google.spanner.executor.v1.ListCloudBackupOperationsAction) other); + return mergeFrom((com.google.spanner.executor.v1.ListCloudBackupOperationsAction)other); } else { super.mergeFrom(other); return this; @@ -642,9 +597,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ListCloudBackupOperationsAction other) { - if (other - == com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -694,43 +647,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -740,25 +687,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -767,21 +711,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -789,35 +732,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -827,21 +763,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -851,21 +783,19 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -874,22 +804,21 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -897,37 +826,30 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -937,22 +859,18 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -962,8 +880,6 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -973,13 +889,13 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -988,8 +904,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -999,14 +913,15 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1014,8 +929,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -1025,22 +938,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>string filter = 3;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -1050,7 +959,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>string filter = 3;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1060,8 +968,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -1071,14 +977,12 @@ public Builder clearFilter() { * </pre> * * <code>string filter = 3;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -1086,17 +990,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ @java.lang.Override @@ -1104,15 +1005,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1124,15 +1022,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1144,8 +1039,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -1153,13 +1046,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1168,8 +1061,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -1177,14 +1068,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1192,8 +1084,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -1201,22 +1091,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 5;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -1224,7 +1110,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 5;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1234,8 +1119,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -1243,23 +1126,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1269,43 +1150,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ListCloudBackupOperationsAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ListCloudBackupOperationsAction) - private static final com.google.spanner.executor.v1.ListCloudBackupOperationsAction - DEFAULT_INSTANCE; - + private static final com.google.spanner.executor.v1.ListCloudBackupOperationsAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ListCloudBackupOperationsAction(); } - public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction - getDefaultInstance() { + public static com.google.spanner.executor.v1.ListCloudBackupOperationsAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCloudBackupOperationsAction> PARSER = - new com.google.protobuf.AbstractParser<ListCloudBackupOperationsAction>() { - @java.lang.Override - public ListCloudBackupOperationsAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCloudBackupOperationsAction> + PARSER = new com.google.protobuf.AbstractParser<ListCloudBackupOperationsAction>() { + @java.lang.Override + public ListCloudBackupOperationsAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCloudBackupOperationsAction> parser() { return PARSER; @@ -1317,8 +1196,9 @@ public com.google.protobuf.Parser<ListCloudBackupOperationsAction> getParserForT } @java.lang.Override - public com.google.spanner.executor.v1.ListCloudBackupOperationsAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.ListCloudBackupOperationsAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java index 13716f3b9d3..5c6d762359b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupOperationsActionOrBuilder.java @@ -1,83 +1,55 @@ -/* - * 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 interface ListCloudBackupOperationsActionOrBuilder - extends +public interface ListCloudBackupOperationsActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ListCloudBackupOperationsAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path) to list backup operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -87,13 +59,10 @@ public interface ListCloudBackupOperationsActionOrBuilder * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -103,28 +72,23 @@ public interface ListCloudBackupOperationsActionOrBuilder * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -132,13 +96,10 @@ public interface ListCloudBackupOperationsActionOrBuilder * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupOperationsResponse to the same "parent" @@ -146,8 +107,8 @@ public interface ListCloudBackupOperationsActionOrBuilder * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java similarity index 71% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java index 48a3c038bde..d9f9d80a148 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudBackupsAction} */ -public final class ListCloudBackupsAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCloudBackupsAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ListCloudBackupsAction) ListCloudBackupsActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCloudBackupsAction.newBuilder() to construct. private ListCloudBackupsAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListCloudBackupsAction() { projectId_ = ""; instanceId_ = ""; @@ -46,38 +28,33 @@ private ListCloudBackupsAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCloudBackupsAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupsAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudBackupsAction.class, - com.google.spanner.executor.v1.ListCloudBackupsAction.Builder.class); + com.google.spanner.executor.v1.ListCloudBackupsAction.class, com.google.spanner.executor.v1.ListCloudBackupsAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -117,18 +94,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -137,29 +110,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -168,12 +141,9 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int FILTER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -182,7 +152,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ @java.lang.Override @@ -191,15 +160,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -208,15 +176,16 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -227,15 +196,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ @java.lang.Override @@ -244,12 +210,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -257,7 +220,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ @java.lang.Override @@ -266,15 +228,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -282,15 +243,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -299,7 +261,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -346,7 +308,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -359,19 +322,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ListCloudBackupsAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ListCloudBackupsAction other = - (com.google.spanner.executor.v1.ListCloudBackupsAction) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.spanner.executor.v1.ListCloudBackupsAction other = (com.google.spanner.executor.v1.ListCloudBackupsAction) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +366,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ListCloudBackupsAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudBackupsAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListCloudBackupsAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudBackupsAction 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.ListCloudBackupsAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudBackupsAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ListCloudBackupsAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudBackupsAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudBackupsAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudBackupsAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudBackupsAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ListCloudBackupsAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudBackupsAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudBackupsAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ListCloudBackupsAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ListCloudBackupsAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that lists Cloud Spanner database backups. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudBackupsAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ListCloudBackupsAction) com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupsAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudBackupsAction.class, - com.google.spanner.executor.v1.ListCloudBackupsAction.Builder.class); + com.google.spanner.executor.v1.ListCloudBackupsAction.class, com.google.spanner.executor.v1.ListCloudBackupsAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ListCloudBackupsAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +504,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor; } @java.lang.Override @@ -563,11 +525,8 @@ public com.google.spanner.executor.v1.ListCloudBackupsAction build() { @java.lang.Override public com.google.spanner.executor.v1.ListCloudBackupsAction buildPartial() { - com.google.spanner.executor.v1.ListCloudBackupsAction result = - new com.google.spanner.executor.v1.ListCloudBackupsAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ListCloudBackupsAction result = new com.google.spanner.executor.v1.ListCloudBackupsAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -595,39 +554,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ListCloudBackupsAction public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ListCloudBackupsAction) { - return mergeFrom((com.google.spanner.executor.v1.ListCloudBackupsAction) other); + return mergeFrom((com.google.spanner.executor.v1.ListCloudBackupsAction)other); } else { super.mergeFrom(other); return this; @@ -635,8 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ListCloudBackupsAction other) { - if (other == com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -686,43 +643,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -732,25 +683,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -759,21 +707,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -781,35 +728,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -819,21 +759,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -843,20 +779,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -865,21 +799,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -887,35 +820,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -925,21 +851,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -949,8 +871,6 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -959,13 +879,13 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -974,8 +894,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -984,14 +902,15 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -999,8 +918,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -1009,22 +926,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>string filter = 3;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -1033,7 +946,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>string filter = 3;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1043,8 +955,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -1053,14 +963,12 @@ public Builder clearFilter() { * </pre> * * <code>string filter = 3;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -1068,17 +976,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ @java.lang.Override @@ -1086,15 +991,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1106,15 +1008,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1126,8 +1025,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -1135,13 +1032,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1150,8 +1047,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -1159,14 +1054,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1174,8 +1070,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -1183,22 +1077,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 5;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -1206,7 +1096,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 5;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1216,8 +1105,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -1225,23 +1112,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1251,12 +1136,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ListCloudBackupsAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ListCloudBackupsAction) private static final com.google.spanner.executor.v1.ListCloudBackupsAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ListCloudBackupsAction(); } @@ -1265,27 +1150,27 @@ public static com.google.spanner.executor.v1.ListCloudBackupsAction getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCloudBackupsAction> PARSER = - new com.google.protobuf.AbstractParser<ListCloudBackupsAction>() { - @java.lang.Override - public ListCloudBackupsAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCloudBackupsAction> + PARSER = new com.google.protobuf.AbstractParser<ListCloudBackupsAction>() { + @java.lang.Override + public ListCloudBackupsAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCloudBackupsAction> parser() { return PARSER; @@ -1300,4 +1185,6 @@ public com.google.protobuf.Parser<ListCloudBackupsAction> getParserForType() { public com.google.spanner.executor.v1.ListCloudBackupsAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java index ebdff68355e..603ba61479e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudBackupsActionOrBuilder.java @@ -1,81 +1,53 @@ -/* - * 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 interface ListCloudBackupsActionOrBuilder - extends +public interface ListCloudBackupsActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ListCloudBackupsAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path) to list backups from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -84,13 +56,10 @@ public interface ListCloudBackupsActionOrBuilder * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * A filter expression that filters backups listed in the response. * The expression must specify the field name, a comparison operator, @@ -99,28 +68,23 @@ public interface ListCloudBackupsActionOrBuilder * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * * <pre> * Number of backups to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -128,13 +92,10 @@ public interface ListCloudBackupsActionOrBuilder * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListBackupsResponse to the same "parent" @@ -142,8 +103,8 @@ public interface ListCloudBackupsActionOrBuilder * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java similarity index 70% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java index bd8e1a4a53e..701b6023922 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsAction.java @@ -1,43 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudDatabaseOperationsAction} */ -public final class ListCloudDatabaseOperationsAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCloudDatabaseOperationsAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ListCloudDatabaseOperationsAction) ListCloudDatabaseOperationsActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCloudDatabaseOperationsAction.newBuilder() to construct. - private ListCloudDatabaseOperationsAction( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private ListCloudDatabaseOperationsAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListCloudDatabaseOperationsAction() { projectId_ = ""; instanceId_ = ""; @@ -47,38 +28,33 @@ private ListCloudDatabaseOperationsAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCloudDatabaseOperationsAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.class, - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder.class); + com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.class, com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -87,29 +63,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -118,19 +94,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -139,30 +111,30 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -171,12 +143,9 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int FILTER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -187,7 +156,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ @java.lang.Override @@ -196,15 +164,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -215,15 +182,16 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -234,15 +202,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ @java.lang.Override @@ -251,12 +216,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -264,7 +226,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ @java.lang.Override @@ -273,15 +234,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -289,15 +249,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -306,7 +267,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +278,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -353,7 +314,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -366,19 +328,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction other = - (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction other = (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -406,136 +372,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListCloudDatabaseOperationsAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction 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.ListCloudDatabaseOperationsAction parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that lists Cloud Spanner database operations. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudDatabaseOperationsAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ListCloudDatabaseOperationsAction) com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.class, - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder.class); + com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.class, com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -549,14 +510,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction getDefaultInstanceForType() { return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance(); } @@ -571,17 +531,13 @@ public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction build() @java.lang.Override public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction buildPartial() { - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction result = - new com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction result = new com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction result) { + private void buildPartial0(com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectId_ = projectId_; @@ -604,50 +560,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) { - return mergeFrom((com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) other); + return mergeFrom((com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction other) { - if (other - == com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction other) { + if (other == com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -697,43 +649,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -743,25 +689,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -770,21 +713,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -792,35 +734,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -830,21 +765,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -854,21 +785,19 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -877,22 +806,21 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -900,37 +828,30 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -940,22 +861,18 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -965,8 +882,6 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -977,13 +892,13 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -992,8 +907,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -1004,14 +917,15 @@ public java.lang.String getFilter() { * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1019,8 +933,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -1031,22 +943,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>string filter = 3;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -1057,7 +965,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>string filter = 3;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1067,8 +974,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -1079,14 +984,12 @@ public Builder clearFilter() { * </pre> * * <code>string filter = 3;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -1094,17 +997,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ @java.lang.Override @@ -1112,15 +1012,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1132,15 +1029,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1152,8 +1046,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -1161,13 +1053,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1176,8 +1068,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -1185,14 +1075,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1200,8 +1091,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -1209,22 +1098,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 5;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -1232,7 +1117,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 5;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1242,8 +1126,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -1251,23 +1133,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 5;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1277,43 +1157,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ListCloudDatabaseOperationsAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ListCloudDatabaseOperationsAction) - private static final com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction - DEFAULT_INSTANCE; - + private static final com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction(); } - public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction - getDefaultInstance() { + public static com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCloudDatabaseOperationsAction> PARSER = - new com.google.protobuf.AbstractParser<ListCloudDatabaseOperationsAction>() { - @java.lang.Override - public ListCloudDatabaseOperationsAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCloudDatabaseOperationsAction> + PARSER = new com.google.protobuf.AbstractParser<ListCloudDatabaseOperationsAction>() { + @java.lang.Override + public ListCloudDatabaseOperationsAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCloudDatabaseOperationsAction> parser() { return PARSER; @@ -1325,8 +1203,9 @@ public com.google.protobuf.Parser<ListCloudDatabaseOperationsAction> getParserFo } @java.lang.Override - public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java index fc74a4fb86a..2bf9ed620f5 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabaseOperationsActionOrBuilder.java @@ -1,83 +1,55 @@ -/* - * 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 interface ListCloudDatabaseOperationsActionOrBuilder - extends +public interface ListCloudDatabaseOperationsActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ListCloudDatabaseOperationsAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path) to list database operations from, * e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -88,13 +60,10 @@ public interface ListCloudDatabaseOperationsActionOrBuilder * </pre> * * <code>string filter = 3;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -105,28 +74,23 @@ public interface ListCloudDatabaseOperationsActionOrBuilder * </pre> * * <code>string filter = 3;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 4;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -134,13 +98,10 @@ public interface ListCloudDatabaseOperationsActionOrBuilder * </pre> * * <code>string page_token = 5;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabaseOperationsResponse to the same "parent" @@ -148,8 +109,8 @@ public interface ListCloudDatabaseOperationsActionOrBuilder * </pre> * * <code>string page_token = 5;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java similarity index 70% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java index 73f4de7ed68..401a526ccc4 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudDatabasesAction} */ -public final class ListCloudDatabasesAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCloudDatabasesAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ListCloudDatabasesAction) ListCloudDatabasesActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCloudDatabasesAction.newBuilder() to construct. private ListCloudDatabasesAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListCloudDatabasesAction() { projectId_ = ""; instanceId_ = ""; @@ -45,38 +27,33 @@ private ListCloudDatabasesAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCloudDatabasesAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudDatabasesAction.class, - com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder.class); + com.google.spanner.executor.v1.ListCloudDatabasesAction.class, com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -169,15 +142,12 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -186,12 +156,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -199,7 +166,6 @@ public int getPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ @java.lang.Override @@ -208,15 +174,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -224,15 +189,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -241,7 +207,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -282,7 +248,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -295,18 +262,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ListCloudDatabasesAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ListCloudDatabasesAction other = - (com.google.spanner.executor.v1.ListCloudDatabasesAction) obj; + com.google.spanner.executor.v1.ListCloudDatabasesAction other = (com.google.spanner.executor.v1.ListCloudDatabasesAction) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -332,136 +302,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListCloudDatabasesAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudDatabasesAction 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.ListCloudDatabasesAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudDatabasesAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ListCloudDatabasesAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ListCloudDatabasesAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudDatabasesAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ListCloudDatabasesAction) com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudDatabasesAction.class, - com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder.class); + com.google.spanner.executor.v1.ListCloudDatabasesAction.class, com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ListCloudDatabasesAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor; } @java.lang.Override @@ -495,11 +460,8 @@ public com.google.spanner.executor.v1.ListCloudDatabasesAction build() { @java.lang.Override public com.google.spanner.executor.v1.ListCloudDatabasesAction buildPartial() { - com.google.spanner.executor.v1.ListCloudDatabasesAction result = - new com.google.spanner.executor.v1.ListCloudDatabasesAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ListCloudDatabasesAction result = new com.google.spanner.executor.v1.ListCloudDatabasesAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -524,39 +486,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ListCloudDatabasesActi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ListCloudDatabasesAction) { - return mergeFrom((com.google.spanner.executor.v1.ListCloudDatabasesAction) other); + return mergeFrom((com.google.spanner.executor.v1.ListCloudDatabasesAction)other); } else { super.mergeFrom(other); return this; @@ -564,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ListCloudDatabasesAction other) { - if (other == com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -610,37 +570,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,25 +605,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -677,21 +629,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -699,35 +650,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -737,21 +681,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -761,20 +701,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -783,21 +721,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -805,35 +742,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -843,21 +773,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -865,17 +791,14 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -883,15 +806,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -903,15 +823,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -923,8 +840,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -932,13 +847,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -947,8 +862,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -956,14 +869,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -971,8 +885,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -980,22 +892,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -1003,7 +911,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>string page_token = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1013,8 +920,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -1022,23 +927,21 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 4;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1048,12 +951,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ListCloudDatabasesAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ListCloudDatabasesAction) private static final com.google.spanner.executor.v1.ListCloudDatabasesAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ListCloudDatabasesAction(); } @@ -1062,27 +965,27 @@ public static com.google.spanner.executor.v1.ListCloudDatabasesAction getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCloudDatabasesAction> PARSER = - new com.google.protobuf.AbstractParser<ListCloudDatabasesAction>() { - @java.lang.Override - public ListCloudDatabasesAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCloudDatabasesAction> + PARSER = new com.google.protobuf.AbstractParser<ListCloudDatabasesAction>() { + @java.lang.Override + public ListCloudDatabasesAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCloudDatabasesAction> parser() { return PARSER; @@ -1097,4 +1000,6 @@ public com.google.protobuf.Parser<ListCloudDatabasesAction> getParserForType() { public com.google.spanner.executor.v1.ListCloudDatabasesAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java index 95e13ccb1c3..eb5a29cf664 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudDatabasesActionOrBuilder.java @@ -1,95 +1,64 @@ -/* - * 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 interface ListCloudDatabasesActionOrBuilder - extends +public interface ListCloudDatabasesActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ListCloudDatabasesAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path) to list databases from, e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * Number of databases to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>int32 page_size = 3;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -97,13 +66,10 @@ public interface ListCloudDatabasesActionOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListDatabasesResponse to the same "parent" @@ -111,8 +77,8 @@ public interface ListCloudDatabasesActionOrBuilder * </pre> * * <code>string page_token = 4;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java similarity index 69% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java index 980fbf4beaf..f658c7145e4 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsAction.java @@ -1,43 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that lists user instance configs. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudInstanceConfigsAction} */ -public final class ListCloudInstanceConfigsAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCloudInstanceConfigsAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ListCloudInstanceConfigsAction) ListCloudInstanceConfigsActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCloudInstanceConfigsAction.newBuilder() to construct. - private ListCloudInstanceConfigsAction( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private ListCloudInstanceConfigsAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListCloudInstanceConfigsAction() { projectId_ = ""; pageToken_ = ""; @@ -45,39 +26,34 @@ private ListCloudInstanceConfigsAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCloudInstanceConfigsAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.class, - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder.class); + com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.class, com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder.class); } private int bitField0_; public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -86,29 +62,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -119,15 +95,12 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * * <pre> * Number of instance configs to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 2;</code> - * * @return Whether the pageSize field is set. */ @java.lang.Override @@ -135,15 +108,12 @@ public boolean hasPageSize() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Number of instance configs to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 2;</code> - * * @return The pageSize. */ @java.lang.Override @@ -152,19 +122,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return Whether the pageToken field is set. */ @java.lang.Override @@ -172,15 +138,12 @@ public boolean hasPageToken() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return The pageToken. */ @java.lang.Override @@ -189,30 +152,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -221,7 +184,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +195,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -256,7 +219,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -269,22 +233,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ListCloudInstanceConfigsAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction other = - (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) obj; + com.google.spanner.executor.v1.ListCloudInstanceConfigsAction other = (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) obj; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (hasPageSize() != other.hasPageSize()) return false; if (hasPageSize()) { - if (getPageSize() != other.getPageSize()) return false; + if (getPageSize() + != other.getPageSize()) return false; } if (hasPageToken() != other.hasPageToken()) return false; if (hasPageToken()) { - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -313,136 +279,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListCloudInstanceConfigsAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction 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.ListCloudInstanceConfigsAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ListCloudInstanceConfigsAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that lists user instance configs. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudInstanceConfigsAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ListCloudInstanceConfigsAction) com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.class, - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder.class); + com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.class, com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -454,14 +415,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction getDefaultInstanceForType() { return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance(); } @@ -476,17 +436,13 @@ public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction build() { @java.lang.Override public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction buildPartial() { - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction result = - new com.google.spanner.executor.v1.ListCloudInstanceConfigsAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ListCloudInstanceConfigsAction result = new com.google.spanner.executor.v1.ListCloudInstanceConfigsAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.ListCloudInstanceConfigsAction result) { + private void buildPartial0(com.google.spanner.executor.v1.ListCloudInstanceConfigsAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectId_ = projectId_; @@ -507,39 +463,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) { - return mergeFrom((com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) other); + return mergeFrom((com.google.spanner.executor.v1.ListCloudInstanceConfigsAction)other); } else { super.mergeFrom(other); return this; @@ -547,9 +502,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ListCloudInstanceConfigsAction other) { - if (other - == com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -589,31 +542,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,25 +572,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -650,21 +596,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -672,35 +617,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -710,21 +648,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -732,17 +666,14 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of instance configs to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 2;</code> - * * @return Whether the pageSize field is set. */ @java.lang.Override @@ -750,15 +681,12 @@ public boolean hasPageSize() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Number of instance configs to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 2;</code> - * * @return The pageSize. */ @java.lang.Override @@ -766,15 +694,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of instance configs to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 2;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -786,15 +711,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of instance configs to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 2;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -806,36 +728,31 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return Whether the pageToken field is set. */ public boolean hasPageToken() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -844,22 +761,21 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -867,37 +783,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -907,31 +816,27 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -941,13 +846,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ListCloudInstanceConfigsAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ListCloudInstanceConfigsAction) - private static final com.google.spanner.executor.v1.ListCloudInstanceConfigsAction - DEFAULT_INSTANCE; - + private static final com.google.spanner.executor.v1.ListCloudInstanceConfigsAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ListCloudInstanceConfigsAction(); } @@ -956,27 +860,27 @@ public static com.google.spanner.executor.v1.ListCloudInstanceConfigsAction getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCloudInstanceConfigsAction> PARSER = - new com.google.protobuf.AbstractParser<ListCloudInstanceConfigsAction>() { - @java.lang.Override - public ListCloudInstanceConfigsAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCloudInstanceConfigsAction> + PARSER = new com.google.protobuf.AbstractParser<ListCloudInstanceConfigsAction>() { + @java.lang.Override + public ListCloudInstanceConfigsAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCloudInstanceConfigsAction> parser() { return PARSER; @@ -991,4 +895,6 @@ public com.google.protobuf.Parser<ListCloudInstanceConfigsAction> getParserForTy public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java similarity index 70% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java index 410273d191a..1efc7cb3151 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstanceConfigsActionOrBuilder.java @@ -1,117 +1,82 @@ -/* - * 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 interface ListCloudInstanceConfigsActionOrBuilder - extends +public interface ListCloudInstanceConfigsActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ListCloudInstanceConfigsAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Number of instance configs to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 2;</code> - * * @return Whether the pageSize field is set. */ boolean hasPageSize(); /** - * - * * <pre> * Number of instance configs to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 2;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return Whether the pageToken field is set. */ boolean hasPageToken(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstanceConfigsResponse to the same "parent". * </pre> * * <code>optional string page_token = 3;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java index 0915a22818f..dd86bfb001e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudInstancesAction} */ -public final class ListCloudInstancesAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCloudInstancesAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ListCloudInstancesAction) ListCloudInstancesActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCloudInstancesAction.newBuilder() to construct. private ListCloudInstancesAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListCloudInstancesAction() { projectId_ = ""; filter_ = ""; @@ -45,39 +27,34 @@ private ListCloudInstancesAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCloudInstancesAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstancesAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstancesAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudInstancesAction.class, - com.google.spanner.executor.v1.ListCloudInstancesAction.Builder.class); + com.google.spanner.executor.v1.ListCloudInstancesAction.class, com.google.spanner.executor.v1.ListCloudInstancesAction.Builder.class); } private int bitField0_; public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -117,12 +94,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -133,7 +107,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * </pre> * * <code>optional string filter = 2;</code> - * * @return Whether the filter field is set. */ @java.lang.Override @@ -141,8 +114,6 @@ public boolean hasFilter() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -153,7 +124,6 @@ public boolean hasFilter() { * </pre> * * <code>optional string filter = 2;</code> - * * @return The filter. */ @java.lang.Override @@ -162,15 +132,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -181,15 +150,16 @@ public java.lang.String getFilter() { * </pre> * * <code>optional string filter = 2;</code> - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -200,15 +170,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 3;</code> - * * @return Whether the pageSize field is set. */ @java.lang.Override @@ -216,15 +183,12 @@ public boolean hasPageSize() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -233,12 +197,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -246,7 +207,6 @@ public int getPageSize() { * </pre> * * <code>optional string page_token = 4;</code> - * * @return Whether the pageToken field is set. */ @java.lang.Override @@ -254,8 +214,6 @@ public boolean hasPageToken() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -263,7 +221,6 @@ public boolean hasPageToken() { * </pre> * * <code>optional string page_token = 4;</code> - * * @return The pageToken. */ @java.lang.Override @@ -272,15 +229,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -288,15 +244,16 @@ public java.lang.String getPageToken() { * </pre> * * <code>optional string page_token = 4;</code> - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -305,7 +262,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -346,7 +303,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -359,26 +317,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ListCloudInstancesAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ListCloudInstancesAction other = - (com.google.spanner.executor.v1.ListCloudInstancesAction) obj; + com.google.spanner.executor.v1.ListCloudInstancesAction other = (com.google.spanner.executor.v1.ListCloudInstancesAction) obj; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (hasFilter() != other.hasFilter()) return false; if (hasFilter()) { - if (!getFilter().equals(other.getFilter())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; } if (hasPageSize() != other.hasPageSize()) return false; if (hasPageSize()) { - if (getPageSize() != other.getPageSize()) return false; + if (getPageSize() + != other.getPageSize()) return false; } if (hasPageToken() != other.hasPageToken()) return false; if (hasPageToken()) { - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -411,136 +372,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ListCloudInstancesAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudInstancesAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListCloudInstancesAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudInstancesAction 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.ListCloudInstancesAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ListCloudInstancesAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ListCloudInstancesAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudInstancesAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudInstancesAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudInstancesAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ListCloudInstancesAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ListCloudInstancesAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ListCloudInstancesAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ListCloudInstancesAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ListCloudInstancesAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ListCloudInstancesAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that lists Cloud Spanner databases. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ListCloudInstancesAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ListCloudInstancesAction) com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstancesAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstancesAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ListCloudInstancesAction.class, - com.google.spanner.executor.v1.ListCloudInstancesAction.Builder.class); + com.google.spanner.executor.v1.ListCloudInstancesAction.class, com.google.spanner.executor.v1.ListCloudInstancesAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ListCloudInstancesAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -553,9 +509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor; } @java.lang.Override @@ -574,11 +530,8 @@ public com.google.spanner.executor.v1.ListCloudInstancesAction build() { @java.lang.Override public com.google.spanner.executor.v1.ListCloudInstancesAction buildPartial() { - com.google.spanner.executor.v1.ListCloudInstancesAction result = - new com.google.spanner.executor.v1.ListCloudInstancesAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ListCloudInstancesAction result = new com.google.spanner.executor.v1.ListCloudInstancesAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -608,39 +561,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ListCloudInstancesActi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ListCloudInstancesAction) { - return mergeFrom((com.google.spanner.executor.v1.ListCloudInstancesAction) other); + return mergeFrom((com.google.spanner.executor.v1.ListCloudInstancesAction)other); } else { super.mergeFrom(other); return this; @@ -648,8 +600,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ListCloudInstancesAction other) { - if (other == com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -694,37 +645,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,25 +680,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -761,21 +704,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -783,35 +725,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -821,21 +756,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -845,8 +776,6 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -857,15 +786,12 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>optional string filter = 2;</code> - * * @return Whether the filter field is set. */ public boolean hasFilter() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -876,13 +802,13 @@ public boolean hasFilter() { * </pre> * * <code>optional string filter = 2;</code> - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -891,8 +817,6 @@ public java.lang.String getFilter() { } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -903,14 +827,15 @@ public java.lang.String getFilter() { * </pre> * * <code>optional string filter = 2;</code> - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -918,8 +843,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -930,22 +853,18 @@ public com.google.protobuf.ByteString getFilterBytes() { * </pre> * * <code>optional string filter = 2;</code> - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -956,7 +875,6 @@ public Builder setFilter(java.lang.String value) { * </pre> * * <code>optional string filter = 2;</code> - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -966,8 +884,6 @@ public Builder clearFilter() { return this; } /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -978,14 +894,12 @@ public Builder clearFilter() { * </pre> * * <code>optional string filter = 2;</code> - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -993,17 +907,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 3;</code> - * * @return Whether the pageSize field is set. */ @java.lang.Override @@ -1011,15 +922,12 @@ public boolean hasPageSize() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 3;</code> - * * @return The pageSize. */ @java.lang.Override @@ -1027,15 +935,12 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 3;</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1047,15 +952,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 3;</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1067,8 +969,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -1076,15 +976,12 @@ public Builder clearPageSize() { * </pre> * * <code>optional string page_token = 4;</code> - * * @return Whether the pageToken field is set. */ public boolean hasPageToken() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -1092,13 +989,13 @@ public boolean hasPageToken() { * </pre> * * <code>optional string page_token = 4;</code> - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1107,8 +1004,6 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -1116,14 +1011,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>optional string page_token = 4;</code> - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1131,8 +1027,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -1140,22 +1034,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * </pre> * * <code>optional string page_token = 4;</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -1163,7 +1053,6 @@ public Builder setPageToken(java.lang.String value) { * </pre> * * <code>optional string page_token = 4;</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1173,8 +1062,6 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -1182,23 +1069,21 @@ public Builder clearPageToken() { * </pre> * * <code>optional string page_token = 4;</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1208,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ListCloudInstancesAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ListCloudInstancesAction) private static final com.google.spanner.executor.v1.ListCloudInstancesAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ListCloudInstancesAction(); } @@ -1222,27 +1107,27 @@ public static com.google.spanner.executor.v1.ListCloudInstancesAction getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCloudInstancesAction> PARSER = - new com.google.protobuf.AbstractParser<ListCloudInstancesAction>() { - @java.lang.Override - public ListCloudInstancesAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCloudInstancesAction> + PARSER = new com.google.protobuf.AbstractParser<ListCloudInstancesAction>() { + @java.lang.Override + public ListCloudInstancesAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCloudInstancesAction> parser() { return PARSER; @@ -1257,4 +1142,6 @@ public com.google.protobuf.Parser<ListCloudInstancesAction> getParserForType() { public com.google.spanner.executor.v1.ListCloudInstancesAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java similarity index 78% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java index b6a066d1390..97bc676c940 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ListCloudInstancesActionOrBuilder.java @@ -1,56 +1,33 @@ -/* - * 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 interface ListCloudInstancesActionOrBuilder - extends +public interface ListCloudInstancesActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ListCloudInstancesAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -61,13 +38,10 @@ public interface ListCloudInstancesActionOrBuilder * </pre> * * <code>optional string filter = 2;</code> - * * @return Whether the filter field is set. */ boolean hasFilter(); /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -78,13 +52,10 @@ public interface ListCloudInstancesActionOrBuilder * </pre> * * <code>optional string filter = 2;</code> - * * @return The filter. */ java.lang.String getFilter(); /** - * - * * <pre> * A filter expression that filters what operations are returned in the * response. @@ -95,41 +66,33 @@ public interface ListCloudInstancesActionOrBuilder * </pre> * * <code>optional string filter = 2;</code> - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 3;</code> - * * @return Whether the pageSize field is set. */ boolean hasPageSize(); /** - * - * * <pre> * Number of instances to be returned in the response. If 0 or * less, defaults to the server's maximum allowed page size. * </pre> * * <code>optional int32 page_size = 3;</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -137,13 +100,10 @@ public interface ListCloudInstancesActionOrBuilder * </pre> * * <code>optional string page_token = 4;</code> - * * @return Whether the pageToken field is set. */ boolean hasPageToken(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -151,13 +111,10 @@ public interface ListCloudInstancesActionOrBuilder * </pre> * * <code>optional string page_token = 4;</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * If non-empty, "page_token" should contain a next_page_token * from a previous ListInstancesResponse to the same "parent" @@ -165,8 +122,8 @@ public interface ListCloudInstancesActionOrBuilder * </pre> * * <code>optional string page_token = 4;</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java similarity index 74% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java index aa426efc254..4b9a3d58d6d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationAction.java @@ -1,136 +1,103 @@ -/* - * 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; /** - * - * * <pre> * A single mutation request. * </pre> * * Protobuf type {@code google.spanner.executor.v1.MutationAction} */ -public final class MutationAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MutationAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.MutationAction) MutationActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MutationAction.newBuilder() to construct. private MutationAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private MutationAction() { mod_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MutationAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.MutationAction.class, - com.google.spanner.executor.v1.MutationAction.Builder.class); + com.google.spanner.executor.v1.MutationAction.class, com.google.spanner.executor.v1.MutationAction.Builder.class); } - public interface InsertArgsOrBuilder - extends + public interface InsertArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.MutationAction.InsertArgs) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @return A list containing the column. */ - java.util.List<java.lang.String> getColumnList(); + java.util.List<java.lang.String> + getColumnList(); /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @return The count of column. */ int getColumnCount(); /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ java.lang.String getColumn(int index); /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - com.google.protobuf.ByteString getColumnBytes(int index); + com.google.protobuf.ByteString + getColumnBytes(int index); /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - java.util.List<com.google.spanner.v1.Type> getTypeList(); + java.util.List<com.google.spanner.v1.Type> + getTypeList(); /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -139,8 +106,6 @@ public interface InsertArgsOrBuilder */ com.google.spanner.v1.Type getType(int index); /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -149,39 +114,34 @@ public interface InsertArgsOrBuilder */ int getTypeCount(); /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBuilderList(); + java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> + getTypeOrBuilderList(); /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder(int index); + com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder( + int index); /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - java.util.List<com.google.spanner.executor.v1.ValueList> getValuesList(); + java.util.List<com.google.spanner.executor.v1.ValueList> + getValuesList(); /** - * - * * <pre> * The values to be written. * </pre> @@ -190,8 +150,6 @@ public interface InsertArgsOrBuilder */ com.google.spanner.executor.v1.ValueList getValues(int index); /** - * - * * <pre> * The values to be written. * </pre> @@ -200,115 +158,100 @@ public interface InsertArgsOrBuilder */ int getValuesCount(); /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getValuesOrBuilderList(); /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int index); + com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder( + int index); } /** - * - * * <pre> * Arguments to Insert, InsertOrUpdate, and Replace operations. * </pre> * * Protobuf type {@code google.spanner.executor.v1.MutationAction.InsertArgs} */ - public static final class InsertArgs extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class InsertArgs extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.MutationAction.InsertArgs) InsertArgsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InsertArgs.newBuilder() to construct. private InsertArgs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private InsertArgs() { - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); type_ = java.util.Collections.emptyList(); values_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InsertArgs(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.MutationAction.InsertArgs.class, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder.class); + com.google.spanner.executor.v1.MutationAction.InsertArgs.class, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList column_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @return A list containing the column. */ - public com.google.protobuf.ProtocolStringList getColumnList() { + public com.google.protobuf.ProtocolStringList + getColumnList() { return column_; } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ @@ -316,28 +259,23 @@ public java.lang.String getColumn(int index) { return column_.get(index); } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - public com.google.protobuf.ByteString getColumnBytes(int index) { + public com.google.protobuf.ByteString + getColumnBytes(int index) { return column_.getByteString(index); } public static final int TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.v1.Type> type_; /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -349,8 +287,6 @@ public java.util.List<com.google.spanner.v1.Type> getTypeList() { return type_; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -358,12 +294,11 @@ public java.util.List<com.google.spanner.v1.Type> getTypeList() { * <code>repeated .google.spanner.v1.Type type = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBuilderList() { + public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> + getTypeOrBuilderList() { return type_; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -375,8 +310,6 @@ public int getTypeCount() { return type_.size(); } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -388,8 +321,6 @@ public com.google.spanner.v1.Type getType(int index) { return type_.get(index); } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -397,17 +328,15 @@ public com.google.spanner.v1.Type getType(int index) { * <code>repeated .google.spanner.v1.Type type = 2;</code> */ @java.lang.Override - public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder(int index) { + public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder( + int index) { return type_.get(index); } public static final int VALUES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.ValueList> values_; /** - * - * * <pre> * The values to be written. * </pre> @@ -419,8 +348,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getValuesList() return values_; } /** - * - * * <pre> * The values to be written. * </pre> @@ -428,13 +355,11 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getValuesList() * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getValuesOrBuilderList() { return values_; } /** - * - * * <pre> * The values to be written. * </pre> @@ -446,8 +371,6 @@ public int getValuesCount() { return values_.size(); } /** - * - * * <pre> * The values to be written. * </pre> @@ -459,8 +382,6 @@ public com.google.spanner.executor.v1.ValueList getValues(int index) { return values_.get(index); } /** - * - * * <pre> * The values to be written. * </pre> @@ -468,12 +389,12 @@ public com.google.spanner.executor.v1.ValueList getValues(int index) { * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder( + int index) { return values_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -485,7 +406,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < column_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_.getRaw(i)); } @@ -513,10 +435,12 @@ public int getSerializedSize() { size += 1 * getColumnList().size(); } for (int i = 0; i < type_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, type_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, type_.get(i)); } for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, values_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, values_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -526,17 +450,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.MutationAction.InsertArgs)) { return super.equals(obj); } - com.google.spanner.executor.v1.MutationAction.InsertArgs other = - (com.google.spanner.executor.v1.MutationAction.InsertArgs) obj; + com.google.spanner.executor.v1.MutationAction.InsertArgs other = (com.google.spanner.executor.v1.MutationAction.InsertArgs) obj; - if (!getColumnList().equals(other.getColumnList())) return false; - if (!getTypeList().equals(other.getTypeList())) return false; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getColumnList() + .equals(other.getColumnList())) return false; + if (!getTypeList() + .equals(other.getTypeList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -566,94 +492,89 @@ public int hashCode() { } public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MutationAction.InsertArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.InsertArgs 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.MutationAction.InsertArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.MutationAction.InsertArgs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.MutationAction.InsertArgs prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.MutationAction.InsertArgs prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -663,46 +584,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * Arguments to Insert, InsertOrUpdate, and Replace operations. * </pre> * * Protobuf type {@code google.spanner.executor.v1.MutationAction.InsertArgs} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.MutationAction.InsertArgs) com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.MutationAction.InsertArgs.class, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder.class); + com.google.spanner.executor.v1.MutationAction.InsertArgs.class, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder.class); } // Construct using com.google.spanner.executor.v1.MutationAction.InsertArgs.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (typeBuilder_ == null) { type_ = java.util.Collections.emptyList(); } else { @@ -721,9 +641,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor; } @java.lang.Override @@ -742,18 +662,14 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs build() { @java.lang.Override public com.google.spanner.executor.v1.MutationAction.InsertArgs buildPartial() { - com.google.spanner.executor.v1.MutationAction.InsertArgs result = - new com.google.spanner.executor.v1.MutationAction.InsertArgs(this); + com.google.spanner.executor.v1.MutationAction.InsertArgs result = new com.google.spanner.executor.v1.MutationAction.InsertArgs(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.MutationAction.InsertArgs result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.MutationAction.InsertArgs result) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { type_ = java.util.Collections.unmodifiableList(type_); @@ -786,41 +702,38 @@ private void buildPartial0(com.google.spanner.executor.v1.MutationAction.InsertA public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.MutationAction.InsertArgs) { - return mergeFrom((com.google.spanner.executor.v1.MutationAction.InsertArgs) other); + return mergeFrom((com.google.spanner.executor.v1.MutationAction.InsertArgs)other); } else { super.mergeFrom(other); return this; @@ -828,8 +741,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.MutationAction.InsertArgs other) { - if (other == com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance()) return this; if (!other.column_.isEmpty()) { if (column_.isEmpty()) { column_ = other.column_; @@ -858,10 +770,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.MutationAction.InsertArg typeBuilder_ = null; type_ = other.type_; bitField0_ = (bitField0_ & ~0x00000002); - typeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTypeFieldBuilder() - : null; + typeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTypeFieldBuilder() : null; } else { typeBuilder_.addAllMessages(other.type_); } @@ -885,10 +796,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.MutationAction.InsertArg valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -920,45 +830,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureColumnIsMutable(); - column_.add(s); - break; - } // case 10 - case 18: - { - com.google.spanner.v1.Type m = - input.readMessage(com.google.spanner.v1.Type.parser(), extensionRegistry); - if (typeBuilder_ == null) { - ensureTypeIsMutable(); - type_.add(m); - } else { - typeBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.spanner.executor.v1.ValueList m = - input.readMessage( - com.google.spanner.executor.v1.ValueList.parser(), extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureColumnIsMutable(); + column_.add(s); + break; + } // case 10 + case 18: { + com.google.spanner.v1.Type m = + input.readMessage( + com.google.spanner.v1.Type.parser(), + extensionRegistry); + if (typeBuilder_ == null) { + ensureTypeIsMutable(); + type_.add(m); + } else { + typeBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + com.google.spanner.executor.v1.ValueList m = + input.readMessage( + com.google.spanner.executor.v1.ValueList.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -968,12 +877,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList column_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureColumnIsMutable() { if (!column_.isModifiable()) { column_ = new com.google.protobuf.LazyStringArrayList(column_); @@ -981,43 +888,35 @@ private void ensureColumnIsMutable() { bitField0_ |= 0x00000001; } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @return A list containing the column. */ - public com.google.protobuf.ProtocolStringList getColumnList() { + public com.google.protobuf.ProtocolStringList + getColumnList() { column_.makeImmutable(); return column_; } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ @@ -1025,37 +924,31 @@ public java.lang.String getColumn(int index) { return column_.get(index); } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - public com.google.protobuf.ByteString getColumnBytes(int index) { + public com.google.protobuf.ByteString + getColumnBytes(int index) { return column_.getByteString(index); } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index to set the value at. * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumn( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.set(index, value); bitField0_ |= 0x00000001; @@ -1063,21 +956,17 @@ public Builder setColumn(int index, java.lang.String value) { return this; } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param value The column to add. * @return This builder for chaining. */ - public Builder addColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addColumn( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.add(value); bitField0_ |= 0x00000001; @@ -1085,58 +974,50 @@ public Builder addColumn(java.lang.String value) { return this; } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param values The column to add. * @return This builder for chaining. */ - public Builder addAllColumn(java.lang.Iterable<java.lang.String> values) { + public Builder addAllColumn( + java.lang.Iterable<java.lang.String> values) { ensureColumnIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, column_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, column_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @return This builder for chaining. */ public Builder clearColumn() { - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * * <pre> * The names of the columns to be written. * </pre> * * <code>repeated string column = 1;</code> - * * @param value The bytes of the column to add. * @return This builder for chaining. */ - public Builder addColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addColumnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureColumnIsMutable(); column_.add(value); @@ -1145,24 +1026,19 @@ public Builder addColumnBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List<com.google.spanner.v1.Type> type_ = java.util.Collections.emptyList(); - + private java.util.List<com.google.spanner.v1.Type> type_ = + java.util.Collections.emptyList(); private void ensureTypeIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { type_ = new java.util.ArrayList<com.google.spanner.v1.Type>(type_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.v1.Type, - com.google.spanner.v1.Type.Builder, - com.google.spanner.v1.TypeOrBuilder> - typeBuilder_; + com.google.spanner.v1.Type, com.google.spanner.v1.Type.Builder, com.google.spanner.v1.TypeOrBuilder> typeBuilder_; /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -1177,8 +1053,6 @@ public java.util.List<com.google.spanner.v1.Type> getTypeList() { } } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -1193,8 +1067,6 @@ public int getTypeCount() { } } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -1209,15 +1081,14 @@ public com.google.spanner.v1.Type getType(int index) { } } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder setType(int index, com.google.spanner.v1.Type value) { + public Builder setType( + int index, com.google.spanner.v1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1231,15 +1102,14 @@ public Builder setType(int index, com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder setType(int index, com.google.spanner.v1.Type.Builder builderForValue) { + public Builder setType( + int index, com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { ensureTypeIsMutable(); type_.set(index, builderForValue.build()); @@ -1250,8 +1120,6 @@ public Builder setType(int index, com.google.spanner.v1.Type.Builder builderForV return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -1272,15 +1140,14 @@ public Builder addType(com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder addType(int index, com.google.spanner.v1.Type value) { + public Builder addType( + int index, com.google.spanner.v1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1294,15 +1161,14 @@ public Builder addType(int index, com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder addType(com.google.spanner.v1.Type.Builder builderForValue) { + public Builder addType( + com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { ensureTypeIsMutable(); type_.add(builderForValue.build()); @@ -1313,15 +1179,14 @@ public Builder addType(com.google.spanner.v1.Type.Builder builderForValue) { return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder addType(int index, com.google.spanner.v1.Type.Builder builderForValue) { + public Builder addType( + int index, com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { ensureTypeIsMutable(); type_.add(index, builderForValue.build()); @@ -1332,18 +1197,18 @@ public Builder addType(int index, com.google.spanner.v1.Type.Builder builderForV return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder addAllType(java.lang.Iterable<? extends com.google.spanner.v1.Type> values) { + public Builder addAllType( + java.lang.Iterable<? extends com.google.spanner.v1.Type> values) { if (typeBuilder_ == null) { ensureTypeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, type_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, type_); onChanged(); } else { typeBuilder_.addAllMessages(values); @@ -1351,8 +1216,6 @@ public Builder addAllType(java.lang.Iterable<? extends com.google.spanner.v1.Typ return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -1370,8 +1233,6 @@ public Builder clearType() { return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -1389,43 +1250,39 @@ public Builder removeType(int index) { return this; } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public com.google.spanner.v1.Type.Builder getTypeBuilder(int index) { + public com.google.spanner.v1.Type.Builder getTypeBuilder( + int index) { return getTypeFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder(int index) { + public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder( + int index) { if (typeBuilder_ == null) { - return type_.get(index); - } else { + return type_.get(index); } else { return typeBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBuilderList() { + public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> + getTypeOrBuilderList() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilderList(); } else { @@ -1433,8 +1290,6 @@ public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBu } } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> @@ -1442,70 +1297,60 @@ public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBu * <code>repeated .google.spanner.v1.Type type = 2;</code> */ public com.google.spanner.v1.Type.Builder addTypeBuilder() { - return getTypeFieldBuilder().addBuilder(com.google.spanner.v1.Type.getDefaultInstance()); + return getTypeFieldBuilder().addBuilder( + com.google.spanner.v1.Type.getDefaultInstance()); } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public com.google.spanner.v1.Type.Builder addTypeBuilder(int index) { - return getTypeFieldBuilder() - .addBuilder(index, com.google.spanner.v1.Type.getDefaultInstance()); + public com.google.spanner.v1.Type.Builder addTypeBuilder( + int index) { + return getTypeFieldBuilder().addBuilder( + index, com.google.spanner.v1.Type.getDefaultInstance()); } /** - * - * * <pre> * Type information for the "values" entries below. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public java.util.List<com.google.spanner.v1.Type.Builder> getTypeBuilderList() { + public java.util.List<com.google.spanner.v1.Type.Builder> + getTypeBuilderList() { return getTypeFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.v1.Type, - com.google.spanner.v1.Type.Builder, - com.google.spanner.v1.TypeOrBuilder> + 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.RepeatedFieldBuilderV3< - com.google.spanner.v1.Type, - com.google.spanner.v1.Type.Builder, - com.google.spanner.v1.TypeOrBuilder>( - type_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + typeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.v1.Type, com.google.spanner.v1.Type.Builder, com.google.spanner.v1.TypeOrBuilder>( + type_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); type_ = null; } return typeBuilder_; } private java.util.List<com.google.spanner.executor.v1.ValueList> values_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { values_ = new java.util.ArrayList<com.google.spanner.executor.v1.ValueList>(values_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> - valuesBuilder_; + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> valuesBuilder_; /** - * - * * <pre> * The values to be written. * </pre> @@ -1520,8 +1365,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getValuesList() } } /** - * - * * <pre> * The values to be written. * </pre> @@ -1536,8 +1379,6 @@ public int getValuesCount() { } } /** - * - * * <pre> * The values to be written. * </pre> @@ -1552,15 +1393,14 @@ public com.google.spanner.executor.v1.ValueList getValues(int index) { } } /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public Builder setValues(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder setValues( + int index, com.google.spanner.executor.v1.ValueList value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1574,8 +1414,6 @@ public Builder setValues(int index, com.google.spanner.executor.v1.ValueList val return this; } /** - * - * * <pre> * The values to be written. * </pre> @@ -1594,8 +1432,6 @@ public Builder setValues( return this; } /** - * - * * <pre> * The values to be written. * </pre> @@ -1616,15 +1452,14 @@ public Builder addValues(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public Builder addValues(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder addValues( + int index, com.google.spanner.executor.v1.ValueList value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1638,15 +1473,14 @@ public Builder addValues(int index, com.google.spanner.executor.v1.ValueList val return this; } /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public Builder addValues(com.google.spanner.executor.v1.ValueList.Builder builderForValue) { + public Builder addValues( + com.google.spanner.executor.v1.ValueList.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); @@ -1657,8 +1491,6 @@ public Builder addValues(com.google.spanner.executor.v1.ValueList.Builder builde return this; } /** - * - * * <pre> * The values to be written. * </pre> @@ -1677,8 +1509,6 @@ public Builder addValues( return this; } /** - * - * * <pre> * The values to be written. * </pre> @@ -1689,7 +1519,8 @@ public Builder addAllValues( java.lang.Iterable<? extends com.google.spanner.executor.v1.ValueList> values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); @@ -1697,8 +1528,6 @@ public Builder addAllValues( return this; } /** - * - * * <pre> * The values to be written. * </pre> @@ -1716,8 +1545,6 @@ public Builder clearValues() { return this; } /** - * - * * <pre> * The values to be written. * </pre> @@ -1735,44 +1562,39 @@ public Builder removeValues(int index) { return this; } /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder getValuesBuilder(int index) { + public com.google.spanner.executor.v1.ValueList.Builder getValuesBuilder( + int index) { return getValuesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder( + int index) { if (valuesBuilder_ == null) { - return values_.get(index); - } else { + return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> - getValuesOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -1780,8 +1602,6 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int } } /** - * - * * <pre> * The values to be written. * </pre> @@ -1789,53 +1609,46 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ public com.google.spanner.executor.v1.ValueList.Builder addValuesBuilder() { - return getValuesFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + return getValuesFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder addValuesBuilder(int index) { - return getValuesFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + public com.google.spanner.executor.v1.ValueList.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * The values to be written. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> - getValuesBuilderList() { + public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> + getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder>( - values_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder>( + values_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); values_ = null; } return valuesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1848,12 +1661,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.MutationAction.InsertArgs) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.MutationAction.InsertArgs) private static final com.google.spanner.executor.v1.MutationAction.InsertArgs DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.MutationAction.InsertArgs(); } @@ -1862,28 +1675,27 @@ public static com.google.spanner.executor.v1.MutationAction.InsertArgs getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<InsertArgs> PARSER = - new com.google.protobuf.AbstractParser<InsertArgs>() { - @java.lang.Override - public InsertArgs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<InsertArgs> + PARSER = new com.google.protobuf.AbstractParser<InsertArgs>() { + @java.lang.Override + public InsertArgs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<InsertArgs> parser() { return PARSER; @@ -1898,77 +1710,64 @@ public com.google.protobuf.Parser<InsertArgs> getParserForType() { public com.google.spanner.executor.v1.MutationAction.InsertArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UpdateArgsOrBuilder - extends + public interface UpdateArgsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.MutationAction.UpdateArgs) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @return A list containing the column. */ - java.util.List<java.lang.String> getColumnList(); + java.util.List<java.lang.String> + getColumnList(); /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @return The count of column. */ int getColumnCount(); /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ java.lang.String getColumn(int index); /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - com.google.protobuf.ByteString getColumnBytes(int index); + com.google.protobuf.ByteString + getColumnBytes(int index); /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - java.util.List<com.google.spanner.v1.Type> getTypeList(); + java.util.List<com.google.spanner.v1.Type> + getTypeList(); /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -1977,8 +1776,6 @@ public interface UpdateArgsOrBuilder */ com.google.spanner.v1.Type getType(int index); /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -1987,39 +1784,34 @@ public interface UpdateArgsOrBuilder */ int getTypeCount(); /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBuilderList(); + java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> + getTypeOrBuilderList(); /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder(int index); + com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder( + int index); /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - java.util.List<com.google.spanner.executor.v1.ValueList> getValuesList(); + java.util.List<com.google.spanner.executor.v1.ValueList> + getValuesList(); /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -2028,8 +1820,6 @@ public interface UpdateArgsOrBuilder */ com.google.spanner.executor.v1.ValueList getValues(int index); /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -2038,115 +1828,100 @@ public interface UpdateArgsOrBuilder */ int getValuesCount(); /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getValuesOrBuilderList(); /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int index); + com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder( + int index); } /** - * - * * <pre> * Arguments to Update. * </pre> * * Protobuf type {@code google.spanner.executor.v1.MutationAction.UpdateArgs} */ - public static final class UpdateArgs extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class UpdateArgs extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.MutationAction.UpdateArgs) UpdateArgsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateArgs.newBuilder() to construct. private UpdateArgs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private UpdateArgs() { - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); type_ = java.util.Collections.emptyList(); values_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateArgs(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.MutationAction.UpdateArgs.class, - com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder.class); + com.google.spanner.executor.v1.MutationAction.UpdateArgs.class, com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList column_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @return A list containing the column. */ - public com.google.protobuf.ProtocolStringList getColumnList() { + public com.google.protobuf.ProtocolStringList + getColumnList() { return column_; } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ @@ -2154,28 +1929,23 @@ public java.lang.String getColumn(int index) { return column_.get(index); } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - public com.google.protobuf.ByteString getColumnBytes(int index) { + public com.google.protobuf.ByteString + getColumnBytes(int index) { return column_.getByteString(index); } public static final int TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.v1.Type> type_; /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -2187,8 +1957,6 @@ public java.util.List<com.google.spanner.v1.Type> getTypeList() { return type_; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -2196,12 +1964,11 @@ public java.util.List<com.google.spanner.v1.Type> getTypeList() { * <code>repeated .google.spanner.v1.Type type = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBuilderList() { + public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> + getTypeOrBuilderList() { return type_; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -2213,8 +1980,6 @@ public int getTypeCount() { return type_.size(); } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -2226,8 +1991,6 @@ public com.google.spanner.v1.Type getType(int index) { return type_.get(index); } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -2235,17 +1998,15 @@ public com.google.spanner.v1.Type getType(int index) { * <code>repeated .google.spanner.v1.Type type = 2;</code> */ @java.lang.Override - public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder(int index) { + public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder( + int index) { return type_.get(index); } public static final int VALUES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.ValueList> values_; /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -2257,8 +2018,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getValuesList() return values_; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -2266,13 +2025,11 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getValuesList() * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getValuesOrBuilderList() { return values_; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -2284,8 +2041,6 @@ public int getValuesCount() { return values_.size(); } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -2297,8 +2052,6 @@ public com.google.spanner.executor.v1.ValueList getValues(int index) { return values_.get(index); } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -2306,12 +2059,12 @@ public com.google.spanner.executor.v1.ValueList getValues(int index) { * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder( + int index) { return values_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2323,7 +2076,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < column_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_.getRaw(i)); } @@ -2351,10 +2105,12 @@ public int getSerializedSize() { size += 1 * getColumnList().size(); } for (int i = 0; i < type_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, type_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, type_.get(i)); } for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, values_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, values_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2364,17 +2120,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.MutationAction.UpdateArgs)) { return super.equals(obj); } - com.google.spanner.executor.v1.MutationAction.UpdateArgs other = - (com.google.spanner.executor.v1.MutationAction.UpdateArgs) obj; + com.google.spanner.executor.v1.MutationAction.UpdateArgs other = (com.google.spanner.executor.v1.MutationAction.UpdateArgs) obj; - if (!getColumnList().equals(other.getColumnList())) return false; - if (!getTypeList().equals(other.getTypeList())) return false; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getColumnList() + .equals(other.getColumnList())) return false; + if (!getTypeList() + .equals(other.getTypeList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2404,94 +2162,89 @@ public int hashCode() { } public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MutationAction.UpdateArgs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.UpdateArgs 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.MutationAction.UpdateArgs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.MutationAction.UpdateArgs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.MutationAction.UpdateArgs prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.MutationAction.UpdateArgs prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2501,46 +2254,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * Arguments to Update. * </pre> * * Protobuf type {@code google.spanner.executor.v1.MutationAction.UpdateArgs} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.MutationAction.UpdateArgs) com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.MutationAction.UpdateArgs.class, - com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder.class); + com.google.spanner.executor.v1.MutationAction.UpdateArgs.class, com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder.class); } // Construct using com.google.spanner.executor.v1.MutationAction.UpdateArgs.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (typeBuilder_ == null) { type_ = java.util.Collections.emptyList(); } else { @@ -2559,9 +2311,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor; } @java.lang.Override @@ -2580,18 +2332,14 @@ public com.google.spanner.executor.v1.MutationAction.UpdateArgs build() { @java.lang.Override public com.google.spanner.executor.v1.MutationAction.UpdateArgs buildPartial() { - com.google.spanner.executor.v1.MutationAction.UpdateArgs result = - new com.google.spanner.executor.v1.MutationAction.UpdateArgs(this); + com.google.spanner.executor.v1.MutationAction.UpdateArgs result = new com.google.spanner.executor.v1.MutationAction.UpdateArgs(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.MutationAction.UpdateArgs result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.MutationAction.UpdateArgs result) { if (typeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { type_ = java.util.Collections.unmodifiableList(type_); @@ -2624,41 +2372,38 @@ private void buildPartial0(com.google.spanner.executor.v1.MutationAction.UpdateA public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.MutationAction.UpdateArgs) { - return mergeFrom((com.google.spanner.executor.v1.MutationAction.UpdateArgs) other); + return mergeFrom((com.google.spanner.executor.v1.MutationAction.UpdateArgs)other); } else { super.mergeFrom(other); return this; @@ -2666,8 +2411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.MutationAction.UpdateArgs other) { - if (other == com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance()) return this; if (!other.column_.isEmpty()) { if (column_.isEmpty()) { column_ = other.column_; @@ -2696,10 +2440,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.MutationAction.UpdateArg typeBuilder_ = null; type_ = other.type_; bitField0_ = (bitField0_ & ~0x00000002); - typeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTypeFieldBuilder() - : null; + typeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTypeFieldBuilder() : null; } else { typeBuilder_.addAllMessages(other.type_); } @@ -2723,10 +2466,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.MutationAction.UpdateArg valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValuesFieldBuilder() - : null; + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } @@ -2758,45 +2500,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureColumnIsMutable(); - column_.add(s); - break; - } // case 10 - case 18: - { - com.google.spanner.v1.Type m = - input.readMessage(com.google.spanner.v1.Type.parser(), extensionRegistry); - if (typeBuilder_ == null) { - ensureTypeIsMutable(); - type_.add(m); - } else { - typeBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.spanner.executor.v1.ValueList m = - input.readMessage( - com.google.spanner.executor.v1.ValueList.parser(), extensionRegistry); - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(m); - } else { - valuesBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureColumnIsMutable(); + column_.add(s); + break; + } // case 10 + case 18: { + com.google.spanner.v1.Type m = + input.readMessage( + com.google.spanner.v1.Type.parser(), + extensionRegistry); + if (typeBuilder_ == null) { + ensureTypeIsMutable(); + type_.add(m); + } else { + typeBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + com.google.spanner.executor.v1.ValueList m = + input.readMessage( + com.google.spanner.executor.v1.ValueList.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2806,12 +2547,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList column_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureColumnIsMutable() { if (!column_.isModifiable()) { column_ = new com.google.protobuf.LazyStringArrayList(column_); @@ -2819,43 +2558,35 @@ private void ensureColumnIsMutable() { bitField0_ |= 0x00000001; } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @return A list containing the column. */ - public com.google.protobuf.ProtocolStringList getColumnList() { + public com.google.protobuf.ProtocolStringList + getColumnList() { column_.makeImmutable(); return column_; } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ @@ -2863,37 +2594,31 @@ public java.lang.String getColumn(int index) { return column_.get(index); } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - public com.google.protobuf.ByteString getColumnBytes(int index) { + public com.google.protobuf.ByteString + getColumnBytes(int index) { return column_.getByteString(index); } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param index The index to set the value at. * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumn( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.set(index, value); bitField0_ |= 0x00000001; @@ -2901,21 +2626,17 @@ public Builder setColumn(int index, java.lang.String value) { return this; } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param value The column to add. * @return This builder for chaining. */ - public Builder addColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addColumn( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.add(value); bitField0_ |= 0x00000001; @@ -2923,58 +2644,50 @@ public Builder addColumn(java.lang.String value) { return this; } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param values The column to add. * @return This builder for chaining. */ - public Builder addAllColumn(java.lang.Iterable<java.lang.String> values) { + public Builder addAllColumn( + java.lang.Iterable<java.lang.String> values) { ensureColumnIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, column_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, column_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @return This builder for chaining. */ public Builder clearColumn() { - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * * <pre> * The columns to be updated. Identical to InsertArgs.column. * </pre> * * <code>repeated string column = 1;</code> - * * @param value The bytes of the column to add. * @return This builder for chaining. */ - public Builder addColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addColumnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureColumnIsMutable(); column_.add(value); @@ -2983,24 +2696,19 @@ public Builder addColumnBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List<com.google.spanner.v1.Type> type_ = java.util.Collections.emptyList(); - + private java.util.List<com.google.spanner.v1.Type> type_ = + java.util.Collections.emptyList(); private void ensureTypeIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { type_ = new java.util.ArrayList<com.google.spanner.v1.Type>(type_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.v1.Type, - com.google.spanner.v1.Type.Builder, - com.google.spanner.v1.TypeOrBuilder> - typeBuilder_; + com.google.spanner.v1.Type, com.google.spanner.v1.Type.Builder, com.google.spanner.v1.TypeOrBuilder> typeBuilder_; /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -3015,8 +2723,6 @@ public java.util.List<com.google.spanner.v1.Type> getTypeList() { } } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -3031,8 +2737,6 @@ public int getTypeCount() { } } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -3047,15 +2751,14 @@ public com.google.spanner.v1.Type getType(int index) { } } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder setType(int index, com.google.spanner.v1.Type value) { + public Builder setType( + int index, com.google.spanner.v1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3069,15 +2772,14 @@ public Builder setType(int index, com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder setType(int index, com.google.spanner.v1.Type.Builder builderForValue) { + public Builder setType( + int index, com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { ensureTypeIsMutable(); type_.set(index, builderForValue.build()); @@ -3088,8 +2790,6 @@ public Builder setType(int index, com.google.spanner.v1.Type.Builder builderForV return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -3110,15 +2810,14 @@ public Builder addType(com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder addType(int index, com.google.spanner.v1.Type value) { + public Builder addType( + int index, com.google.spanner.v1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3132,15 +2831,14 @@ public Builder addType(int index, com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder addType(com.google.spanner.v1.Type.Builder builderForValue) { + public Builder addType( + com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { ensureTypeIsMutable(); type_.add(builderForValue.build()); @@ -3151,15 +2849,14 @@ public Builder addType(com.google.spanner.v1.Type.Builder builderForValue) { return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder addType(int index, com.google.spanner.v1.Type.Builder builderForValue) { + public Builder addType( + int index, com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { ensureTypeIsMutable(); type_.add(index, builderForValue.build()); @@ -3170,18 +2867,18 @@ public Builder addType(int index, com.google.spanner.v1.Type.Builder builderForV return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public Builder addAllType(java.lang.Iterable<? extends com.google.spanner.v1.Type> values) { + public Builder addAllType( + java.lang.Iterable<? extends com.google.spanner.v1.Type> values) { if (typeBuilder_ == null) { ensureTypeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, type_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, type_); onChanged(); } else { typeBuilder_.addAllMessages(values); @@ -3189,8 +2886,6 @@ public Builder addAllType(java.lang.Iterable<? extends com.google.spanner.v1.Typ return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -3208,8 +2903,6 @@ public Builder clearType() { return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -3227,43 +2920,39 @@ public Builder removeType(int index) { return this; } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public com.google.spanner.v1.Type.Builder getTypeBuilder(int index) { + public com.google.spanner.v1.Type.Builder getTypeBuilder( + int index) { return getTypeFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder(int index) { + public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder( + int index) { if (typeBuilder_ == null) { - return type_.get(index); - } else { + return type_.get(index); } else { return typeBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBuilderList() { + public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> + getTypeOrBuilderList() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilderList(); } else { @@ -3271,8 +2960,6 @@ public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBu } } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> @@ -3280,70 +2967,60 @@ public java.util.List<? extends com.google.spanner.v1.TypeOrBuilder> getTypeOrBu * <code>repeated .google.spanner.v1.Type type = 2;</code> */ public com.google.spanner.v1.Type.Builder addTypeBuilder() { - return getTypeFieldBuilder().addBuilder(com.google.spanner.v1.Type.getDefaultInstance()); + return getTypeFieldBuilder().addBuilder( + com.google.spanner.v1.Type.getDefaultInstance()); } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public com.google.spanner.v1.Type.Builder addTypeBuilder(int index) { - return getTypeFieldBuilder() - .addBuilder(index, com.google.spanner.v1.Type.getDefaultInstance()); + public com.google.spanner.v1.Type.Builder addTypeBuilder( + int index) { + return getTypeFieldBuilder().addBuilder( + index, com.google.spanner.v1.Type.getDefaultInstance()); } /** - * - * * <pre> * Type information for "values". Identical to InsertArgs.type. * </pre> * * <code>repeated .google.spanner.v1.Type type = 2;</code> */ - public java.util.List<com.google.spanner.v1.Type.Builder> getTypeBuilderList() { + public java.util.List<com.google.spanner.v1.Type.Builder> + getTypeBuilderList() { return getTypeFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.v1.Type, - com.google.spanner.v1.Type.Builder, - com.google.spanner.v1.TypeOrBuilder> + 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.RepeatedFieldBuilderV3< - com.google.spanner.v1.Type, - com.google.spanner.v1.Type.Builder, - com.google.spanner.v1.TypeOrBuilder>( - type_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + typeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.v1.Type, com.google.spanner.v1.Type.Builder, com.google.spanner.v1.TypeOrBuilder>( + type_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); type_ = null; } return typeBuilder_; } private java.util.List<com.google.spanner.executor.v1.ValueList> values_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { values_ = new java.util.ArrayList<com.google.spanner.executor.v1.ValueList>(values_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> - valuesBuilder_; + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> valuesBuilder_; /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3358,8 +3035,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getValuesList() } } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3374,8 +3049,6 @@ public int getValuesCount() { } } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3390,15 +3063,14 @@ public com.google.spanner.executor.v1.ValueList getValues(int index) { } } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public Builder setValues(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder setValues( + int index, com.google.spanner.executor.v1.ValueList value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3412,8 +3084,6 @@ public Builder setValues(int index, com.google.spanner.executor.v1.ValueList val return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3432,8 +3102,6 @@ public Builder setValues( return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3454,15 +3122,14 @@ public Builder addValues(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public Builder addValues(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder addValues( + int index, com.google.spanner.executor.v1.ValueList value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3476,15 +3143,14 @@ public Builder addValues(int index, com.google.spanner.executor.v1.ValueList val return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public Builder addValues(com.google.spanner.executor.v1.ValueList.Builder builderForValue) { + public Builder addValues( + com.google.spanner.executor.v1.ValueList.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); @@ -3495,8 +3161,6 @@ public Builder addValues(com.google.spanner.executor.v1.ValueList.Builder builde return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3515,8 +3179,6 @@ public Builder addValues( return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3527,7 +3189,8 @@ public Builder addAllValues( java.lang.Iterable<? extends com.google.spanner.executor.v1.ValueList> values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); @@ -3535,8 +3198,6 @@ public Builder addAllValues( return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3554,8 +3215,6 @@ public Builder clearValues() { return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3573,44 +3232,39 @@ public Builder removeValues(int index) { return this; } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder getValuesBuilder(int index) { + public com.google.spanner.executor.v1.ValueList.Builder getValuesBuilder( + int index) { return getValuesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder( + int index) { if (valuesBuilder_ == null) { - return values_.get(index); - } else { + return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> - getValuesOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { @@ -3618,8 +3272,6 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int } } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> @@ -3627,53 +3279,46 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getValuesOrBuilder(int * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ public com.google.spanner.executor.v1.ValueList.Builder addValuesBuilder() { - return getValuesFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + return getValuesFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder addValuesBuilder(int index) { - return getValuesFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + public com.google.spanner.executor.v1.ValueList.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * The values to be updated. Identical to InsertArgs.values. * </pre> * * <code>repeated .google.spanner.executor.v1.ValueList values = 3;</code> */ - public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> - getValuesBuilderList() { + public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> + getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder>( - values_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder>( + values_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); values_ = null; } return valuesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3686,12 +3331,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.MutationAction.UpdateArgs) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.MutationAction.UpdateArgs) private static final com.google.spanner.executor.v1.MutationAction.UpdateArgs DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.MutationAction.UpdateArgs(); } @@ -3700,28 +3345,27 @@ public static com.google.spanner.executor.v1.MutationAction.UpdateArgs getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateArgs> PARSER = - new com.google.protobuf.AbstractParser<UpdateArgs>() { - @java.lang.Override - public UpdateArgs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateArgs> + PARSER = new com.google.protobuf.AbstractParser<UpdateArgs>() { + @java.lang.Override + public UpdateArgs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateArgs> parser() { return PARSER; @@ -3736,67 +3380,54 @@ public com.google.protobuf.Parser<UpdateArgs> getParserForType() { public com.google.spanner.executor.v1.MutationAction.UpdateArgs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ModOrBuilder - extends + public interface ModOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.MutationAction.Mod) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @return The table. */ java.lang.String getTable(); /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;</code> - * * @return Whether the insert field is set. */ boolean hasInsert(); /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;</code> - * * @return The insert. */ com.google.spanner.executor.v1.MutationAction.InsertArgs getInsert(); /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -3807,32 +3438,24 @@ public interface ModOrBuilder com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getInsertOrBuilder(); /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;</code> - * * @return Whether the update field is set. */ boolean hasUpdate(); /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;</code> - * * @return The update. */ com.google.spanner.executor.v1.MutationAction.UpdateArgs getUpdate(); /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> @@ -3842,32 +3465,24 @@ public interface ModOrBuilder com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder getUpdateOrBuilder(); /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> - * * @return Whether the insertOrUpdate field is set. */ boolean hasInsertOrUpdate(); /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> - * * @return The insertOrUpdate. */ com.google.spanner.executor.v1.MutationAction.InsertArgs getInsertOrUpdate(); /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> @@ -3877,32 +3492,24 @@ public interface ModOrBuilder com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getInsertOrUpdateOrBuilder(); /** - * - * * <pre> * Replace existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;</code> - * * @return Whether the replace field is set. */ boolean hasReplace(); /** - * - * * <pre> * Replace existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;</code> - * * @return The replace. */ com.google.spanner.executor.v1.MutationAction.InsertArgs getReplace(); /** - * - * * <pre> * Replace existing rows of "table". * </pre> @@ -3912,32 +3519,24 @@ public interface ModOrBuilder com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getReplaceOrBuilder(); /** - * - * * <pre> * Delete rows from "table". * </pre> * * <code>.google.spanner.executor.v1.KeySet delete_keys = 6;</code> - * * @return Whether the deleteKeys field is set. */ boolean hasDeleteKeys(); /** - * - * * <pre> * Delete rows from "table". * </pre> * * <code>.google.spanner.executor.v1.KeySet delete_keys = 6;</code> - * * @return The deleteKeys. */ com.google.spanner.executor.v1.KeySet getDeleteKeys(); /** - * - * * <pre> * Delete rows from "table". * </pre> @@ -3947,8 +3546,6 @@ public interface ModOrBuilder com.google.spanner.executor.v1.KeySetOrBuilder getDeleteKeysOrBuilder(); } /** - * - * * <pre> * Mod represents the write action that will be perform to a table. Each mod * will specify exactly one action, from insert, update, insert_or_update, @@ -3957,54 +3554,48 @@ public interface ModOrBuilder * * Protobuf type {@code google.spanner.executor.v1.MutationAction.Mod} */ - public static final class Mod extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Mod extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.MutationAction.Mod) ModOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Mod.newBuilder() to construct. private Mod(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private Mod() { table_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter 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_MutationAction_Mod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_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_MutationAction_Mod_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_Mod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.MutationAction.Mod.class, - com.google.spanner.executor.v1.MutationAction.Mod.Builder.class); + com.google.spanner.executor.v1.MutationAction.Mod.class, com.google.spanner.executor.v1.MutationAction.Mod.Builder.class); } public static final int TABLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @return The table. */ @java.lang.Override @@ -4013,29 +3604,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -4046,15 +3637,12 @@ public com.google.protobuf.ByteString getTableBytes() { public static final int INSERT_FIELD_NUMBER = 2; private com.google.spanner.executor.v1.MutationAction.InsertArgs insert_; /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;</code> - * * @return Whether the insert field is set. */ @java.lang.Override @@ -4062,26 +3650,19 @@ public boolean hasInsert() { return insert_ != null; } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;</code> - * * @return The insert. */ @java.lang.Override public com.google.spanner.executor.v1.MutationAction.InsertArgs getInsert() { - return insert_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : insert_; + return insert_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : insert_; } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -4091,22 +3672,17 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs getInsert() { */ @java.lang.Override public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getInsertOrBuilder() { - return insert_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : insert_; + return insert_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : insert_; } public static final int UPDATE_FIELD_NUMBER = 3; private com.google.spanner.executor.v1.MutationAction.UpdateArgs update_; /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;</code> - * * @return Whether the update field is set. */ @java.lang.Override @@ -4114,25 +3690,18 @@ public boolean hasUpdate() { return update_ != null; } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;</code> - * * @return The update. */ @java.lang.Override public com.google.spanner.executor.v1.MutationAction.UpdateArgs getUpdate() { - return update_ == null - ? com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance() - : update_; + return update_ == null ? com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance() : update_; } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> @@ -4141,22 +3710,17 @@ public com.google.spanner.executor.v1.MutationAction.UpdateArgs getUpdate() { */ @java.lang.Override public com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder getUpdateOrBuilder() { - return update_ == null - ? com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance() - : update_; + return update_ == null ? com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance() : update_; } public static final int INSERT_OR_UPDATE_FIELD_NUMBER = 4; private com.google.spanner.executor.v1.MutationAction.InsertArgs insertOrUpdate_; /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> - * * @return Whether the insertOrUpdate field is set. */ @java.lang.Override @@ -4164,25 +3728,18 @@ public boolean hasInsertOrUpdate() { return insertOrUpdate_ != null; } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> - * * @return The insertOrUpdate. */ @java.lang.Override public com.google.spanner.executor.v1.MutationAction.InsertArgs getInsertOrUpdate() { - return insertOrUpdate_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : insertOrUpdate_; + return insertOrUpdate_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : insertOrUpdate_; } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> @@ -4190,24 +3747,18 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs getInsertOrUpdat * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder - getInsertOrUpdateOrBuilder() { - return insertOrUpdate_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : insertOrUpdate_; + public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getInsertOrUpdateOrBuilder() { + return insertOrUpdate_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : insertOrUpdate_; } public static final int REPLACE_FIELD_NUMBER = 5; private com.google.spanner.executor.v1.MutationAction.InsertArgs replace_; /** - * - * * <pre> * Replace existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;</code> - * * @return Whether the replace field is set. */ @java.lang.Override @@ -4215,25 +3766,18 @@ public boolean hasReplace() { return replace_ != null; } /** - * - * * <pre> * Replace existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;</code> - * * @return The replace. */ @java.lang.Override public com.google.spanner.executor.v1.MutationAction.InsertArgs getReplace() { - return replace_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : replace_; + return replace_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : replace_; } /** - * - * * <pre> * Replace existing rows of "table". * </pre> @@ -4242,22 +3786,17 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs getReplace() { */ @java.lang.Override public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getReplaceOrBuilder() { - return replace_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : replace_; + return replace_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : replace_; } public static final int DELETE_KEYS_FIELD_NUMBER = 6; private com.google.spanner.executor.v1.KeySet deleteKeys_; /** - * - * * <pre> * Delete rows from "table". * </pre> * * <code>.google.spanner.executor.v1.KeySet delete_keys = 6;</code> - * * @return Whether the deleteKeys field is set. */ @java.lang.Override @@ -4265,25 +3804,18 @@ public boolean hasDeleteKeys() { return deleteKeys_ != null; } /** - * - * * <pre> * Delete rows from "table". * </pre> * * <code>.google.spanner.executor.v1.KeySet delete_keys = 6;</code> - * * @return The deleteKeys. */ @java.lang.Override public com.google.spanner.executor.v1.KeySet getDeleteKeys() { - return deleteKeys_ == null - ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() - : deleteKeys_; + return deleteKeys_ == null ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() : deleteKeys_; } /** - * - * * <pre> * Delete rows from "table". * </pre> @@ -4292,13 +3824,10 @@ public com.google.spanner.executor.v1.KeySet getDeleteKeys() { */ @java.lang.Override public com.google.spanner.executor.v1.KeySetOrBuilder getDeleteKeysOrBuilder() { - return deleteKeys_ == null - ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() - : deleteKeys_; + return deleteKeys_ == null ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() : deleteKeys_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4310,7 +3839,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); } @@ -4342,19 +3872,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); } if (insert_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInsert()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInsert()); } if (update_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdate()); } if (insertOrUpdate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInsertOrUpdate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInsertOrUpdate()); } if (replace_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReplace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getReplace()); } if (deleteKeys_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeleteKeys()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDeleteKeys()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4364,34 +3899,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.MutationAction.Mod)) { return super.equals(obj); } - com.google.spanner.executor.v1.MutationAction.Mod other = - (com.google.spanner.executor.v1.MutationAction.Mod) obj; + com.google.spanner.executor.v1.MutationAction.Mod other = (com.google.spanner.executor.v1.MutationAction.Mod) obj; - if (!getTable().equals(other.getTable())) return false; + if (!getTable() + .equals(other.getTable())) return false; if (hasInsert() != other.hasInsert()) return false; if (hasInsert()) { - if (!getInsert().equals(other.getInsert())) return false; + if (!getInsert() + .equals(other.getInsert())) return false; } if (hasUpdate() != other.hasUpdate()) return false; if (hasUpdate()) { - if (!getUpdate().equals(other.getUpdate())) return false; + if (!getUpdate() + .equals(other.getUpdate())) return false; } if (hasInsertOrUpdate() != other.hasInsertOrUpdate()) return false; if (hasInsertOrUpdate()) { - if (!getInsertOrUpdate().equals(other.getInsertOrUpdate())) return false; + if (!getInsertOrUpdate() + .equals(other.getInsertOrUpdate())) return false; } if (hasReplace() != other.hasReplace()) return false; if (hasReplace()) { - if (!getReplace().equals(other.getReplace())) return false; + if (!getReplace() + .equals(other.getReplace())) return false; } if (hasDeleteKeys() != other.hasDeleteKeys()) return false; if (hasDeleteKeys()) { - if (!getDeleteKeys().equals(other.getDeleteKeys())) return false; + if (!getDeleteKeys() + .equals(other.getDeleteKeys())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4432,93 +3972,89 @@ public int hashCode() { } public static com.google.spanner.executor.v1.MutationAction.Mod parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.Mod parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MutationAction.Mod parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.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.MutationAction.Mod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction.Mod parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.MutationAction.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.MutationAction.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.MutationAction.Mod parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction.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.MutationAction.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.MutationAction.Mod parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction.Mod parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.MutationAction.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.MutationAction.Mod prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4528,8 +4064,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * Mod represents the write action that will be perform to a table. Each mod * will specify exactly one action, from insert, update, insert_or_update, @@ -4538,33 +4072,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.spanner.executor.v1.MutationAction.Mod} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.MutationAction.Mod) com.google.spanner.executor.v1.MutationAction.ModOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_Mod_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_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_MutationAction_Mod_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_Mod_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.MutationAction.Mod.class, - com.google.spanner.executor.v1.MutationAction.Mod.Builder.class); + com.google.spanner.executor.v1.MutationAction.Mod.class, com.google.spanner.executor.v1.MutationAction.Mod.Builder.class); } // Construct using com.google.spanner.executor.v1.MutationAction.Mod.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4599,9 +4133,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_Mod_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_Mod_descriptor; } @java.lang.Override @@ -4620,11 +4154,8 @@ public com.google.spanner.executor.v1.MutationAction.Mod build() { @java.lang.Override public com.google.spanner.executor.v1.MutationAction.Mod buildPartial() { - com.google.spanner.executor.v1.MutationAction.Mod result = - new com.google.spanner.executor.v1.MutationAction.Mod(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.MutationAction.Mod result = new com.google.spanner.executor.v1.MutationAction.Mod(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -4635,21 +4166,29 @@ private void buildPartial0(com.google.spanner.executor.v1.MutationAction.Mod res result.table_ = table_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.insert_ = insertBuilder_ == null ? insert_ : insertBuilder_.build(); + result.insert_ = insertBuilder_ == null + ? insert_ + : insertBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); + result.update_ = updateBuilder_ == null + ? update_ + : updateBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.insertOrUpdate_ = - insertOrUpdateBuilder_ == null ? insertOrUpdate_ : insertOrUpdateBuilder_.build(); + result.insertOrUpdate_ = insertOrUpdateBuilder_ == null + ? insertOrUpdate_ + : insertOrUpdateBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.replace_ = replaceBuilder_ == null ? replace_ : replaceBuilder_.build(); + result.replace_ = replaceBuilder_ == null + ? replace_ + : replaceBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.deleteKeys_ = - deleteKeysBuilder_ == null ? deleteKeys_ : deleteKeysBuilder_.build(); + result.deleteKeys_ = deleteKeysBuilder_ == null + ? deleteKeys_ + : deleteKeysBuilder_.build(); } } @@ -4657,41 +4196,38 @@ private void buildPartial0(com.google.spanner.executor.v1.MutationAction.Mod res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.MutationAction.Mod) { - return mergeFrom((com.google.spanner.executor.v1.MutationAction.Mod) other); + return mergeFrom((com.google.spanner.executor.v1.MutationAction.Mod)other); } else { super.mergeFrom(other); return this; @@ -4699,8 +4235,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.MutationAction.Mod other) { - if (other == com.google.spanner.executor.v1.MutationAction.Mod.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.MutationAction.Mod.getDefaultInstance()) return this; if (!other.getTable().isEmpty()) { table_ = other.table_; bitField0_ |= 0x00000001; @@ -4747,50 +4282,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getInsertFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getInsertOrUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getReplaceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getDeleteKeysFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getInsertFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getInsertOrUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getReplaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getDeleteKeysFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4800,25 +4337,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object table_ = ""; /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -4827,21 +4361,20 @@ public java.lang.String getTable() { } } /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -4849,35 +4382,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @return This builder for chaining. */ public Builder clearTable() { @@ -4887,21 +4413,17 @@ public Builder clearTable() { return this; } /** - * - * * <pre> * The table to write. * </pre> * * <code>string table = 1;</code> - * * @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(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -4911,49 +4433,36 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { private com.google.spanner.executor.v1.MutationAction.InsertArgs insert_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> - insertBuilder_; + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> insertBuilder_; /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;</code> - * * @return Whether the insert field is set. */ public boolean hasInsert() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;</code> - * * @return The insert. */ public com.google.spanner.executor.v1.MutationAction.InsertArgs getInsert() { if (insertBuilder_ == null) { - return insert_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : insert_; + return insert_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : insert_; } else { return insertBuilder_.getMessage(); } } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -4975,8 +4484,6 @@ public Builder setInsert(com.google.spanner.executor.v1.MutationAction.InsertArg return this; } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -4996,8 +4503,6 @@ public Builder setInsert( return this; } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -5007,11 +4512,9 @@ public Builder setInsert( */ public Builder mergeInsert(com.google.spanner.executor.v1.MutationAction.InsertArgs value) { if (insertBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && insert_ != null - && insert_ - != com.google.spanner.executor.v1.MutationAction.InsertArgs - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + insert_ != null && + insert_ != com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance()) { getInsertBuilder().mergeFrom(value); } else { insert_ = value; @@ -5024,8 +4527,6 @@ public Builder mergeInsert(com.google.spanner.executor.v1.MutationAction.InsertA return this; } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -5044,8 +4545,6 @@ public Builder clearInsert() { return this; } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -5059,8 +4558,6 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder getInser return getInsertFieldBuilder().getBuilder(); } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -5068,19 +4565,15 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder getInser * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;</code> */ - public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder - getInsertOrBuilder() { + public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getInsertOrBuilder() { if (insertBuilder_ != null) { return insertBuilder_.getMessageOrBuilder(); } else { - return insert_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : insert_; + return insert_ == null ? + com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : insert_; } } /** - * - * * <pre> * Exactly one of the remaining elements may be present. * Insert new rows into "table". @@ -5089,17 +4582,14 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder getInser * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> getInsertFieldBuilder() { if (insertBuilder_ == null) { - insertBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder>( - getInsert(), getParentForChildren(), isClean()); + insertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder>( + getInsert(), + getParentForChildren(), + isClean()); insert_ = null; } return insertBuilder_; @@ -5107,47 +4597,34 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder getInser private com.google.spanner.executor.v1.MutationAction.UpdateArgs update_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.UpdateArgs, - com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder, - com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder> - updateBuilder_; + com.google.spanner.executor.v1.MutationAction.UpdateArgs, com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder, com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder> updateBuilder_; /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;</code> - * * @return Whether the update field is set. */ public boolean hasUpdate() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;</code> - * * @return The update. */ public com.google.spanner.executor.v1.MutationAction.UpdateArgs getUpdate() { if (updateBuilder_ == null) { - return update_ == null - ? com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance() - : update_; + return update_ == null ? com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> @@ -5168,8 +4645,6 @@ public Builder setUpdate(com.google.spanner.executor.v1.MutationAction.UpdateArg return this; } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> @@ -5188,8 +4663,6 @@ public Builder setUpdate( return this; } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> @@ -5198,11 +4671,9 @@ public Builder setUpdate( */ public Builder mergeUpdate(com.google.spanner.executor.v1.MutationAction.UpdateArgs value) { if (updateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && update_ != null - && update_ - != com.google.spanner.executor.v1.MutationAction.UpdateArgs - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + update_ != null && + update_ != com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; @@ -5215,8 +4686,6 @@ public Builder mergeUpdate(com.google.spanner.executor.v1.MutationAction.UpdateA return this; } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> @@ -5234,8 +4703,6 @@ public Builder clearUpdate() { return this; } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> @@ -5248,27 +4715,21 @@ public com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder getUpdat return getUpdateFieldBuilder().getBuilder(); } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;</code> */ - public com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder - getUpdateOrBuilder() { + public com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { - return update_ == null - ? com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance() - : update_; + return update_ == null ? + com.google.spanner.executor.v1.MutationAction.UpdateArgs.getDefaultInstance() : update_; } } /** - * - * * <pre> * Update columns stored in existing rows of "table". * </pre> @@ -5276,17 +4737,14 @@ public com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder getUpdat * <code>.google.spanner.executor.v1.MutationAction.UpdateArgs update = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.UpdateArgs, - com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder, - com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder> + com.google.spanner.executor.v1.MutationAction.UpdateArgs, com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder, com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { - updateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.UpdateArgs, - com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder, - com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder>( - getUpdate(), getParentForChildren(), isClean()); + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.MutationAction.UpdateArgs, com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder, com.google.spanner.executor.v1.MutationAction.UpdateArgsOrBuilder>( + getUpdate(), + getParentForChildren(), + isClean()); update_ = null; } return updateBuilder_; @@ -5294,55 +4752,41 @@ public com.google.spanner.executor.v1.MutationAction.UpdateArgs.Builder getUpdat private com.google.spanner.executor.v1.MutationAction.InsertArgs insertOrUpdate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> - insertOrUpdateBuilder_; + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> insertOrUpdateBuilder_; /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> - * * @return Whether the insertOrUpdate field is set. */ public boolean hasInsertOrUpdate() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> - * * @return The insertOrUpdate. */ public com.google.spanner.executor.v1.MutationAction.InsertArgs getInsertOrUpdate() { if (insertOrUpdateBuilder_ == null) { - return insertOrUpdate_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : insertOrUpdate_; + return insertOrUpdate_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : insertOrUpdate_; } else { return insertOrUpdateBuilder_.getMessage(); } } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> */ - public Builder setInsertOrUpdate( - com.google.spanner.executor.v1.MutationAction.InsertArgs value) { + public Builder setInsertOrUpdate(com.google.spanner.executor.v1.MutationAction.InsertArgs value) { if (insertOrUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5356,8 +4800,6 @@ public Builder setInsertOrUpdate( return this; } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> @@ -5376,22 +4818,17 @@ public Builder setInsertOrUpdate( return this; } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> */ - public Builder mergeInsertOrUpdate( - com.google.spanner.executor.v1.MutationAction.InsertArgs value) { + public Builder mergeInsertOrUpdate(com.google.spanner.executor.v1.MutationAction.InsertArgs value) { if (insertOrUpdateBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && insertOrUpdate_ != null - && insertOrUpdate_ - != com.google.spanner.executor.v1.MutationAction.InsertArgs - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + insertOrUpdate_ != null && + insertOrUpdate_ != com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance()) { getInsertOrUpdateBuilder().mergeFrom(value); } else { insertOrUpdate_ = value; @@ -5404,8 +4841,6 @@ public Builder mergeInsertOrUpdate( return this; } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> @@ -5423,42 +4858,33 @@ public Builder clearInsertOrUpdate() { return this; } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> */ - public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder - getInsertOrUpdateBuilder() { + public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder getInsertOrUpdateBuilder() { bitField0_ |= 0x00000008; onChanged(); return getInsertOrUpdateFieldBuilder().getBuilder(); } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> */ - public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder - getInsertOrUpdateOrBuilder() { + public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getInsertOrUpdateOrBuilder() { if (insertOrUpdateBuilder_ != null) { return insertOrUpdateBuilder_.getMessageOrBuilder(); } else { - return insertOrUpdate_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : insertOrUpdate_; + return insertOrUpdate_ == null ? + com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : insertOrUpdate_; } } /** - * - * * <pre> * Insert or update existing rows of "table". * </pre> @@ -5466,17 +4892,14 @@ public Builder clearInsertOrUpdate() { * <code>.google.spanner.executor.v1.MutationAction.InsertArgs insert_or_update = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> getInsertOrUpdateFieldBuilder() { if (insertOrUpdateBuilder_ == null) { - insertOrUpdateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder>( - getInsertOrUpdate(), getParentForChildren(), isClean()); + insertOrUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder>( + getInsertOrUpdate(), + getParentForChildren(), + isClean()); insertOrUpdate_ = null; } return insertOrUpdateBuilder_; @@ -5484,47 +4907,34 @@ public Builder clearInsertOrUpdate() { private com.google.spanner.executor.v1.MutationAction.InsertArgs replace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> - replaceBuilder_; + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> replaceBuilder_; /** - * - * * <pre> * Replace existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;</code> - * * @return Whether the replace field is set. */ public boolean hasReplace() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * Replace existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;</code> - * * @return The replace. */ public com.google.spanner.executor.v1.MutationAction.InsertArgs getReplace() { if (replaceBuilder_ == null) { - return replace_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : replace_; + return replace_ == null ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : replace_; } else { return replaceBuilder_.getMessage(); } } /** - * - * * <pre> * Replace existing rows of "table". * </pre> @@ -5545,8 +4955,6 @@ public Builder setReplace(com.google.spanner.executor.v1.MutationAction.InsertAr return this; } /** - * - * * <pre> * Replace existing rows of "table". * </pre> @@ -5565,8 +4973,6 @@ public Builder setReplace( return this; } /** - * - * * <pre> * Replace existing rows of "table". * </pre> @@ -5575,11 +4981,9 @@ public Builder setReplace( */ public Builder mergeReplace(com.google.spanner.executor.v1.MutationAction.InsertArgs value) { if (replaceBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && replace_ != null - && replace_ - != com.google.spanner.executor.v1.MutationAction.InsertArgs - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + replace_ != null && + replace_ != com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance()) { getReplaceBuilder().mergeFrom(value); } else { replace_ = value; @@ -5592,8 +4996,6 @@ public Builder mergeReplace(com.google.spanner.executor.v1.MutationAction.Insert return this; } /** - * - * * <pre> * Replace existing rows of "table". * </pre> @@ -5611,8 +5013,6 @@ public Builder clearReplace() { return this; } /** - * - * * <pre> * Replace existing rows of "table". * </pre> @@ -5625,27 +5025,21 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder getRepla return getReplaceFieldBuilder().getBuilder(); } /** - * - * * <pre> * Replace existing rows of "table". * </pre> * * <code>.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;</code> */ - public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder - getReplaceOrBuilder() { + public com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder getReplaceOrBuilder() { if (replaceBuilder_ != null) { return replaceBuilder_.getMessageOrBuilder(); } else { - return replace_ == null - ? com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() - : replace_; + return replace_ == null ? + com.google.spanner.executor.v1.MutationAction.InsertArgs.getDefaultInstance() : replace_; } } /** - * - * * <pre> * Replace existing rows of "table". * </pre> @@ -5653,17 +5047,14 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder getRepla * <code>.google.spanner.executor.v1.MutationAction.InsertArgs replace = 5;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder> getReplaceFieldBuilder() { if (replaceBuilder_ == null) { - replaceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.InsertArgs, - com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, - com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder>( - getReplace(), getParentForChildren(), isClean()); + replaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.MutationAction.InsertArgs, com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder, com.google.spanner.executor.v1.MutationAction.InsertArgsOrBuilder>( + getReplace(), + getParentForChildren(), + isClean()); replace_ = null; } return replaceBuilder_; @@ -5671,47 +5062,34 @@ public com.google.spanner.executor.v1.MutationAction.InsertArgs.Builder getRepla private com.google.spanner.executor.v1.KeySet deleteKeys_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.KeySet, - com.google.spanner.executor.v1.KeySet.Builder, - com.google.spanner.executor.v1.KeySetOrBuilder> - deleteKeysBuilder_; + com.google.spanner.executor.v1.KeySet, com.google.spanner.executor.v1.KeySet.Builder, com.google.spanner.executor.v1.KeySetOrBuilder> deleteKeysBuilder_; /** - * - * * <pre> * Delete rows from "table". * </pre> * * <code>.google.spanner.executor.v1.KeySet delete_keys = 6;</code> - * * @return Whether the deleteKeys field is set. */ public boolean hasDeleteKeys() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * * <pre> * Delete rows from "table". * </pre> * * <code>.google.spanner.executor.v1.KeySet delete_keys = 6;</code> - * * @return The deleteKeys. */ public com.google.spanner.executor.v1.KeySet getDeleteKeys() { if (deleteKeysBuilder_ == null) { - return deleteKeys_ == null - ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() - : deleteKeys_; + return deleteKeys_ == null ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() : deleteKeys_; } else { return deleteKeysBuilder_.getMessage(); } } /** - * - * * <pre> * Delete rows from "table". * </pre> @@ -5732,15 +5110,14 @@ public Builder setDeleteKeys(com.google.spanner.executor.v1.KeySet value) { return this; } /** - * - * * <pre> * Delete rows from "table". * </pre> * * <code>.google.spanner.executor.v1.KeySet delete_keys = 6;</code> */ - public Builder setDeleteKeys(com.google.spanner.executor.v1.KeySet.Builder builderForValue) { + public Builder setDeleteKeys( + com.google.spanner.executor.v1.KeySet.Builder builderForValue) { if (deleteKeysBuilder_ == null) { deleteKeys_ = builderForValue.build(); } else { @@ -5751,8 +5128,6 @@ public Builder setDeleteKeys(com.google.spanner.executor.v1.KeySet.Builder build return this; } /** - * - * * <pre> * Delete rows from "table". * </pre> @@ -5761,9 +5136,9 @@ public Builder setDeleteKeys(com.google.spanner.executor.v1.KeySet.Builder build */ public Builder mergeDeleteKeys(com.google.spanner.executor.v1.KeySet value) { if (deleteKeysBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && deleteKeys_ != null - && deleteKeys_ != com.google.spanner.executor.v1.KeySet.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + deleteKeys_ != null && + deleteKeys_ != com.google.spanner.executor.v1.KeySet.getDefaultInstance()) { getDeleteKeysBuilder().mergeFrom(value); } else { deleteKeys_ = value; @@ -5776,8 +5151,6 @@ public Builder mergeDeleteKeys(com.google.spanner.executor.v1.KeySet value) { return this; } /** - * - * * <pre> * Delete rows from "table". * </pre> @@ -5795,8 +5168,6 @@ public Builder clearDeleteKeys() { return this; } /** - * - * * <pre> * Delete rows from "table". * </pre> @@ -5809,8 +5180,6 @@ public com.google.spanner.executor.v1.KeySet.Builder getDeleteKeysBuilder() { return getDeleteKeysFieldBuilder().getBuilder(); } /** - * - * * <pre> * Delete rows from "table". * </pre> @@ -5821,14 +5190,11 @@ public com.google.spanner.executor.v1.KeySetOrBuilder getDeleteKeysOrBuilder() { if (deleteKeysBuilder_ != null) { return deleteKeysBuilder_.getMessageOrBuilder(); } else { - return deleteKeys_ == null - ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() - : deleteKeys_; + return deleteKeys_ == null ? + com.google.spanner.executor.v1.KeySet.getDefaultInstance() : deleteKeys_; } } /** - * - * * <pre> * Delete rows from "table". * </pre> @@ -5836,22 +5202,18 @@ public com.google.spanner.executor.v1.KeySetOrBuilder getDeleteKeysOrBuilder() { * <code>.google.spanner.executor.v1.KeySet delete_keys = 6;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.KeySet, - com.google.spanner.executor.v1.KeySet.Builder, - com.google.spanner.executor.v1.KeySetOrBuilder> + com.google.spanner.executor.v1.KeySet, com.google.spanner.executor.v1.KeySet.Builder, com.google.spanner.executor.v1.KeySetOrBuilder> getDeleteKeysFieldBuilder() { if (deleteKeysBuilder_ == null) { - deleteKeysBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.KeySet, - com.google.spanner.executor.v1.KeySet.Builder, - com.google.spanner.executor.v1.KeySetOrBuilder>( - getDeleteKeys(), getParentForChildren(), isClean()); + deleteKeysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.KeySet, com.google.spanner.executor.v1.KeySet.Builder, com.google.spanner.executor.v1.KeySetOrBuilder>( + getDeleteKeys(), + getParentForChildren(), + isClean()); deleteKeys_ = null; } return deleteKeysBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5864,12 +5226,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.MutationAction.Mod) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.MutationAction.Mod) private static final com.google.spanner.executor.v1.MutationAction.Mod DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.MutationAction.Mod(); } @@ -5878,28 +5240,27 @@ public static com.google.spanner.executor.v1.MutationAction.Mod getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<Mod> PARSER = - new com.google.protobuf.AbstractParser<Mod>() { - @java.lang.Override - public Mod parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<Mod> + PARSER = new com.google.protobuf.AbstractParser<Mod>() { + @java.lang.Override + public Mod parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<Mod> parser() { return PARSER; @@ -5914,15 +5275,13 @@ public com.google.protobuf.Parser<Mod> getParserForType() { public com.google.spanner.executor.v1.MutationAction.Mod getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MOD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.MutationAction.Mod> mod_; /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -5934,8 +5293,6 @@ public java.util.List<com.google.spanner.executor.v1.MutationAction.Mod> getModL return mod_; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -5943,13 +5300,11 @@ public java.util.List<com.google.spanner.executor.v1.MutationAction.Mod> getModL * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.MutationAction.ModOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.MutationAction.ModOrBuilder> getModOrBuilderList() { return mod_; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -5961,8 +5316,6 @@ public int getModCount() { return mod_.size(); } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -5974,8 +5327,6 @@ public com.google.spanner.executor.v1.MutationAction.Mod getMod(int index) { return mod_.get(index); } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -5983,12 +5334,12 @@ public com.google.spanner.executor.v1.MutationAction.Mod getMod(int index) { * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.MutationAction.ModOrBuilder getModOrBuilder(int index) { + public com.google.spanner.executor.v1.MutationAction.ModOrBuilder getModOrBuilder( + int index) { return mod_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6000,7 +5351,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < mod_.size(); i++) { output.writeMessage(1, mod_.get(i)); } @@ -6014,7 +5366,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < mod_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mod_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, mod_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6024,15 +5377,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.MutationAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.MutationAction other = - (com.google.spanner.executor.v1.MutationAction) obj; + com.google.spanner.executor.v1.MutationAction other = (com.google.spanner.executor.v1.MutationAction) obj; - if (!getModList().equals(other.getModList())) return false; + if (!getModList() + .equals(other.getModList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6053,136 +5406,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.MutationAction parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.MutationAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MutationAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction 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.MutationAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.MutationAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.MutationAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.MutationAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.MutationAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.MutationAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.MutationAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.MutationAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * A single mutation request. * </pre> * * Protobuf type {@code google.spanner.executor.v1.MutationAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.MutationAction) com.google.spanner.executor.v1.MutationActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.MutationAction.class, - com.google.spanner.executor.v1.MutationAction.Builder.class); + com.google.spanner.executor.v1.MutationAction.class, com.google.spanner.executor.v1.MutationAction.Builder.class); } // Construct using com.google.spanner.executor.v1.MutationAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6198,9 +5547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_MutationAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_MutationAction_descriptor; } @java.lang.Override @@ -6219,12 +5568,9 @@ public com.google.spanner.executor.v1.MutationAction build() { @java.lang.Override public com.google.spanner.executor.v1.MutationAction buildPartial() { - com.google.spanner.executor.v1.MutationAction result = - new com.google.spanner.executor.v1.MutationAction(this); + com.google.spanner.executor.v1.MutationAction result = new com.google.spanner.executor.v1.MutationAction(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -6249,39 +5595,38 @@ private void buildPartial0(com.google.spanner.executor.v1.MutationAction result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.MutationAction) { - return mergeFrom((com.google.spanner.executor.v1.MutationAction) other); + return mergeFrom((com.google.spanner.executor.v1.MutationAction)other); } else { super.mergeFrom(other); return this; @@ -6308,10 +5653,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.MutationAction other) { modBuilder_ = null; mod_ = other.mod_; bitField0_ = (bitField0_ & ~0x00000001); - modBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getModFieldBuilder() - : null; + modBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getModFieldBuilder() : null; } else { modBuilder_.addAllMessages(other.mod_); } @@ -6343,27 +5687,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.executor.v1.MutationAction.Mod m = - input.readMessage( - com.google.spanner.executor.v1.MutationAction.Mod.parser(), - extensionRegistry); - if (modBuilder_ == null) { - ensureModIsMutable(); - mod_.add(m); - } else { - modBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.executor.v1.MutationAction.Mod m = + input.readMessage( + com.google.spanner.executor.v1.MutationAction.Mod.parser(), + extensionRegistry); + if (modBuilder_ == null) { + ensureModIsMutable(); + mod_.add(m); + } else { + modBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6373,28 +5715,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.executor.v1.MutationAction.Mod> mod_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureModIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { mod_ = new java.util.ArrayList<com.google.spanner.executor.v1.MutationAction.Mod>(mod_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.Mod, - com.google.spanner.executor.v1.MutationAction.Mod.Builder, - com.google.spanner.executor.v1.MutationAction.ModOrBuilder> - modBuilder_; + com.google.spanner.executor.v1.MutationAction.Mod, com.google.spanner.executor.v1.MutationAction.Mod.Builder, com.google.spanner.executor.v1.MutationAction.ModOrBuilder> modBuilder_; /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6409,8 +5744,6 @@ public java.util.List<com.google.spanner.executor.v1.MutationAction.Mod> getModL } } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6425,8 +5758,6 @@ public int getModCount() { } } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6441,15 +5772,14 @@ public com.google.spanner.executor.v1.MutationAction.Mod getMod(int index) { } } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - public Builder setMod(int index, com.google.spanner.executor.v1.MutationAction.Mod value) { + public Builder setMod( + int index, com.google.spanner.executor.v1.MutationAction.Mod value) { if (modBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6463,8 +5793,6 @@ public Builder setMod(int index, com.google.spanner.executor.v1.MutationAction.M return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6483,8 +5811,6 @@ public Builder setMod( return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6505,15 +5831,14 @@ public Builder addMod(com.google.spanner.executor.v1.MutationAction.Mod value) { return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - public Builder addMod(int index, com.google.spanner.executor.v1.MutationAction.Mod value) { + public Builder addMod( + int index, com.google.spanner.executor.v1.MutationAction.Mod value) { if (modBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6527,8 +5852,6 @@ public Builder addMod(int index, com.google.spanner.executor.v1.MutationAction.M return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6547,8 +5870,6 @@ public Builder addMod( return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6567,8 +5888,6 @@ public Builder addMod( return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6579,7 +5898,8 @@ public Builder addAllMod( java.lang.Iterable<? extends com.google.spanner.executor.v1.MutationAction.Mod> values) { if (modBuilder_ == null) { ensureModIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mod_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mod_); onChanged(); } else { modBuilder_.addAllMessages(values); @@ -6587,8 +5907,6 @@ public Builder addAllMod( return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6606,8 +5924,6 @@ public Builder clearMod() { return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6625,44 +5941,39 @@ public Builder removeMod(int index) { return this; } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - public com.google.spanner.executor.v1.MutationAction.Mod.Builder getModBuilder(int index) { + public com.google.spanner.executor.v1.MutationAction.Mod.Builder getModBuilder( + int index) { return getModFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - public com.google.spanner.executor.v1.MutationAction.ModOrBuilder getModOrBuilder(int index) { + public com.google.spanner.executor.v1.MutationAction.ModOrBuilder getModOrBuilder( + int index) { if (modBuilder_ == null) { - return mod_.get(index); - } else { + return mod_.get(index); } else { return modBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.MutationAction.ModOrBuilder> - getModOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.MutationAction.ModOrBuilder> + getModOrBuilderList() { if (modBuilder_ != null) { return modBuilder_.getMessageOrBuilderList(); } else { @@ -6670,8 +5981,6 @@ public com.google.spanner.executor.v1.MutationAction.ModOrBuilder getModOrBuilde } } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -6679,56 +5988,49 @@ public com.google.spanner.executor.v1.MutationAction.ModOrBuilder getModOrBuilde * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ public com.google.spanner.executor.v1.MutationAction.Mod.Builder addModBuilder() { - return getModFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.MutationAction.Mod.getDefaultInstance()); + return getModFieldBuilder().addBuilder( + com.google.spanner.executor.v1.MutationAction.Mod.getDefaultInstance()); } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - public com.google.spanner.executor.v1.MutationAction.Mod.Builder addModBuilder(int index) { - return getModFieldBuilder() - .addBuilder( - index, com.google.spanner.executor.v1.MutationAction.Mod.getDefaultInstance()); + public com.google.spanner.executor.v1.MutationAction.Mod.Builder addModBuilder( + int index) { + return getModFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.MutationAction.Mod.getDefaultInstance()); } /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - public java.util.List<com.google.spanner.executor.v1.MutationAction.Mod.Builder> - getModBuilderList() { + public java.util.List<com.google.spanner.executor.v1.MutationAction.Mod.Builder> + getModBuilderList() { return getModFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.Mod, - com.google.spanner.executor.v1.MutationAction.Mod.Builder, - com.google.spanner.executor.v1.MutationAction.ModOrBuilder> + com.google.spanner.executor.v1.MutationAction.Mod, com.google.spanner.executor.v1.MutationAction.Mod.Builder, com.google.spanner.executor.v1.MutationAction.ModOrBuilder> getModFieldBuilder() { if (modBuilder_ == null) { - modBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction.Mod, - com.google.spanner.executor.v1.MutationAction.Mod.Builder, - com.google.spanner.executor.v1.MutationAction.ModOrBuilder>( - mod_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + modBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.MutationAction.Mod, com.google.spanner.executor.v1.MutationAction.Mod.Builder, com.google.spanner.executor.v1.MutationAction.ModOrBuilder>( + mod_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); mod_ = null; } return modBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6738,12 +6040,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.MutationAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.MutationAction) private static final com.google.spanner.executor.v1.MutationAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.MutationAction(); } @@ -6752,27 +6054,27 @@ public static com.google.spanner.executor.v1.MutationAction getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<MutationAction> PARSER = - new com.google.protobuf.AbstractParser<MutationAction>() { - @java.lang.Override - public MutationAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<MutationAction> + PARSER = new com.google.protobuf.AbstractParser<MutationAction>() { + @java.lang.Override + public MutationAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<MutationAction> parser() { return PARSER; @@ -6787,4 +6089,6 @@ public com.google.protobuf.Parser<MutationAction> getParserForType() { public com.google.spanner.executor.v1.MutationAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java similarity index 65% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java index b0ccf3f80f5..7b296e1e5d7 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/MutationActionOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 interface MutationActionOrBuilder - extends +public interface MutationActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.MutationAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - java.util.List<com.google.spanner.executor.v1.MutationAction.Mod> getModList(); + java.util.List<com.google.spanner.executor.v1.MutationAction.Mod> + getModList(); /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -44,8 +25,6 @@ public interface MutationActionOrBuilder */ com.google.spanner.executor.v1.MutationAction.Mod getMod(int index); /** - * - * * <pre> * Mods that contained in this mutation. * </pre> @@ -54,24 +33,21 @@ public interface MutationActionOrBuilder */ int getModCount(); /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.MutationAction.ModOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.MutationAction.ModOrBuilder> getModOrBuilderList(); /** - * - * * <pre> * Mods that contained in this mutation. * </pre> * * <code>repeated .google.spanner.executor.v1.MutationAction.Mod mod = 1;</code> */ - com.google.spanner.executor.v1.MutationAction.ModOrBuilder getModOrBuilder(int index); + com.google.spanner.executor.v1.MutationAction.ModOrBuilder getModOrBuilder( + int index); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java index e427e7bf92d..60e99ccf238 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponse.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * OperationResponse contains results returned by operation related actions. * </pre> * * Protobuf type {@code google.spanner.executor.v1.OperationResponse} */ -public final class OperationResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.OperationResponse) OperationResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationResponse.newBuilder() to construct. private OperationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private OperationResponse() { listedOperations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private OperationResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_OperationResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_OperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_OperationResponse_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_OperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.OperationResponse.class, - com.google.spanner.executor.v1.OperationResponse.Builder.class); + com.google.spanner.executor.v1.OperationResponse.class, com.google.spanner.executor.v1.OperationResponse.Builder.class); } public static final int LISTED_OPERATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.longrunning.Operation> listedOperations_; /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -81,8 +59,6 @@ public java.util.List<com.google.longrunning.Operation> getListedOperationsList( return listedOperations_; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -90,13 +66,11 @@ public java.util.List<com.google.longrunning.Operation> getListedOperationsList( * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> getListedOperationsOrBuilderList() { return listedOperations_; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -108,8 +82,6 @@ public int getListedOperationsCount() { return listedOperations_.size(); } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -121,8 +93,6 @@ public com.google.longrunning.Operation getListedOperations(int index) { return listedOperations_.get(index); } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -130,24 +100,21 @@ public com.google.longrunning.Operation getListedOperations(int index) { * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ @java.lang.Override - public com.google.longrunning.OperationOrBuilder getListedOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getListedOperationsOrBuilder( + int index) { return listedOperations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,14 +157,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int OPERATION_FIELD_NUMBER = 3; private com.google.longrunning.Operation operation_; /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> * * <code>.google.longrunning.Operation operation = 3;</code> - * * @return Whether the operation field is set. */ @java.lang.Override @@ -205,14 +169,11 @@ public boolean hasOperation() { return operation_ != null; } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> * * <code>.google.longrunning.Operation operation = 3;</code> - * * @return The operation. */ @java.lang.Override @@ -220,8 +181,6 @@ public com.google.longrunning.Operation getOperation() { return operation_ == null ? com.google.longrunning.Operation.getDefaultInstance() : operation_; } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> @@ -234,7 +193,6 @@ public com.google.longrunning.OperationOrBuilder getOperationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < listedOperations_.size(); i++) { output.writeMessage(1, listedOperations_.get(i)); } @@ -266,13 +225,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listedOperations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listedOperations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, listedOperations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (operation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,19 +243,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.OperationResponse)) { return super.equals(obj); } - com.google.spanner.executor.v1.OperationResponse other = - (com.google.spanner.executor.v1.OperationResponse) obj; + com.google.spanner.executor.v1.OperationResponse other = (com.google.spanner.executor.v1.OperationResponse) obj; - if (!getListedOperationsList().equals(other.getListedOperationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getListedOperationsList() + .equals(other.getListedOperationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { - if (!getOperation().equals(other.getOperation())) return false; + if (!getOperation() + .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -322,136 +285,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.OperationResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.OperationResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.OperationResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.OperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.OperationResponse 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.OperationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.OperationResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.OperationResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.OperationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.OperationResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.OperationResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.OperationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.OperationResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.OperationResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.OperationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.OperationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * OperationResponse contains results returned by operation related actions. * </pre> * * Protobuf type {@code google.spanner.executor.v1.OperationResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.OperationResponse) com.google.spanner.executor.v1.OperationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_OperationResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_OperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_OperationResponse_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_OperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.OperationResponse.class, - com.google.spanner.executor.v1.OperationResponse.Builder.class); + com.google.spanner.executor.v1.OperationResponse.class, com.google.spanner.executor.v1.OperationResponse.Builder.class); } // Construct using com.google.spanner.executor.v1.OperationResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +432,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_OperationResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_OperationResponse_descriptor; } @java.lang.Override @@ -494,18 +453,14 @@ public com.google.spanner.executor.v1.OperationResponse build() { @java.lang.Override public com.google.spanner.executor.v1.OperationResponse buildPartial() { - com.google.spanner.executor.v1.OperationResponse result = - new com.google.spanner.executor.v1.OperationResponse(this); + com.google.spanner.executor.v1.OperationResponse result = new com.google.spanner.executor.v1.OperationResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.OperationResponse result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.OperationResponse result) { if (listedOperationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listedOperations_ = java.util.Collections.unmodifiableList(listedOperations_); @@ -523,7 +478,9 @@ private void buildPartial0(com.google.spanner.executor.v1.OperationResponse resu result.nextPageToken_ = nextPageToken_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); + result.operation_ = operationBuilder_ == null + ? operation_ + : operationBuilder_.build(); } } @@ -531,39 +488,38 @@ private void buildPartial0(com.google.spanner.executor.v1.OperationResponse resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.OperationResponse) { - return mergeFrom((com.google.spanner.executor.v1.OperationResponse) other); + return mergeFrom((com.google.spanner.executor.v1.OperationResponse)other); } else { super.mergeFrom(other); return this; @@ -571,8 +527,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.OperationResponse other) { - if (other == com.google.spanner.executor.v1.OperationResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.OperationResponse.getDefaultInstance()) return this; if (listedOperationsBuilder_ == null) { if (!other.listedOperations_.isEmpty()) { if (listedOperations_.isEmpty()) { @@ -591,10 +546,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.OperationResponse other) listedOperationsBuilder_ = null; listedOperations_ = other.listedOperations_; bitField0_ = (bitField0_ & ~0x00000001); - listedOperationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListedOperationsFieldBuilder() - : null; + listedOperationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListedOperationsFieldBuilder() : null; } else { listedOperationsBuilder_.addAllMessages(other.listedOperations_); } @@ -634,37 +588,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.longrunning.Operation m = - input.readMessage(com.google.longrunning.Operation.parser(), extensionRegistry); - if (listedOperationsBuilder_ == null) { - ensureListedOperationsIsMutable(); - listedOperations_.add(m); - } else { - listedOperationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getOperationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.longrunning.Operation m = + input.readMessage( + com.google.longrunning.Operation.parser(), + extensionRegistry); + if (listedOperationsBuilder_ == null) { + ensureListedOperationsIsMutable(); + listedOperations_.add(m); + } else { + listedOperationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getOperationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -674,29 +628,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.longrunning.Operation> listedOperations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureListedOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listedOperations_ = - new java.util.ArrayList<com.google.longrunning.Operation>(listedOperations_); + listedOperations_ = new java.util.ArrayList<com.google.longrunning.Operation>(listedOperations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> - listedOperationsBuilder_; + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> listedOperationsBuilder_; /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -711,8 +657,6 @@ public java.util.List<com.google.longrunning.Operation> getListedOperationsList( } } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -727,8 +671,6 @@ public int getListedOperationsCount() { } } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -743,15 +685,14 @@ public com.google.longrunning.Operation getListedOperations(int index) { } } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - public Builder setListedOperations(int index, com.google.longrunning.Operation value) { + public Builder setListedOperations( + int index, com.google.longrunning.Operation value) { if (listedOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -765,8 +706,6 @@ public Builder setListedOperations(int index, com.google.longrunning.Operation v return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -785,8 +724,6 @@ public Builder setListedOperations( return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -807,15 +744,14 @@ public Builder addListedOperations(com.google.longrunning.Operation value) { return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - public Builder addListedOperations(int index, com.google.longrunning.Operation value) { + public Builder addListedOperations( + int index, com.google.longrunning.Operation value) { if (listedOperationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -829,15 +765,14 @@ public Builder addListedOperations(int index, com.google.longrunning.Operation v return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - public Builder addListedOperations(com.google.longrunning.Operation.Builder builderForValue) { + public Builder addListedOperations( + com.google.longrunning.Operation.Builder builderForValue) { if (listedOperationsBuilder_ == null) { ensureListedOperationsIsMutable(); listedOperations_.add(builderForValue.build()); @@ -848,8 +783,6 @@ public Builder addListedOperations(com.google.longrunning.Operation.Builder buil return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -868,8 +801,6 @@ public Builder addListedOperations( return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -880,7 +811,8 @@ public Builder addAllListedOperations( java.lang.Iterable<? extends com.google.longrunning.Operation> values) { if (listedOperationsBuilder_ == null) { ensureListedOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedOperations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listedOperations_); onChanged(); } else { listedOperationsBuilder_.addAllMessages(values); @@ -888,8 +820,6 @@ public Builder addAllListedOperations( return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -907,8 +837,6 @@ public Builder clearListedOperations() { return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -926,44 +854,39 @@ public Builder removeListedOperations(int index) { return this; } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - public com.google.longrunning.Operation.Builder getListedOperationsBuilder(int index) { + public com.google.longrunning.Operation.Builder getListedOperationsBuilder( + int index) { return getListedOperationsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - public com.google.longrunning.OperationOrBuilder getListedOperationsOrBuilder(int index) { + public com.google.longrunning.OperationOrBuilder getListedOperationsOrBuilder( + int index) { if (listedOperationsBuilder_ == null) { - return listedOperations_.get(index); - } else { + return listedOperations_.get(index); } else { return listedOperationsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - public java.util.List<? extends com.google.longrunning.OperationOrBuilder> - getListedOperationsOrBuilderList() { + public java.util.List<? extends com.google.longrunning.OperationOrBuilder> + getListedOperationsOrBuilderList() { if (listedOperationsBuilder_ != null) { return listedOperationsBuilder_.getMessageOrBuilderList(); } else { @@ -971,8 +894,6 @@ public com.google.longrunning.OperationOrBuilder getListedOperationsOrBuilder(in } } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -980,47 +901,38 @@ public com.google.longrunning.OperationOrBuilder getListedOperationsOrBuilder(in * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ public com.google.longrunning.Operation.Builder addListedOperationsBuilder() { - return getListedOperationsFieldBuilder() - .addBuilder(com.google.longrunning.Operation.getDefaultInstance()); + return getListedOperationsFieldBuilder().addBuilder( + com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - public com.google.longrunning.Operation.Builder addListedOperationsBuilder(int index) { - return getListedOperationsFieldBuilder() - .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance()); + public com.google.longrunning.Operation.Builder addListedOperationsBuilder( + int index) { + return getListedOperationsFieldBuilder().addBuilder( + index, com.google.longrunning.Operation.getDefaultInstance()); } /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - public java.util.List<com.google.longrunning.Operation.Builder> - getListedOperationsBuilderList() { + public java.util.List<com.google.longrunning.Operation.Builder> + getListedOperationsBuilderList() { return getListedOperationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> getListedOperationsFieldBuilder() { if (listedOperationsBuilder_ == null) { - listedOperationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder>( + listedOperationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( listedOperations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1032,21 +944,19 @@ public com.google.longrunning.Operation.Builder addListedOperationsBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1055,22 +965,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1078,37 +987,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1118,22 +1020,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1143,47 +1041,34 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.longrunning.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> - operationBuilder_; + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> operationBuilder_; /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> * * <code>.google.longrunning.Operation operation = 3;</code> - * * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> * * <code>.google.longrunning.Operation operation = 3;</code> - * * @return The operation. */ public com.google.longrunning.Operation getOperation() { if (operationBuilder_ == null) { - return operation_ == null - ? com.google.longrunning.Operation.getDefaultInstance() - : operation_; + return operation_ == null ? com.google.longrunning.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> @@ -1204,15 +1089,14 @@ public Builder setOperation(com.google.longrunning.Operation value) { return this; } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> * * <code>.google.longrunning.Operation operation = 3;</code> */ - public Builder setOperation(com.google.longrunning.Operation.Builder builderForValue) { + public Builder setOperation( + com.google.longrunning.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { @@ -1223,8 +1107,6 @@ public Builder setOperation(com.google.longrunning.Operation.Builder builderForV return this; } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> @@ -1233,9 +1115,9 @@ public Builder setOperation(com.google.longrunning.Operation.Builder builderForV */ public Builder mergeOperation(com.google.longrunning.Operation value) { if (operationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && operation_ != null - && operation_ != com.google.longrunning.Operation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + operation_ != null && + operation_ != com.google.longrunning.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; @@ -1248,8 +1130,6 @@ public Builder mergeOperation(com.google.longrunning.Operation value) { return this; } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> @@ -1267,8 +1147,6 @@ public Builder clearOperation() { return this; } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> @@ -1281,8 +1159,6 @@ public com.google.longrunning.Operation.Builder getOperationBuilder() { return getOperationFieldBuilder().getBuilder(); } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> @@ -1293,14 +1169,11 @@ public com.google.longrunning.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { - return operation_ == null - ? com.google.longrunning.Operation.getDefaultInstance() - : operation_; + return operation_ == null ? + com.google.longrunning.Operation.getDefaultInstance() : operation_; } } /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> @@ -1308,24 +1181,21 @@ public com.google.longrunning.OperationOrBuilder getOperationOrBuilder() { * <code>.google.longrunning.Operation operation = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder> + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { - operationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.longrunning.Operation, - com.google.longrunning.Operation.Builder, - com.google.longrunning.OperationOrBuilder>( - getOperation(), getParentForChildren(), isClean()); + operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>( + getOperation(), + getParentForChildren(), + isClean()); operation_ = null; } return operationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1335,12 +1205,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.OperationResponse) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.OperationResponse) private static final com.google.spanner.executor.v1.OperationResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.OperationResponse(); } @@ -1349,27 +1219,27 @@ public static com.google.spanner.executor.v1.OperationResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<OperationResponse> PARSER = - new com.google.protobuf.AbstractParser<OperationResponse>() { - @java.lang.Override - public OperationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<OperationResponse> + PARSER = new com.google.protobuf.AbstractParser<OperationResponse>() { + @java.lang.Override + public OperationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<OperationResponse> parser() { return PARSER; @@ -1384,4 +1254,6 @@ public com.google.protobuf.Parser<OperationResponse> getParserForType() { public com.google.spanner.executor.v1.OperationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java index 2b36023bf5f..ef2764cbae0 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/OperationResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 interface OperationResponseOrBuilder - extends +public interface OperationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.OperationResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - java.util.List<com.google.longrunning.Operation> getListedOperationsList(); + java.util.List<com.google.longrunning.Operation> + getListedOperationsList(); /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -44,8 +25,6 @@ public interface OperationResponseOrBuilder */ com.google.longrunning.Operation getListedOperations(int index); /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> @@ -54,81 +33,65 @@ public interface OperationResponseOrBuilder */ int getListedOperationsCount(); /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - java.util.List<? extends com.google.longrunning.OperationOrBuilder> + java.util.List<? extends com.google.longrunning.OperationOrBuilder> getListedOperationsOrBuilderList(); /** - * - * * <pre> * List of operations returned by ListOperationsAction. * </pre> * * <code>repeated .google.longrunning.Operation listed_operations = 1;</code> */ - com.google.longrunning.OperationOrBuilder getListedOperationsOrBuilder(int index); + com.google.longrunning.OperationOrBuilder getListedOperationsOrBuilder( + int index); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * "next_page_token" can be sent in a subsequent list action * to fetch more of the matching data. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> * * <code>.google.longrunning.Operation operation = 3;</code> - * * @return Whether the operation field is set. */ boolean hasOperation(); /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> * * <code>.google.longrunning.Operation operation = 3;</code> - * * @return The operation. */ com.google.longrunning.Operation getOperation(); /** - * - * * <pre> * Operation returned by GetOperationAction. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java similarity index 60% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java index ee24bb9a499..4c508d7948e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateAction.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * PartitionedUpdateAction defines an action to execute a partitioned DML * which runs different partitions in parallel. @@ -28,134 +11,111 @@ * * Protobuf type {@code google.spanner.executor.v1.PartitionedUpdateAction} */ -public final class PartitionedUpdateAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PartitionedUpdateAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.PartitionedUpdateAction) PartitionedUpdateActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PartitionedUpdateAction.newBuilder() to construct. private PartitionedUpdateAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private PartitionedUpdateAction() {} + private PartitionedUpdateAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionedUpdateAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.PartitionedUpdateAction.class, - com.google.spanner.executor.v1.PartitionedUpdateAction.Builder.class); + com.google.spanner.executor.v1.PartitionedUpdateAction.class, com.google.spanner.executor.v1.PartitionedUpdateAction.Builder.class); } - public interface ExecutePartitionedUpdateOptionsOrBuilder - extends + public interface ExecutePartitionedUpdateOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return Whether the rpcPriority field is set. */ boolean hasRpcPriority(); /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return The enum numeric value on the wire for rpcPriority. */ int getRpcPriorityValue(); /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return The rpcPriority. */ com.google.spanner.v1.RequestOptions.Priority getRpcPriority(); /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return Whether the tag field is set. */ boolean hasTag(); /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return The tag. */ java.lang.String getTag(); /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return The bytes for tag. */ - com.google.protobuf.ByteString getTagBytes(); + com.google.protobuf.ByteString + getTagBytes(); } /** - * Protobuf type {@code - * google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions} + * Protobuf type {@code google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions} */ - public static final class ExecutePartitionedUpdateOptions - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ExecutePartitionedUpdateOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions) ExecutePartitionedUpdateOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExecutePartitionedUpdateOptions.newBuilder() to construct. - private ExecutePartitionedUpdateOptions( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private ExecutePartitionedUpdateOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ExecutePartitionedUpdateOptions() { rpcPriority_ = 0; tag_ = ""; @@ -163,91 +123,71 @@ private ExecutePartitionedUpdateOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExecutePartitionedUpdateOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .class, - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .Builder.class); + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.class, com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.Builder.class); } private int bitField0_; public static final int RPC_PRIORITY_FIELD_NUMBER = 1; private int rpcPriority_ = 0; /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return Whether the rpcPriority field is set. */ - @java.lang.Override - public boolean hasRpcPriority() { + @java.lang.Override public boolean hasRpcPriority() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return The enum numeric value on the wire for rpcPriority. */ - @java.lang.Override - public int getRpcPriorityValue() { + @java.lang.Override public int getRpcPriorityValue() { return rpcPriority_; } /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return The rpcPriority. */ - @java.lang.Override - public com.google.spanner.v1.RequestOptions.Priority getRpcPriority() { - com.google.spanner.v1.RequestOptions.Priority result = - com.google.spanner.v1.RequestOptions.Priority.forNumber(rpcPriority_); + @java.lang.Override public com.google.spanner.v1.RequestOptions.Priority getRpcPriority() { + com.google.spanner.v1.RequestOptions.Priority result = com.google.spanner.v1.RequestOptions.Priority.forNumber(rpcPriority_); return result == null ? com.google.spanner.v1.RequestOptions.Priority.UNRECOGNIZED : result; } public static final int TAG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object tag_ = ""; /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return Whether the tag field is set. */ @java.lang.Override @@ -255,14 +195,11 @@ public boolean hasTag() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return The tag. */ @java.lang.Override @@ -271,29 +208,29 @@ public java.lang.String getTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } } /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return The bytes for tag. */ @java.lang.Override - public com.google.protobuf.ByteString getTagBytes() { + public com.google.protobuf.ByteString + getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tag_ = b; return b; } else { @@ -302,7 +239,6 @@ public com.google.protobuf.ByteString getTagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, rpcPriority_); } @@ -331,7 +268,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, rpcPriority_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, rpcPriority_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); @@ -344,16 +282,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions)) { + if (!(obj instanceof com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions)) { return super.equals(obj); } - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions other = - (com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions) - obj; + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions other = (com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions) obj; if (hasRpcPriority() != other.hasRpcPriority()) return false; if (hasRpcPriority()) { @@ -361,7 +295,8 @@ public boolean equals(final java.lang.Object obj) { } if (hasTag() != other.hasTag()) return false; if (hasTag()) { - if (!getTag().equals(other.getTag())) return false; + if (!getTag() + .equals(other.getTag())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -387,114 +322,90 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions 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.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions 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.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions 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.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - 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.PartitionedUpdateAction.ExecutePartitionedUpdateOptions 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.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - 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.PartitionedUpdateAction.ExecutePartitionedUpdateOptions 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.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - 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.PartitionedUpdateAction.ExecutePartitionedUpdateOptions 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.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - parseFrom( - com.google.protobuf.CodedInputStream 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.PartitionedUpdateAction.ExecutePartitionedUpdateOptions 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -504,40 +415,35 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code - * google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions} + * Protobuf type {@code google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions) - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor; + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions.class, - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions.Builder.class); + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.class, com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.Builder.class); } - // Construct using - // com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.newBuilder() - private Builder() {} + // Construct using com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,23 +454,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - getDefaultInstanceForType() { - return com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions.getDefaultInstance(); + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions getDefaultInstanceForType() { + return com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.getDefaultInstance(); } @java.lang.Override - public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - build() { - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - result = buildPartial(); + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions build() { + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -572,22 +474,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - buildPartial() { - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - result = - new com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions buildPartial() { + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions result = new com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - result) { + private void buildPartial0(com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -605,59 +499,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions) { - return mergeFrom( - (com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions) - other); + if (other instanceof com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions) { + return mergeFrom((com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - other) { - if (other - == com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions other) { + if (other == com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.getDefaultInstance()) return this; if (other.hasRpcPriority()) { setRpcPriority(other.getRpcPriority()); } @@ -692,25 +573,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - rpcPriority_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - tag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + rpcPriority_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + tag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -720,49 +598,37 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int rpcPriority_ = 0; /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return Whether the rpcPriority field is set. */ - @java.lang.Override - public boolean hasRpcPriority() { + @java.lang.Override public boolean hasRpcPriority() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return The enum numeric value on the wire for rpcPriority. */ - @java.lang.Override - public int getRpcPriorityValue() { + @java.lang.Override public int getRpcPriorityValue() { return rpcPriority_; } /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @param value The enum numeric value on the wire for rpcPriority to set. * @return This builder for chaining. */ @@ -773,31 +639,24 @@ public Builder setRpcPriorityValue(int value) { return this; } /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return The rpcPriority. */ @java.lang.Override public com.google.spanner.v1.RequestOptions.Priority getRpcPriority() { - com.google.spanner.v1.RequestOptions.Priority result = - com.google.spanner.v1.RequestOptions.Priority.forNumber(rpcPriority_); + com.google.spanner.v1.RequestOptions.Priority result = com.google.spanner.v1.RequestOptions.Priority.forNumber(rpcPriority_); return result == null ? com.google.spanner.v1.RequestOptions.Priority.UNRECOGNIZED : result; } /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @param value The rpcPriority to set. * @return This builder for chaining. */ @@ -811,14 +670,11 @@ public Builder setRpcPriority(com.google.spanner.v1.RequestOptions.Priority valu return this; } /** - * - * * <pre> * RPC Priority * </pre> * * <code>optional .google.spanner.v1.RequestOptions.Priority rpc_priority = 1;</code> - * * @return This builder for chaining. */ public Builder clearRpcPriority() { @@ -830,34 +686,29 @@ public Builder clearRpcPriority() { private java.lang.Object tag_ = ""; /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return Whether the tag field is set. */ public boolean hasTag() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; @@ -866,21 +717,20 @@ public java.lang.String getTag() { } } /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return The bytes for tag. */ - public com.google.protobuf.ByteString getTagBytes() { + public com.google.protobuf.ByteString + getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tag_ = b; return b; } else { @@ -888,35 +738,28 @@ public com.google.protobuf.ByteString getTagBytes() { } } /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @param value The tag to set. * @return This builder for chaining. */ - public Builder setTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } tag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @return This builder for chaining. */ public Builder clearTag() { @@ -926,28 +769,23 @@ public Builder clearTag() { return this; } /** - * - * * <pre> * Transaction tag * </pre> * * <code>optional string tag = 2;</code> - * * @param value The bytes for tag to set. * @return This builder for chaining. */ - public Builder setTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -960,48 +798,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions) - private static final com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - DEFAULT_INSTANCE; - + private static final com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions(); + DEFAULT_INSTANCE = new com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions(); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions - getDefaultInstance() { + public static com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ExecutePartitionedUpdateOptions> PARSER = - new com.google.protobuf.AbstractParser<ExecutePartitionedUpdateOptions>() { - @java.lang.Override - public ExecutePartitionedUpdateOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ExecutePartitionedUpdateOptions> + PARSER = new com.google.protobuf.AbstractParser<ExecutePartitionedUpdateOptions>() { + @java.lang.Override + public ExecutePartitionedUpdateOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ExecutePartitionedUpdateOptions> parser() { return PARSER; @@ -1013,27 +844,21 @@ public com.google.protobuf.Parser<ExecutePartitionedUpdateOptions> getParserForT } @java.lang.Override - public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int OPTIONS_FIELD_NUMBER = 1; - private com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - options_; + private com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options_; /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> - * + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> * @return Whether the options field is set. */ @java.lang.Override @@ -1041,58 +866,37 @@ public boolean hasOptions() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> - * + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> * @return The options. */ @java.lang.Override - public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - getOptions() { - return options_ == null - ? com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .getDefaultInstance() - : options_; + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions getOptions() { + return options_ == null ? com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.getDefaultInstance() : options_; } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptionsOrBuilder - getOptionsOrBuilder() { - return options_ == null - ? com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .getDefaultInstance() - : options_; + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptionsOrBuilder getOptionsOrBuilder() { + return options_ == null ? com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.getDefaultInstance() : options_; } public static final int UPDATE_FIELD_NUMBER = 2; private com.google.spanner.executor.v1.QueryAction update_; /** - * - * * <pre> * Partitioned dml query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 2;</code> - * * @return Whether the update field is set. */ @java.lang.Override @@ -1100,25 +904,18 @@ public boolean hasUpdate() { return update_ != null; } /** - * - * * <pre> * Partitioned dml query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 2;</code> - * * @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_; + return update_ == null ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : update_; } /** - * - * * <pre> * Partitioned dml query. * </pre> @@ -1127,13 +924,10 @@ public com.google.spanner.executor.v1.QueryAction getUpdate() { */ @java.lang.Override public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder() { - return update_ == null - ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() - : update_; + return update_ == null ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : update_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1145,7 +939,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOptions()); } @@ -1162,10 +957,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOptions()); } if (update_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1175,21 +972,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.PartitionedUpdateAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.PartitionedUpdateAction other = - (com.google.spanner.executor.v1.PartitionedUpdateAction) obj; + com.google.spanner.executor.v1.PartitionedUpdateAction other = (com.google.spanner.executor.v1.PartitionedUpdateAction) obj; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { - if (!getOptions().equals(other.getOptions())) return false; + if (!getOptions() + .equals(other.getOptions())) return false; } if (hasUpdate() != other.hasUpdate()) return false; if (hasUpdate()) { - if (!getUpdate().equals(other.getUpdate())) return false; + if (!getUpdate() + .equals(other.getUpdate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1216,104 +1014,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.PartitionedUpdateAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PartitionedUpdateAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction 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.PartitionedUpdateAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.PartitionedUpdateAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.PartitionedUpdateAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.PartitionedUpdateAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.PartitionedUpdateAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.PartitionedUpdateAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.PartitionedUpdateAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.PartitionedUpdateAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * PartitionedUpdateAction defines an action to execute a partitioned DML * which runs different partitions in parallel. @@ -1321,23 +1113,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.PartitionedUpdateAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.PartitionedUpdateAction) com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.PartitionedUpdateAction.class, - com.google.spanner.executor.v1.PartitionedUpdateAction.Builder.class); + com.google.spanner.executor.v1.PartitionedUpdateAction.class, com.google.spanner.executor.v1.PartitionedUpdateAction.Builder.class); } // Construct using com.google.spanner.executor.v1.PartitionedUpdateAction.newBuilder() @@ -1345,18 +1135,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); getUpdateFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1375,9 +1165,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor; } @java.lang.Override @@ -1396,11 +1186,8 @@ public com.google.spanner.executor.v1.PartitionedUpdateAction build() { @java.lang.Override public com.google.spanner.executor.v1.PartitionedUpdateAction buildPartial() { - com.google.spanner.executor.v1.PartitionedUpdateAction result = - new com.google.spanner.executor.v1.PartitionedUpdateAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.PartitionedUpdateAction result = new com.google.spanner.executor.v1.PartitionedUpdateAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1409,11 +1196,15 @@ private void buildPartial0(com.google.spanner.executor.v1.PartitionedUpdateActio int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); + result.options_ = optionsBuilder_ == null + ? options_ + : optionsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); + result.update_ = updateBuilder_ == null + ? update_ + : updateBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -1422,39 +1213,38 @@ private void buildPartial0(com.google.spanner.executor.v1.PartitionedUpdateActio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.PartitionedUpdateAction) { - return mergeFrom((com.google.spanner.executor.v1.PartitionedUpdateAction) other); + return mergeFrom((com.google.spanner.executor.v1.PartitionedUpdateAction)other); } else { super.mergeFrom(other); return this; @@ -1462,8 +1252,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.PartitionedUpdateAction other) { - if (other == com.google.spanner.executor.v1.PartitionedUpdateAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.PartitionedUpdateAction.getDefaultInstance()) return this; if (other.hasOptions()) { mergeOptions(other.getOptions()); } @@ -1496,25 +1285,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1524,72 +1314,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - options_; + private com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions, - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .Builder, - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptionsOrBuilder> - optionsBuilder_; + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions, com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.Builder, com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptionsOrBuilder> optionsBuilder_; /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> - * + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> - * + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> * @return The options. */ - public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - getOptions() { + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions getOptions() { if (optionsBuilder_ == null) { - return options_ == null - ? com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .getDefaultInstance() - : options_; + return options_ == null ? com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ - public Builder setOptions( - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - value) { + public Builder setOptions(com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1603,20 +1366,14 @@ public Builder setOptions( return this; } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ public Builder setOptions( - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .Builder - builderForValue) { + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); } else { @@ -1627,25 +1384,17 @@ public Builder setOptions( return this; } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ - public Builder mergeOptions( - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - value) { + public Builder mergeOptions(com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions value) { if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && options_ != null - && options_ - != com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + options_ != null && + options_ != com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.getDefaultInstance()) { getOptionsBuilder().mergeFrom(value); } else { options_ = value; @@ -1658,15 +1407,11 @@ public Builder mergeOptions( return this; } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ public Builder clearOptions() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1679,74 +1424,48 @@ public Builder clearOptions() { return this; } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ - public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .Builder - getOptionsBuilder() { + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ - public com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptionsOrBuilder - getOptionsOrBuilder() { + public com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { - return options_ == null - ? com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .getDefaultInstance() - : options_; + return options_ == null ? + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.getDefaultInstance() : options_; } } /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions, - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - .Builder, - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptionsOrBuilder> + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions, com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.Builder, com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { - optionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions, - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptions.Builder, - com.google.spanner.executor.v1.PartitionedUpdateAction - .ExecutePartitionedUpdateOptionsOrBuilder>( - getOptions(), getParentForChildren(), isClean()); + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions, com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions.Builder, com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); options_ = null; } return optionsBuilder_; @@ -1754,47 +1473,34 @@ public Builder clearOptions() { private com.google.spanner.executor.v1.QueryAction update_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> - updateBuilder_; + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder> updateBuilder_; /** - * - * * <pre> * Partitioned dml query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 2;</code> - * * @return Whether the update field is set. */ public boolean hasUpdate() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Partitioned dml query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 2;</code> - * * @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_; + return update_ == null ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** - * - * * <pre> * Partitioned dml query. * </pre> @@ -1815,15 +1521,14 @@ public Builder setUpdate(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * Partitioned dml query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 2;</code> */ - public Builder setUpdate(com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { + public Builder setUpdate( + com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); } else { @@ -1834,8 +1539,6 @@ public Builder setUpdate(com.google.spanner.executor.v1.QueryAction.Builder buil return this; } /** - * - * * <pre> * Partitioned dml query. * </pre> @@ -1844,9 +1547,9 @@ public Builder setUpdate(com.google.spanner.executor.v1.QueryAction.Builder buil */ public Builder mergeUpdate(com.google.spanner.executor.v1.QueryAction value) { if (updateBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && update_ != null - && update_ != com.google.spanner.executor.v1.QueryAction.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + update_ != null && + update_ != com.google.spanner.executor.v1.QueryAction.getDefaultInstance()) { getUpdateBuilder().mergeFrom(value); } else { update_ = value; @@ -1859,8 +1562,6 @@ public Builder mergeUpdate(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * Partitioned dml query. * </pre> @@ -1878,8 +1579,6 @@ public Builder clearUpdate() { return this; } /** - * - * * <pre> * Partitioned dml query. * </pre> @@ -1892,8 +1591,6 @@ public com.google.spanner.executor.v1.QueryAction.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /** - * - * * <pre> * Partitioned dml query. * </pre> @@ -1904,14 +1601,11 @@ 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_; + return update_ == null ? + com.google.spanner.executor.v1.QueryAction.getDefaultInstance() : update_; } } /** - * - * * <pre> * Partitioned dml query. * </pre> @@ -1919,24 +1613,21 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder() * <code>.google.spanner.executor.v1.QueryAction update = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1946,12 +1637,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.PartitionedUpdateAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.PartitionedUpdateAction) private static final com.google.spanner.executor.v1.PartitionedUpdateAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.PartitionedUpdateAction(); } @@ -1960,27 +1651,27 @@ public static com.google.spanner.executor.v1.PartitionedUpdateAction getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<PartitionedUpdateAction> PARSER = - new com.google.protobuf.AbstractParser<PartitionedUpdateAction>() { - @java.lang.Override - public PartitionedUpdateAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<PartitionedUpdateAction> + PARSER = new com.google.protobuf.AbstractParser<PartitionedUpdateAction>() { + @java.lang.Override + public PartitionedUpdateAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<PartitionedUpdateAction> parser() { return PARSER; @@ -1995,4 +1686,6 @@ public com.google.protobuf.Parser<PartitionedUpdateAction> getParserForType() { public com.google.spanner.executor.v1.PartitionedUpdateAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java similarity index 52% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java index c0cad580e62..138b6a37516 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/PartitionedUpdateActionOrBuilder.java @@ -1,98 +1,58 @@ -/* - * 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 interface PartitionedUpdateActionOrBuilder - extends +public interface PartitionedUpdateActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.PartitionedUpdateAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> - * + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> * @return Whether the options field is set. */ boolean hasOptions(); /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> - * + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> * @return The options. */ - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - getOptions(); + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions getOptions(); /** - * - * * <pre> * Options for partitioned update. * </pre> * - * <code> - * optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1; - * </code> + * <code>optional .google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions options = 1;</code> */ - com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptionsOrBuilder - getOptionsOrBuilder(); + com.google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptionsOrBuilder getOptionsOrBuilder(); /** - * - * * <pre> * Partitioned dml query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 2;</code> - * * @return Whether the update field is set. */ boolean hasUpdate(); /** - * - * * <pre> * Partitioned dml query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction update = 2;</code> - * * @return The update. */ com.google.spanner.executor.v1.QueryAction getUpdate(); /** - * - * * <pre> * Partitioned dml query. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java index f39dec65282..64b37d95218 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * A SQL query request. * </pre> * * Protobuf type {@code google.spanner.executor.v1.QueryAction} */ -public final class QueryAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.QueryAction) QueryActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryAction.newBuilder() to construct. private QueryAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private QueryAction() { sql_ = ""; params_ = java.util.Collections.emptyList(); @@ -44,82 +26,67 @@ private QueryAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.QueryAction.class, - com.google.spanner.executor.v1.QueryAction.Builder.class); + com.google.spanner.executor.v1.QueryAction.class, com.google.spanner.executor.v1.QueryAction.Builder.class); } - public interface ParameterOrBuilder - extends + public interface ParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.QueryAction.Parameter) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Type of the parameter. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return Whether the type field is set. */ boolean hasType(); /** - * - * * <pre> * Type of the parameter. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return The type. */ com.google.spanner.v1.Type getType(); /** - * - * * <pre> * Type of the parameter. * </pre> @@ -129,32 +96,24 @@ public interface ParameterOrBuilder com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder(); /** - * - * * <pre> * Value of the parameter. * </pre> * * <code>.google.spanner.executor.v1.Value value = 3;</code> - * * @return Whether the value field is set. */ boolean hasValue(); /** - * - * * <pre> * Value of the parameter. * </pre> * * <code>.google.spanner.executor.v1.Value value = 3;</code> - * * @return The value. */ com.google.spanner.executor.v1.Value getValue(); /** - * - * * <pre> * Value of the parameter. * </pre> @@ -164,62 +123,54 @@ public interface ParameterOrBuilder com.google.spanner.executor.v1.ValueOrBuilder getValueOrBuilder(); } /** - * - * * <pre> * Parameter that bind to placeholders in the SQL string * </pre> * * Protobuf type {@code google.spanner.executor.v1.QueryAction.Parameter} */ - public static final class Parameter extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Parameter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.QueryAction.Parameter) ParameterOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Parameter.newBuilder() to construct. private Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private Parameter() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Parameter(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_Parameter_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.QueryAction.Parameter.class, - com.google.spanner.executor.v1.QueryAction.Parameter.Builder.class); + com.google.spanner.executor.v1.QueryAction.Parameter.class, com.google.spanner.executor.v1.QueryAction.Parameter.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @return The name. */ @java.lang.Override @@ -228,29 +179,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -261,14 +212,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private com.google.spanner.v1.Type type_; /** - * - * * <pre> * Type of the parameter. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return Whether the type field is set. */ @java.lang.Override @@ -276,14 +224,11 @@ public boolean hasType() { return type_ != null; } /** - * - * * <pre> * Type of the parameter. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return The type. */ @java.lang.Override @@ -291,8 +236,6 @@ public com.google.spanner.v1.Type getType() { return type_ == null ? com.google.spanner.v1.Type.getDefaultInstance() : type_; } /** - * - * * <pre> * Type of the parameter. * </pre> @@ -307,14 +250,11 @@ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() { public static final int VALUE_FIELD_NUMBER = 3; private com.google.spanner.executor.v1.Value value_; /** - * - * * <pre> * Value of the parameter. * </pre> * * <code>.google.spanner.executor.v1.Value value = 3;</code> - * * @return Whether the value field is set. */ @java.lang.Override @@ -322,14 +262,11 @@ public boolean hasValue() { return value_ != null; } /** - * - * * <pre> * Value of the parameter. * </pre> * * <code>.google.spanner.executor.v1.Value value = 3;</code> - * * @return The value. */ @java.lang.Override @@ -337,8 +274,6 @@ public com.google.spanner.executor.v1.Value getValue() { return value_ == null ? com.google.spanner.executor.v1.Value.getDefaultInstance() : value_; } /** - * - * * <pre> * Value of the parameter. * </pre> @@ -351,7 +286,6 @@ public com.google.spanner.executor.v1.ValueOrBuilder getValueOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,7 +297,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -386,10 +321,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValue()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -399,22 +336,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.QueryAction.Parameter)) { return super.equals(obj); } - com.google.spanner.executor.v1.QueryAction.Parameter other = - (com.google.spanner.executor.v1.QueryAction.Parameter) obj; + com.google.spanner.executor.v1.QueryAction.Parameter other = (com.google.spanner.executor.v1.QueryAction.Parameter) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType().equals(other.getType())) return false; + if (!getType() + .equals(other.getType())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -443,94 +382,89 @@ public int hashCode() { } public static com.google.spanner.executor.v1.QueryAction.Parameter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryAction.Parameter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.QueryAction.Parameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryAction.Parameter 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.QueryAction.Parameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryAction.Parameter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.QueryAction.Parameter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.QueryAction.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.QueryAction.Parameter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.QueryAction.Parameter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.QueryAction.Parameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.QueryAction.Parameter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.QueryAction.Parameter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.QueryAction.Parameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.QueryAction.Parameter prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.QueryAction.Parameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -540,41 +474,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * * <pre> * Parameter that bind to placeholders in the SQL string * </pre> * * Protobuf type {@code google.spanner.executor.v1.QueryAction.Parameter} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.QueryAction.Parameter) com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_Parameter_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.QueryAction.Parameter.class, - com.google.spanner.executor.v1.QueryAction.Parameter.Builder.class); + com.google.spanner.executor.v1.QueryAction.Parameter.class, com.google.spanner.executor.v1.QueryAction.Parameter.Builder.class); } // Construct using com.google.spanner.executor.v1.QueryAction.Parameter.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -594,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor; } @java.lang.Override @@ -615,11 +547,8 @@ public com.google.spanner.executor.v1.QueryAction.Parameter build() { @java.lang.Override public com.google.spanner.executor.v1.QueryAction.Parameter buildPartial() { - com.google.spanner.executor.v1.QueryAction.Parameter result = - new com.google.spanner.executor.v1.QueryAction.Parameter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.QueryAction.Parameter result = new com.google.spanner.executor.v1.QueryAction.Parameter(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -630,10 +559,14 @@ private void buildPartial0(com.google.spanner.executor.v1.QueryAction.Parameter result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + result.type_ = typeBuilder_ == null + ? type_ + : typeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + result.value_ = valueBuilder_ == null + ? value_ + : valueBuilder_.build(); } } @@ -641,41 +574,38 @@ private void buildPartial0(com.google.spanner.executor.v1.QueryAction.Parameter public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.QueryAction.Parameter) { - return mergeFrom((com.google.spanner.executor.v1.QueryAction.Parameter) other); + return mergeFrom((com.google.spanner.executor.v1.QueryAction.Parameter)other); } else { super.mergeFrom(other); return this; @@ -683,8 +613,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.QueryAction.Parameter other) { - if (other == com.google.spanner.executor.v1.QueryAction.Parameter.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.QueryAction.Parameter.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -722,31 +651,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getTypeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTypeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getValueFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -756,25 +685,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -783,21 +709,20 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -805,35 +730,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -843,21 +761,17 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Name of the parameter (with no leading @). * </pre> * * <code>string name = 1;</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -867,33 +781,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + com.google.spanner.v1.Type, com.google.spanner.v1.Type.Builder, com.google.spanner.v1.TypeOrBuilder> typeBuilder_; /** - * - * * <pre> * Type of the parameter. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Type of the parameter. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> - * * @return The type. */ public com.google.spanner.v1.Type getType() { @@ -904,8 +809,6 @@ public com.google.spanner.v1.Type getType() { } } /** - * - * * <pre> * Type of the parameter. * </pre> @@ -926,15 +829,14 @@ public Builder setType(com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Type of the parameter. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> */ - public Builder setType(com.google.spanner.v1.Type.Builder builderForValue) { + public Builder setType( + com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); } else { @@ -945,8 +847,6 @@ public Builder setType(com.google.spanner.v1.Type.Builder builderForValue) { return this; } /** - * - * * <pre> * Type of the parameter. * </pre> @@ -955,9 +855,9 @@ public Builder setType(com.google.spanner.v1.Type.Builder builderForValue) { */ 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()) { + if (((bitField0_ & 0x00000002) != 0) && + type_ != null && + type_ != com.google.spanner.v1.Type.getDefaultInstance()) { getTypeBuilder().mergeFrom(value); } else { type_ = value; @@ -970,8 +870,6 @@ public Builder mergeType(com.google.spanner.v1.Type value) { return this; } /** - * - * * <pre> * Type of the parameter. * </pre> @@ -989,8 +887,6 @@ public Builder clearType() { return this; } /** - * - * * <pre> * Type of the parameter. * </pre> @@ -1003,8 +899,6 @@ public com.google.spanner.v1.Type.Builder getTypeBuilder() { return getTypeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Type of the parameter. * </pre> @@ -1015,12 +909,11 @@ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? com.google.spanner.v1.Type.getDefaultInstance() : type_; + return type_ == null ? + com.google.spanner.v1.Type.getDefaultInstance() : type_; } } /** - * - * * <pre> * Type of the parameter. * </pre> @@ -1028,17 +921,14 @@ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() { * <code>.google.spanner.v1.Type type = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.v1.Type, - com.google.spanner.v1.Type.Builder, - com.google.spanner.v1.TypeOrBuilder> + 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()); + 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_; @@ -1046,47 +936,34 @@ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() { private com.google.spanner.executor.v1.Value value_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.Value, - com.google.spanner.executor.v1.Value.Builder, - com.google.spanner.executor.v1.ValueOrBuilder> - valueBuilder_; + com.google.spanner.executor.v1.Value, com.google.spanner.executor.v1.Value.Builder, com.google.spanner.executor.v1.ValueOrBuilder> valueBuilder_; /** - * - * * <pre> * Value of the parameter. * </pre> * * <code>.google.spanner.executor.v1.Value value = 3;</code> - * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Value of the parameter. * </pre> * * <code>.google.spanner.executor.v1.Value value = 3;</code> - * * @return The value. */ public com.google.spanner.executor.v1.Value getValue() { if (valueBuilder_ == null) { - return value_ == null - ? com.google.spanner.executor.v1.Value.getDefaultInstance() - : value_; + return value_ == null ? com.google.spanner.executor.v1.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** - * - * * <pre> * Value of the parameter. * </pre> @@ -1107,15 +984,14 @@ public Builder setValue(com.google.spanner.executor.v1.Value value) { return this; } /** - * - * * <pre> * Value of the parameter. * </pre> * * <code>.google.spanner.executor.v1.Value value = 3;</code> */ - public Builder setValue(com.google.spanner.executor.v1.Value.Builder builderForValue) { + public Builder setValue( + com.google.spanner.executor.v1.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { @@ -1126,8 +1002,6 @@ public Builder setValue(com.google.spanner.executor.v1.Value.Builder builderForV return this; } /** - * - * * <pre> * Value of the parameter. * </pre> @@ -1136,9 +1010,9 @@ public Builder setValue(com.google.spanner.executor.v1.Value.Builder builderForV */ public Builder mergeValue(com.google.spanner.executor.v1.Value value) { if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && value_ != null - && value_ != com.google.spanner.executor.v1.Value.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + value_ != null && + value_ != com.google.spanner.executor.v1.Value.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; @@ -1151,8 +1025,6 @@ public Builder mergeValue(com.google.spanner.executor.v1.Value value) { return this; } /** - * - * * <pre> * Value of the parameter. * </pre> @@ -1170,8 +1042,6 @@ public Builder clearValue() { return this; } /** - * - * * <pre> * Value of the parameter. * </pre> @@ -1184,8 +1054,6 @@ public com.google.spanner.executor.v1.Value.Builder getValueBuilder() { return getValueFieldBuilder().getBuilder(); } /** - * - * * <pre> * Value of the parameter. * </pre> @@ -1196,14 +1064,11 @@ public com.google.spanner.executor.v1.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null - ? com.google.spanner.executor.v1.Value.getDefaultInstance() - : value_; + return value_ == null ? + com.google.spanner.executor.v1.Value.getDefaultInstance() : value_; } } /** - * - * * <pre> * Value of the parameter. * </pre> @@ -1211,22 +1076,18 @@ public com.google.spanner.executor.v1.ValueOrBuilder getValueOrBuilder() { * <code>.google.spanner.executor.v1.Value value = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.Value, - com.google.spanner.executor.v1.Value.Builder, - com.google.spanner.executor.v1.ValueOrBuilder> + com.google.spanner.executor.v1.Value, com.google.spanner.executor.v1.Value.Builder, com.google.spanner.executor.v1.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.Value, - com.google.spanner.executor.v1.Value.Builder, - com.google.spanner.executor.v1.ValueOrBuilder>( - getValue(), getParentForChildren(), isClean()); + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.Value, com.google.spanner.executor.v1.Value.Builder, com.google.spanner.executor.v1.ValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); value_ = null; } return valueBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1239,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.QueryAction.Parameter) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.QueryAction.Parameter) private static final com.google.spanner.executor.v1.QueryAction.Parameter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.QueryAction.Parameter(); } @@ -1253,28 +1114,27 @@ public static com.google.spanner.executor.v1.QueryAction.Parameter getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<Parameter> PARSER = - new com.google.protobuf.AbstractParser<Parameter>() { - @java.lang.Override - public Parameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<Parameter> + PARSER = new com.google.protobuf.AbstractParser<Parameter>() { + @java.lang.Override + public Parameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<Parameter> parser() { return PARSER; @@ -1289,21 +1149,18 @@ public com.google.protobuf.Parser<Parameter> getParserForType() { public com.google.spanner.executor.v1.QueryAction.Parameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SQL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sql_ = ""; /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @return The sql. */ @java.lang.Override @@ -1312,29 +1169,29 @@ public java.lang.String getSql() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sql_ = s; return s; } } /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @return The bytes for sql. */ @java.lang.Override - public com.google.protobuf.ByteString getSqlBytes() { + public com.google.protobuf.ByteString + getSqlBytes() { java.lang.Object ref = sql_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sql_ = b; return b; } else { @@ -1343,12 +1200,9 @@ public com.google.protobuf.ByteString getSqlBytes() { } public static final int PARAMS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter> params_; /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -1360,8 +1214,6 @@ public java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter> getP return params_; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -1369,13 +1221,11 @@ public java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter> getP * <code>repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> getParamsOrBuilderList() { return params_; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -1387,8 +1237,6 @@ public int getParamsCount() { return params_.size(); } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -1400,8 +1248,6 @@ public com.google.spanner.executor.v1.QueryAction.Parameter getParams(int index) return params_.get(index); } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -1415,7 +1261,6 @@ public com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder getParamsOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1427,7 +1272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sql_); } @@ -1447,7 +1293,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sql_); } for (int i = 0; i < params_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, params_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, params_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1457,16 +1304,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.QueryAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.QueryAction other = - (com.google.spanner.executor.v1.QueryAction) obj; + com.google.spanner.executor.v1.QueryAction other = (com.google.spanner.executor.v1.QueryAction) obj; - if (!getSql().equals(other.getSql())) return false; - if (!getParamsList().equals(other.getParamsList())) return false; + if (!getSql() + .equals(other.getSql())) return false; + if (!getParamsList() + .equals(other.getParamsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1489,136 +1337,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.QueryAction parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.QueryAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.QueryAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryAction 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.QueryAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.QueryAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.QueryAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.QueryAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.QueryAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.QueryAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.QueryAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.QueryAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.QueryAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * A SQL query request. * </pre> * * Protobuf type {@code google.spanner.executor.v1.QueryAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.QueryAction) com.google.spanner.executor.v1.QueryActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.QueryAction.class, - com.google.spanner.executor.v1.QueryAction.Builder.class); + com.google.spanner.executor.v1.QueryAction.class, com.google.spanner.executor.v1.QueryAction.Builder.class); } // Construct using com.google.spanner.executor.v1.QueryAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1635,9 +1479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryAction_descriptor; } @java.lang.Override @@ -1656,12 +1500,9 @@ public com.google.spanner.executor.v1.QueryAction build() { @java.lang.Override public com.google.spanner.executor.v1.QueryAction buildPartial() { - com.google.spanner.executor.v1.QueryAction result = - new com.google.spanner.executor.v1.QueryAction(this); + com.google.spanner.executor.v1.QueryAction result = new com.google.spanner.executor.v1.QueryAction(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1689,39 +1530,38 @@ private void buildPartial0(com.google.spanner.executor.v1.QueryAction result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.QueryAction) { - return mergeFrom((com.google.spanner.executor.v1.QueryAction) other); + return mergeFrom((com.google.spanner.executor.v1.QueryAction)other); } else { super.mergeFrom(other); return this; @@ -1753,10 +1593,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.QueryAction other) { paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000002); - paramsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParamsFieldBuilder() - : null; + paramsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParamsFieldBuilder() : null; } else { paramsBuilder_.addAllMessages(other.params_); } @@ -1788,33 +1627,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sql_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.spanner.executor.v1.QueryAction.Parameter m = - input.readMessage( - com.google.spanner.executor.v1.QueryAction.Parameter.parser(), - extensionRegistry); - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.add(m); - } else { - paramsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sql_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.spanner.executor.v1.QueryAction.Parameter m = + input.readMessage( + com.google.spanner.executor.v1.QueryAction.Parameter.parser(), + extensionRegistry); + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.add(m); + } else { + paramsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1824,25 +1660,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sql_ = ""; /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @return The sql. */ public java.lang.String getSql() { java.lang.Object ref = sql_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sql_ = s; return s; @@ -1851,21 +1684,20 @@ public java.lang.String getSql() { } } /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @return The bytes for sql. */ - public com.google.protobuf.ByteString getSqlBytes() { + public com.google.protobuf.ByteString + getSqlBytes() { java.lang.Object ref = sql_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sql_ = b; return b; } else { @@ -1873,35 +1705,28 @@ public com.google.protobuf.ByteString getSqlBytes() { } } /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @param value The sql to set. * @return This builder for chaining. */ - public Builder setSql(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSql( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sql_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @return This builder for chaining. */ public Builder clearSql() { @@ -1911,21 +1736,17 @@ public Builder clearSql() { return this; } /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @param value The bytes for sql to set. * @return This builder for chaining. */ - public Builder setSqlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSqlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sql_ = value; bitField0_ |= 0x00000001; @@ -1934,25 +1755,18 @@ public Builder setSqlBytes(com.google.protobuf.ByteString value) { } private java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter> params_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureParamsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - params_ = - new java.util.ArrayList<com.google.spanner.executor.v1.QueryAction.Parameter>(params_); + params_ = new java.util.ArrayList<com.google.spanner.executor.v1.QueryAction.Parameter>(params_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction.Parameter, - com.google.spanner.executor.v1.QueryAction.Parameter.Builder, - com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> - paramsBuilder_; + com.google.spanner.executor.v1.QueryAction.Parameter, com.google.spanner.executor.v1.QueryAction.Parameter.Builder, com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> paramsBuilder_; /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -1967,8 +1781,6 @@ public java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter> getP } } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -1983,8 +1795,6 @@ public int getParamsCount() { } } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -1999,8 +1809,6 @@ public com.google.spanner.executor.v1.QueryAction.Parameter getParams(int index) } } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2022,8 +1830,6 @@ public Builder setParams( return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2042,8 +1848,6 @@ public Builder setParams( return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2064,8 +1868,6 @@ public Builder addParams(com.google.spanner.executor.v1.QueryAction.Parameter va return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2087,8 +1889,6 @@ public Builder addParams( return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2107,8 +1907,6 @@ public Builder addParams( return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2127,8 +1925,6 @@ public Builder addParams( return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2139,7 +1935,8 @@ public Builder addAllParams( java.lang.Iterable<? extends com.google.spanner.executor.v1.QueryAction.Parameter> values) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, params_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, params_); onChanged(); } else { paramsBuilder_.addAllMessages(values); @@ -2147,8 +1944,6 @@ public Builder addAllParams( return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2166,8 +1961,6 @@ public Builder clearParams() { return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2185,8 +1978,6 @@ public Builder removeParams(int index) { return this; } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2198,8 +1989,6 @@ public com.google.spanner.executor.v1.QueryAction.Parameter.Builder getParamsBui return getParamsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2209,22 +1998,19 @@ public com.google.spanner.executor.v1.QueryAction.Parameter.Builder getParamsBui public com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { - return params_.get(index); - } else { + return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Parameters for the SQL string. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> - getParamsOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> + getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { @@ -2232,8 +2018,6 @@ public com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder getParamsOr } } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2241,12 +2025,10 @@ public com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder getParamsOr * <code>repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;</code> */ public com.google.spanner.executor.v1.QueryAction.Parameter.Builder addParamsBuilder() { - return getParamsFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.QueryAction.Parameter.getDefaultInstance()); + return getParamsFieldBuilder().addBuilder( + com.google.spanner.executor.v1.QueryAction.Parameter.getDefaultInstance()); } /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -2255,43 +2037,37 @@ public com.google.spanner.executor.v1.QueryAction.Parameter.Builder addParamsBui */ public com.google.spanner.executor.v1.QueryAction.Parameter.Builder addParamsBuilder( int index) { - return getParamsFieldBuilder() - .addBuilder( - index, com.google.spanner.executor.v1.QueryAction.Parameter.getDefaultInstance()); + return getParamsFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.QueryAction.Parameter.getDefaultInstance()); } /** - * - * * <pre> * Parameters for the SQL string. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;</code> */ - public java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter.Builder> - getParamsBuilderList() { + public java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter.Builder> + getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction.Parameter, - com.google.spanner.executor.v1.QueryAction.Parameter.Builder, - com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> + com.google.spanner.executor.v1.QueryAction.Parameter, com.google.spanner.executor.v1.QueryAction.Parameter.Builder, com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { - paramsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction.Parameter, - com.google.spanner.executor.v1.QueryAction.Parameter.Builder, - com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder>( - params_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.QueryAction.Parameter, com.google.spanner.executor.v1.QueryAction.Parameter.Builder, com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder>( + params_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); params_ = null; } return paramsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2301,12 +2077,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.QueryAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.QueryAction) private static final com.google.spanner.executor.v1.QueryAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.QueryAction(); } @@ -2315,27 +2091,27 @@ public static com.google.spanner.executor.v1.QueryAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<QueryAction> PARSER = - new com.google.protobuf.AbstractParser<QueryAction>() { - @java.lang.Override - public QueryAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<QueryAction> + PARSER = new com.google.protobuf.AbstractParser<QueryAction>() { + @java.lang.Override + public QueryAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<QueryAction> parser() { return PARSER; @@ -2350,4 +2126,6 @@ public com.google.protobuf.Parser<QueryAction> getParserForType() { public com.google.spanner.executor.v1.QueryAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java similarity index 66% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java index 5a9fb614d31..49110b6212e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryActionOrBuilder.java @@ -1,66 +1,42 @@ -/* - * 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 interface QueryActionOrBuilder - extends +public interface QueryActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.QueryAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @return The sql. */ java.lang.String getSql(); /** - * - * * <pre> * The SQL string. * </pre> * * <code>string sql = 1;</code> - * * @return The bytes for sql. */ - com.google.protobuf.ByteString getSqlBytes(); + com.google.protobuf.ByteString + getSqlBytes(); /** - * - * * <pre> * Parameters for the SQL string. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;</code> */ - java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter> getParamsList(); + java.util.List<com.google.spanner.executor.v1.QueryAction.Parameter> + getParamsList(); /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -69,8 +45,6 @@ public interface QueryActionOrBuilder */ com.google.spanner.executor.v1.QueryAction.Parameter getParams(int index); /** - * - * * <pre> * Parameters for the SQL string. * </pre> @@ -79,24 +53,21 @@ public interface QueryActionOrBuilder */ int getParamsCount(); /** - * - * * <pre> * Parameters for the SQL string. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder> getParamsOrBuilderList(); /** - * - * * <pre> * Parameters for the SQL string. * </pre> * * <code>repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;</code> */ - com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder getParamsOrBuilder(int index); + com.google.spanner.executor.v1.QueryAction.ParameterOrBuilder getParamsOrBuilder( + int index); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java index 485bffb85dc..d37099d1333 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResult.java @@ -1,75 +1,53 @@ -/* - * 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; /** - * - * * <pre> * QueryResult contains result of a Query. * </pre> * * Protobuf type {@code google.spanner.executor.v1.QueryResult} */ -public final class QueryResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.QueryResult) QueryResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryResult.newBuilder() to construct. private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private QueryResult() { row_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryResult(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryResult_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.QueryResult.class, - com.google.spanner.executor.v1.QueryResult.Builder.class); + com.google.spanner.executor.v1.QueryResult.class, com.google.spanner.executor.v1.QueryResult.Builder.class); } private int bitField0_; public static final int ROW_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.ValueList> row_; /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -82,8 +60,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getRowList() { return row_; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -92,13 +68,11 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getRowList() { * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getRowOrBuilderList() { return row_; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -111,8 +85,6 @@ public int getRowCount() { return row_.size(); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -125,8 +97,6 @@ public com.google.spanner.executor.v1.ValueList getRow(int index) { return row_.get(index); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -135,21 +105,19 @@ public com.google.spanner.executor.v1.ValueList getRow(int index) { * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder( + int index) { return row_.get(index); } public static final int ROW_TYPE_FIELD_NUMBER = 2; private com.google.spanner.v1.StructType rowType_; /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 2;</code> - * * @return Whether the rowType field is set. */ @java.lang.Override @@ -157,14 +125,11 @@ public boolean hasRowType() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 2;</code> - * * @return The rowType. */ @java.lang.Override @@ -172,8 +137,6 @@ public com.google.spanner.v1.StructType getRowType() { return rowType_ == null ? com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -186,7 +149,6 @@ public com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < row_.size(); i++) { output.writeMessage(1, row_.get(i)); } @@ -215,10 +178,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < row_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, row_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, row_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRowType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRowType()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -228,18 +193,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.QueryResult)) { return super.equals(obj); } - com.google.spanner.executor.v1.QueryResult other = - (com.google.spanner.executor.v1.QueryResult) obj; + com.google.spanner.executor.v1.QueryResult other = (com.google.spanner.executor.v1.QueryResult) obj; - if (!getRowList().equals(other.getRowList())) return false; + if (!getRowList() + .equals(other.getRowList())) return false; if (hasRowType() != other.hasRowType()) return false; if (hasRowType()) { - if (!getRowType().equals(other.getRowType())) return false; + if (!getRowType() + .equals(other.getRowType())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -265,127 +231,120 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.QueryResult parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.QueryResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.QueryResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryResult 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.QueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.QueryResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.QueryResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.QueryResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.QueryResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.QueryResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.QueryResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.QueryResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.QueryResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.QueryResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * QueryResult contains result of a Query. * </pre> * * Protobuf type {@code google.spanner.executor.v1.QueryResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.QueryResult) com.google.spanner.executor.v1.QueryResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryResult_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.QueryResult.class, - com.google.spanner.executor.v1.QueryResult.Builder.class); + com.google.spanner.executor.v1.QueryResult.class, com.google.spanner.executor.v1.QueryResult.Builder.class); } // Construct using com.google.spanner.executor.v1.QueryResult.newBuilder() @@ -393,18 +352,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRowFieldBuilder(); getRowTypeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_QueryResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_QueryResult_descriptor; } @java.lang.Override @@ -446,12 +405,9 @@ public com.google.spanner.executor.v1.QueryResult build() { @java.lang.Override public com.google.spanner.executor.v1.QueryResult buildPartial() { - com.google.spanner.executor.v1.QueryResult result = - new com.google.spanner.executor.v1.QueryResult(this); + com.google.spanner.executor.v1.QueryResult result = new com.google.spanner.executor.v1.QueryResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -472,7 +428,9 @@ private void buildPartial0(com.google.spanner.executor.v1.QueryResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.rowType_ = rowTypeBuilder_ == null ? rowType_ : rowTypeBuilder_.build(); + result.rowType_ = rowTypeBuilder_ == null + ? rowType_ + : rowTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -482,39 +440,38 @@ private void buildPartial0(com.google.spanner.executor.v1.QueryResult result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.QueryResult) { - return mergeFrom((com.google.spanner.executor.v1.QueryResult) other); + return mergeFrom((com.google.spanner.executor.v1.QueryResult)other); } else { super.mergeFrom(other); return this; @@ -541,10 +498,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.QueryResult other) { rowBuilder_ = null; row_ = other.row_; bitField0_ = (bitField0_ & ~0x00000001); - rowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowFieldBuilder() - : null; + rowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowFieldBuilder() : null; } else { rowBuilder_.addAllMessages(other.row_); } @@ -579,32 +535,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.spanner.executor.v1.ValueList m = - input.readMessage( - com.google.spanner.executor.v1.ValueList.parser(), extensionRegistry); - if (rowBuilder_ == null) { - ensureRowIsMutable(); - row_.add(m); - } else { - rowBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - input.readMessage(getRowTypeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.spanner.executor.v1.ValueList m = + input.readMessage( + com.google.spanner.executor.v1.ValueList.parser(), + extensionRegistry); + if (rowBuilder_ == null) { + ensureRowIsMutable(); + row_.add(m); + } else { + rowBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getRowTypeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,28 +570,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.spanner.executor.v1.ValueList> row_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRowIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { row_ = new java.util.ArrayList<com.google.spanner.executor.v1.ValueList>(row_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> - rowBuilder_; + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> rowBuilder_; /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -651,8 +600,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getRowList() { } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -668,8 +615,6 @@ public int getRowCount() { } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -685,8 +630,6 @@ public com.google.spanner.executor.v1.ValueList getRow(int index) { } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -694,7 +637,8 @@ public com.google.spanner.executor.v1.ValueList getRow(int index) { * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - public Builder setRow(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder setRow( + int index, com.google.spanner.executor.v1.ValueList value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -708,8 +652,6 @@ public Builder setRow(int index, com.google.spanner.executor.v1.ValueList value) return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -729,8 +671,6 @@ public Builder setRow( return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -752,8 +692,6 @@ public Builder addRow(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -761,7 +699,8 @@ public Builder addRow(com.google.spanner.executor.v1.ValueList value) { * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - public Builder addRow(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder addRow( + int index, com.google.spanner.executor.v1.ValueList value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -775,8 +714,6 @@ public Builder addRow(int index, com.google.spanner.executor.v1.ValueList value) return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -784,7 +721,8 @@ public Builder addRow(int index, com.google.spanner.executor.v1.ValueList value) * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - public Builder addRow(com.google.spanner.executor.v1.ValueList.Builder builderForValue) { + public Builder addRow( + com.google.spanner.executor.v1.ValueList.Builder builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(builderForValue.build()); @@ -795,8 +733,6 @@ public Builder addRow(com.google.spanner.executor.v1.ValueList.Builder builderFo return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -816,8 +752,6 @@ public Builder addRow( return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -829,7 +763,8 @@ public Builder addAllRow( java.lang.Iterable<? extends com.google.spanner.executor.v1.ValueList> values) { if (rowBuilder_ == null) { ensureRowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, row_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, row_); onChanged(); } else { rowBuilder_.addAllMessages(values); @@ -837,8 +772,6 @@ public Builder addAllRow( return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -857,8 +790,6 @@ public Builder clearRow() { return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -877,8 +808,6 @@ public Builder removeRow(int index) { return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -886,12 +815,11 @@ public Builder removeRow(int index) { * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder getRowBuilder(int index) { + public com.google.spanner.executor.v1.ValueList.Builder getRowBuilder( + int index) { return getRowFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -899,16 +827,14 @@ public com.google.spanner.executor.v1.ValueList.Builder getRowBuilder(int index) * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder( + int index) { if (rowBuilder_ == null) { - return row_.get(index); - } else { + return row_.get(index); } else { return rowBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -916,8 +842,8 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int ind * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> - getRowOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + getRowOrBuilderList() { if (rowBuilder_ != null) { return rowBuilder_.getMessageOrBuilderList(); } else { @@ -925,8 +851,6 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int ind } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -935,12 +859,10 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int ind * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder() { - return getRowFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + return getRowFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -948,13 +870,12 @@ public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder() { * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder(int index) { - return getRowFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder( + int index) { + return getRowFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -962,22 +883,20 @@ public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder(int index) * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> getRowBuilderList() { + public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> + getRowBuilderList() { return getRowFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> getRowFieldBuilder() { if (rowBuilder_ == null) { - rowBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder>( - row_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder>( + row_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); row_ = null; } return rowBuilder_; @@ -985,33 +904,24 @@ public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> getRowBu private com.google.spanner.v1.StructType rowType_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.v1.StructType, - com.google.spanner.v1.StructType.Builder, - com.google.spanner.v1.StructTypeOrBuilder> - rowTypeBuilder_; + com.google.spanner.v1.StructType, com.google.spanner.v1.StructType.Builder, com.google.spanner.v1.StructTypeOrBuilder> rowTypeBuilder_; /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 2;</code> - * * @return Whether the rowType field is set. */ public boolean hasRowType() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 2;</code> - * * @return The rowType. */ public com.google.spanner.v1.StructType getRowType() { @@ -1022,8 +932,6 @@ public com.google.spanner.v1.StructType getRowType() { } } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1044,15 +952,14 @@ public Builder setRowType(com.google.spanner.v1.StructType value) { return this; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 2;</code> */ - public Builder setRowType(com.google.spanner.v1.StructType.Builder builderForValue) { + public Builder setRowType( + com.google.spanner.v1.StructType.Builder builderForValue) { if (rowTypeBuilder_ == null) { rowType_ = builderForValue.build(); } else { @@ -1063,8 +970,6 @@ public Builder setRowType(com.google.spanner.v1.StructType.Builder builderForVal return this; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1073,9 +978,9 @@ public Builder setRowType(com.google.spanner.v1.StructType.Builder builderForVal */ public Builder mergeRowType(com.google.spanner.v1.StructType value) { if (rowTypeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && rowType_ != null - && rowType_ != com.google.spanner.v1.StructType.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + rowType_ != null && + rowType_ != com.google.spanner.v1.StructType.getDefaultInstance()) { getRowTypeBuilder().mergeFrom(value); } else { rowType_ = value; @@ -1088,8 +993,6 @@ public Builder mergeRowType(com.google.spanner.v1.StructType value) { return this; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1107,8 +1010,6 @@ public Builder clearRowType() { return this; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1121,8 +1022,6 @@ public com.google.spanner.v1.StructType.Builder getRowTypeBuilder() { return getRowTypeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1133,12 +1032,11 @@ public com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() { if (rowTypeBuilder_ != null) { return rowTypeBuilder_.getMessageOrBuilder(); } else { - return rowType_ == null ? com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; + return rowType_ == null ? + com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; } } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1146,24 +1044,21 @@ public com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() { * <code>optional .google.spanner.v1.StructType row_type = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.v1.StructType, - com.google.spanner.v1.StructType.Builder, - com.google.spanner.v1.StructTypeOrBuilder> + com.google.spanner.v1.StructType, com.google.spanner.v1.StructType.Builder, com.google.spanner.v1.StructTypeOrBuilder> getRowTypeFieldBuilder() { if (rowTypeBuilder_ == null) { - rowTypeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.v1.StructType, - com.google.spanner.v1.StructType.Builder, - com.google.spanner.v1.StructTypeOrBuilder>( - getRowType(), getParentForChildren(), isClean()); + rowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.v1.StructType, com.google.spanner.v1.StructType.Builder, com.google.spanner.v1.StructTypeOrBuilder>( + getRowType(), + getParentForChildren(), + isClean()); rowType_ = null; } return rowTypeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1173,12 +1068,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.QueryResult) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.QueryResult) private static final com.google.spanner.executor.v1.QueryResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.QueryResult(); } @@ -1187,27 +1082,27 @@ public static com.google.spanner.executor.v1.QueryResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<QueryResult> PARSER = - new com.google.protobuf.AbstractParser<QueryResult>() { - @java.lang.Override - public QueryResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<QueryResult> + PARSER = new com.google.protobuf.AbstractParser<QueryResult>() { + @java.lang.Override + public QueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<QueryResult> parser() { return PARSER; @@ -1222,4 +1117,6 @@ public com.google.protobuf.Parser<QueryResult> getParserForType() { public com.google.spanner.executor.v1.QueryResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java similarity index 74% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java index f70058d2505..da6578bb7f3 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/QueryResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 interface QueryResultOrBuilder - extends +public interface QueryResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.QueryResult) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -33,10 +15,9 @@ public interface QueryResultOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - java.util.List<com.google.spanner.executor.v1.ValueList> getRowList(); + java.util.List<com.google.spanner.executor.v1.ValueList> + getRowList(); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -46,8 +27,6 @@ public interface QueryResultOrBuilder */ com.google.spanner.executor.v1.ValueList getRow(int index); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -57,8 +36,6 @@ public interface QueryResultOrBuilder */ int getRowCount(); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -66,10 +43,9 @@ public interface QueryResultOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getRowOrBuilderList(); + java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + getRowOrBuilderList(); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -77,35 +53,28 @@ public interface QueryResultOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList row = 1;</code> */ - com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int index); + com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder( + int index); /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 2;</code> - * * @return Whether the rowType field is set. */ boolean hasRowType(); /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 2;</code> - * * @return The rowType. */ com.google.spanner.v1.StructType getRowType(); /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java similarity index 71% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java index 78eb70bec94..e1309a7993e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadAction.java @@ -1,83 +1,61 @@ -/* - * 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; /** - * - * * <pre> * A single read request. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ReadAction} */ -public final class ReadAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ReadAction) ReadActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadAction.newBuilder() to construct. private ReadAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ReadAction() { table_ = ""; index_ = ""; - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ReadAction.class, - com.google.spanner.executor.v1.ReadAction.Builder.class); + com.google.spanner.executor.v1.ReadAction.class, com.google.spanner.executor.v1.ReadAction.Builder.class); } private int bitField0_; public static final int TABLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @return The table. */ @java.lang.Override @@ -86,29 +64,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -117,18 +95,14 @@ public com.google.protobuf.ByteString getTableBytes() { } public static final int INDEX_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object index_ = ""; /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return Whether the index field is set. */ @java.lang.Override @@ -136,14 +110,11 @@ public boolean hasIndex() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return The index. */ @java.lang.Override @@ -152,29 +123,29 @@ public java.lang.String getIndex() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; } } /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return The bytes for index. */ @java.lang.Override - public com.google.protobuf.ByteString getIndexBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); index_ = b; return b; } else { @@ -183,47 +154,38 @@ public com.google.protobuf.ByteString getIndexBytes() { } public static final int COLUMN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList column_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @return A list containing the column. */ - public com.google.protobuf.ProtocolStringList getColumnList() { + public com.google.protobuf.ProtocolStringList + getColumnList() { return column_; } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ @@ -231,32 +193,27 @@ public java.lang.String getColumn(int index) { return column_.get(index); } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - public com.google.protobuf.ByteString getColumnBytes(int index) { + public com.google.protobuf.ByteString + getColumnBytes(int index) { return column_.getByteString(index); } public static final int KEYS_FIELD_NUMBER = 4; private com.google.spanner.executor.v1.KeySet keys_; /** - * - * * <pre> * Keys for performing this read. * </pre> * * <code>.google.spanner.executor.v1.KeySet keys = 4;</code> - * * @return Whether the keys field is set. */ @java.lang.Override @@ -264,14 +221,11 @@ public boolean hasKeys() { return keys_ != null; } /** - * - * * <pre> * Keys for performing this read. * </pre> * * <code>.google.spanner.executor.v1.KeySet keys = 4;</code> - * * @return The keys. */ @java.lang.Override @@ -279,8 +233,6 @@ public com.google.spanner.executor.v1.KeySet getKeys() { return keys_ == null ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() : keys_; } /** - * - * * <pre> * Keys for performing this read. * </pre> @@ -295,14 +247,11 @@ public com.google.spanner.executor.v1.KeySetOrBuilder getKeysOrBuilder() { public static final int LIMIT_FIELD_NUMBER = 5; private int limit_ = 0; /** - * - * * <pre> * Limit on number of rows to read. If set, must be positive. * </pre> * * <code>int32 limit = 5;</code> - * * @return The limit. */ @java.lang.Override @@ -311,7 +260,6 @@ public int getLimit() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -323,7 +271,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); } @@ -363,10 +312,12 @@ public int getSerializedSize() { size += 1 * getColumnList().size(); } if (keys_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKeys()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getKeys()); } if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, limit_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, limit_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -376,25 +327,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ReadAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ReadAction other = - (com.google.spanner.executor.v1.ReadAction) obj; + com.google.spanner.executor.v1.ReadAction other = (com.google.spanner.executor.v1.ReadAction) obj; - if (!getTable().equals(other.getTable())) return false; + if (!getTable() + .equals(other.getTable())) return false; if (hasIndex() != other.hasIndex()) return false; if (hasIndex()) { - if (!getIndex().equals(other.getIndex())) return false; + if (!getIndex() + .equals(other.getIndex())) return false; } - if (!getColumnList().equals(other.getColumnList())) return false; + if (!getColumnList() + .equals(other.getColumnList())) return false; if (hasKeys() != other.hasKeys()) return false; if (hasKeys()) { - if (!getKeys().equals(other.getKeys())) return false; + if (!getKeys() + .equals(other.getKeys())) return false; } - if (getLimit() != other.getLimit()) return false; + if (getLimit() + != other.getLimit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -427,143 +382,140 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.ReadAction parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.ReadAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReadAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ReadAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReadAction 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.ReadAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReadAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.ReadAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ReadAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ReadAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ReadAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ReadAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ReadAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ReadAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.ReadAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * A single read request. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ReadAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ReadAction) com.google.spanner.executor.v1.ReadActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ReadAction.class, - com.google.spanner.executor.v1.ReadAction.Builder.class); + com.google.spanner.executor.v1.ReadAction.class, com.google.spanner.executor.v1.ReadAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ReadAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; table_ = ""; index_ = ""; - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); keys_ = null; if (keysBuilder_ != null) { keysBuilder_.dispose(); @@ -574,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadAction_descriptor; } @java.lang.Override @@ -595,11 +547,8 @@ public com.google.spanner.executor.v1.ReadAction build() { @java.lang.Override public com.google.spanner.executor.v1.ReadAction buildPartial() { - com.google.spanner.executor.v1.ReadAction result = - new com.google.spanner.executor.v1.ReadAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ReadAction result = new com.google.spanner.executor.v1.ReadAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -619,7 +568,9 @@ private void buildPartial0(com.google.spanner.executor.v1.ReadAction result) { result.column_ = column_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.keys_ = keysBuilder_ == null ? keys_ : keysBuilder_.build(); + result.keys_ = keysBuilder_ == null + ? keys_ + : keysBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.limit_ = limit_; @@ -631,39 +582,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ReadAction result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ReadAction) { - return mergeFrom((com.google.spanner.executor.v1.ReadAction) other); + return mergeFrom((com.google.spanner.executor.v1.ReadAction)other); } else { super.mergeFrom(other); return this; @@ -724,44 +674,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - index_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureColumnIsMutable(); - column_.add(s); - break; - } // case 26 - case 34: - { - input.readMessage(getKeysFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - limit_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + index_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureColumnIsMutable(); + column_.add(s); + break; + } // case 26 + case 34: { + input.readMessage( + getKeysFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + limit_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -771,25 +717,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object table_ = ""; /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -798,21 +741,20 @@ public java.lang.String getTable() { } } /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -820,35 +762,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @return This builder for chaining. */ public Builder clearTable() { @@ -858,21 +793,17 @@ public Builder clearTable() { return this; } /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @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(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -882,34 +813,29 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { private java.lang.Object index_ = ""; /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return Whether the index field is set. */ public boolean hasIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; @@ -918,21 +844,20 @@ public java.lang.String getIndex() { } } /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return The bytes for index. */ - public com.google.protobuf.ByteString getIndexBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); index_ = b; return b; } else { @@ -940,35 +865,28 @@ public com.google.protobuf.ByteString getIndexBytes() { } } /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @param value The index to set. * @return This builder for chaining. */ - public Builder setIndex(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIndex( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } index_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return This builder for chaining. */ public Builder clearIndex() { @@ -978,21 +896,17 @@ public Builder clearIndex() { return this; } /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @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(); - } + public Builder setIndexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); index_ = value; bitField0_ |= 0x00000002; @@ -1002,7 +916,6 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList column_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureColumnIsMutable() { if (!column_.isModifiable()) { column_ = new com.google.protobuf.LazyStringArrayList(column_); @@ -1010,43 +923,35 @@ private void ensureColumnIsMutable() { bitField0_ |= 0x00000004; } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @return A list containing the column. */ - public com.google.protobuf.ProtocolStringList getColumnList() { + public com.google.protobuf.ProtocolStringList + getColumnList() { column_.makeImmutable(); return column_; } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ @@ -1054,37 +959,31 @@ public java.lang.String getColumn(int index) { return column_.get(index); } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - public com.google.protobuf.ByteString getColumnBytes(int index) { + public com.google.protobuf.ByteString + getColumnBytes(int index) { return column_.getByteString(index); } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param index The index to set the value at. * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumn( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.set(index, value); bitField0_ |= 0x00000004; @@ -1092,21 +991,17 @@ public Builder setColumn(int index, java.lang.String value) { return this; } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param value The column to add. * @return This builder for chaining. */ - public Builder addColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addColumn( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.add(value); bitField0_ |= 0x00000004; @@ -1114,58 +1009,50 @@ public Builder addColumn(java.lang.String value) { return this; } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param values The column to add. * @return This builder for chaining. */ - public Builder addAllColumn(java.lang.Iterable<java.lang.String> values) { + public Builder addAllColumn( + java.lang.Iterable<java.lang.String> values) { ensureColumnIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, column_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, column_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @return This builder for chaining. */ public Builder clearColumn() { - column_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + column_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param value The bytes of the column to add. * @return This builder for chaining. */ - public Builder addColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addColumnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureColumnIsMutable(); column_.add(value); @@ -1176,33 +1063,24 @@ public Builder addColumnBytes(com.google.protobuf.ByteString value) { private com.google.spanner.executor.v1.KeySet keys_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.KeySet, - com.google.spanner.executor.v1.KeySet.Builder, - com.google.spanner.executor.v1.KeySetOrBuilder> - keysBuilder_; + com.google.spanner.executor.v1.KeySet, com.google.spanner.executor.v1.KeySet.Builder, com.google.spanner.executor.v1.KeySetOrBuilder> keysBuilder_; /** - * - * * <pre> * Keys for performing this read. * </pre> * * <code>.google.spanner.executor.v1.KeySet keys = 4;</code> - * * @return Whether the keys field is set. */ public boolean hasKeys() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Keys for performing this read. * </pre> * * <code>.google.spanner.executor.v1.KeySet keys = 4;</code> - * * @return The keys. */ public com.google.spanner.executor.v1.KeySet getKeys() { @@ -1213,8 +1091,6 @@ public com.google.spanner.executor.v1.KeySet getKeys() { } } /** - * - * * <pre> * Keys for performing this read. * </pre> @@ -1235,15 +1111,14 @@ public Builder setKeys(com.google.spanner.executor.v1.KeySet value) { return this; } /** - * - * * <pre> * Keys for performing this read. * </pre> * * <code>.google.spanner.executor.v1.KeySet keys = 4;</code> */ - public Builder setKeys(com.google.spanner.executor.v1.KeySet.Builder builderForValue) { + public Builder setKeys( + com.google.spanner.executor.v1.KeySet.Builder builderForValue) { if (keysBuilder_ == null) { keys_ = builderForValue.build(); } else { @@ -1254,8 +1129,6 @@ public Builder setKeys(com.google.spanner.executor.v1.KeySet.Builder builderForV return this; } /** - * - * * <pre> * Keys for performing this read. * </pre> @@ -1264,9 +1137,9 @@ public Builder setKeys(com.google.spanner.executor.v1.KeySet.Builder builderForV */ public Builder mergeKeys(com.google.spanner.executor.v1.KeySet value) { if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && keys_ != null - && keys_ != com.google.spanner.executor.v1.KeySet.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + keys_ != null && + keys_ != com.google.spanner.executor.v1.KeySet.getDefaultInstance()) { getKeysBuilder().mergeFrom(value); } else { keys_ = value; @@ -1279,8 +1152,6 @@ public Builder mergeKeys(com.google.spanner.executor.v1.KeySet value) { return this; } /** - * - * * <pre> * Keys for performing this read. * </pre> @@ -1298,8 +1169,6 @@ public Builder clearKeys() { return this; } /** - * - * * <pre> * Keys for performing this read. * </pre> @@ -1312,8 +1181,6 @@ public com.google.spanner.executor.v1.KeySet.Builder getKeysBuilder() { return getKeysFieldBuilder().getBuilder(); } /** - * - * * <pre> * Keys for performing this read. * </pre> @@ -1324,12 +1191,11 @@ public com.google.spanner.executor.v1.KeySetOrBuilder getKeysOrBuilder() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilder(); } else { - return keys_ == null ? com.google.spanner.executor.v1.KeySet.getDefaultInstance() : keys_; + return keys_ == null ? + com.google.spanner.executor.v1.KeySet.getDefaultInstance() : keys_; } } /** - * - * * <pre> * Keys for performing this read. * </pre> @@ -1337,32 +1203,26 @@ public com.google.spanner.executor.v1.KeySetOrBuilder getKeysOrBuilder() { * <code>.google.spanner.executor.v1.KeySet keys = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.KeySet, - com.google.spanner.executor.v1.KeySet.Builder, - com.google.spanner.executor.v1.KeySetOrBuilder> + com.google.spanner.executor.v1.KeySet, com.google.spanner.executor.v1.KeySet.Builder, com.google.spanner.executor.v1.KeySetOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.KeySet, - com.google.spanner.executor.v1.KeySet.Builder, - com.google.spanner.executor.v1.KeySetOrBuilder>( - getKeys(), getParentForChildren(), isClean()); + keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.KeySet, com.google.spanner.executor.v1.KeySet.Builder, com.google.spanner.executor.v1.KeySetOrBuilder>( + getKeys(), + getParentForChildren(), + isClean()); keys_ = null; } return keysBuilder_; } - private int limit_; + private int limit_ ; /** - * - * * <pre> * Limit on number of rows to read. If set, must be positive. * </pre> * * <code>int32 limit = 5;</code> - * * @return The limit. */ @java.lang.Override @@ -1370,14 +1230,11 @@ public int getLimit() { return limit_; } /** - * - * * <pre> * Limit on number of rows to read. If set, must be positive. * </pre> * * <code>int32 limit = 5;</code> - * * @param value The limit to set. * @return This builder for chaining. */ @@ -1389,14 +1246,11 @@ public Builder setLimit(int value) { return this; } /** - * - * * <pre> * Limit on number of rows to read. If set, must be positive. * </pre> * * <code>int32 limit = 5;</code> - * * @return This builder for chaining. */ public Builder clearLimit() { @@ -1405,9 +1259,9 @@ public Builder clearLimit() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1417,12 +1271,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ReadAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ReadAction) private static final com.google.spanner.executor.v1.ReadAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ReadAction(); } @@ -1431,27 +1285,27 @@ public static com.google.spanner.executor.v1.ReadAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ReadAction> PARSER = - new com.google.protobuf.AbstractParser<ReadAction>() { - @java.lang.Override - public ReadAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ReadAction> + PARSER = new com.google.protobuf.AbstractParser<ReadAction>() { + @java.lang.Override + public ReadAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ReadAction> parser() { return PARSER; @@ -1466,4 +1320,6 @@ public com.google.protobuf.Parser<ReadAction> getParserForType() { public com.google.spanner.executor.v1.ReadAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java index 10caf502805..28c052d869d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadActionOrBuilder.java @@ -1,168 +1,121 @@ -/* - * 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 interface ReadActionOrBuilder - extends +public interface ReadActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ReadAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @return The table. */ java.lang.String getTable(); /** - * - * * <pre> * The table to read at. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return Whether the index field is set. */ boolean hasIndex(); /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return The index. */ java.lang.String getIndex(); /** - * - * * <pre> * The index to read at if it's an index read. * </pre> * * <code>optional string index = 2;</code> - * * @return The bytes for index. */ - com.google.protobuf.ByteString getIndexBytes(); + com.google.protobuf.ByteString + getIndexBytes(); /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @return A list containing the column. */ - java.util.List<java.lang.String> getColumnList(); + java.util.List<java.lang.String> + getColumnList(); /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @return The count of column. */ int getColumnCount(); /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param index The index of the element to return. * @return The column at the given index. */ java.lang.String getColumn(int index); /** - * - * * <pre> * List of columns must begin with the key columns used for the read. * </pre> * * <code>repeated string column = 3;</code> - * * @param index The index of the value to return. * @return The bytes of the column at the given index. */ - com.google.protobuf.ByteString getColumnBytes(int index); + com.google.protobuf.ByteString + getColumnBytes(int index); /** - * - * * <pre> * Keys for performing this read. * </pre> * * <code>.google.spanner.executor.v1.KeySet keys = 4;</code> - * * @return Whether the keys field is set. */ boolean hasKeys(); /** - * - * * <pre> * Keys for performing this read. * </pre> * * <code>.google.spanner.executor.v1.KeySet keys = 4;</code> - * * @return The keys. */ com.google.spanner.executor.v1.KeySet getKeys(); /** - * - * * <pre> * Keys for performing this read. * </pre> @@ -172,14 +125,11 @@ public interface ReadActionOrBuilder com.google.spanner.executor.v1.KeySetOrBuilder getKeysOrBuilder(); /** - * - * * <pre> * Limit on number of rows to read. If set, must be positive. * </pre> * * <code>int32 limit = 5;</code> - * * @return The limit. */ int getLimit(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java similarity index 74% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java index a3f95026a08..35f2e696cfe 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResult.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * ReadResult contains rows read. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ReadResult} */ -public final class ReadResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ReadResult) ReadResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadResult.newBuilder() to construct. private ReadResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ReadResult() { table_ = ""; index_ = ""; @@ -45,39 +27,34 @@ private ReadResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadResult(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadResult_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ReadResult.class, - com.google.spanner.executor.v1.ReadResult.Builder.class); + com.google.spanner.executor.v1.ReadResult.class, com.google.spanner.executor.v1.ReadResult.Builder.class); } private int bitField0_; public static final int TABLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @return The table. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -117,18 +94,14 @@ public com.google.protobuf.ByteString getTableBytes() { } public static final int INDEX_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object index_ = ""; /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return Whether the index field is set. */ @java.lang.Override @@ -136,14 +109,11 @@ public boolean hasIndex() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return The index. */ @java.lang.Override @@ -152,29 +122,29 @@ public java.lang.String getIndex() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; } } /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return The bytes for index. */ @java.lang.Override - public com.google.protobuf.ByteString getIndexBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); index_ = b; return b; } else { @@ -185,14 +155,11 @@ public com.google.protobuf.ByteString getIndexBytes() { public static final int REQUEST_INDEX_FIELD_NUMBER = 3; private int requestIndex_ = 0; /** - * - * * <pre> * Request index (multiread only). * </pre> * * <code>optional int32 request_index = 3;</code> - * * @return Whether the requestIndex field is set. */ @java.lang.Override @@ -200,14 +167,11 @@ public boolean hasRequestIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Request index (multiread only). * </pre> * * <code>optional int32 request_index = 3;</code> - * * @return The requestIndex. */ @java.lang.Override @@ -216,12 +180,9 @@ public int getRequestIndex() { } public static final int ROW_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.ValueList> row_; /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -234,8 +195,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getRowList() { return row_; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -244,13 +203,11 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getRowList() { * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getRowOrBuilderList() { return row_; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -263,8 +220,6 @@ public int getRowCount() { return row_.size(); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -277,8 +232,6 @@ public com.google.spanner.executor.v1.ValueList getRow(int index) { return row_.get(index); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -287,21 +240,19 @@ public com.google.spanner.executor.v1.ValueList getRow(int index) { * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder( + int index) { return row_.get(index); } public static final int ROW_TYPE_FIELD_NUMBER = 5; private com.google.spanner.v1.StructType rowType_; /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 5;</code> - * * @return Whether the rowType field is set. */ @java.lang.Override @@ -309,14 +260,11 @@ public boolean hasRowType() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 5;</code> - * * @return The rowType. */ @java.lang.Override @@ -324,8 +272,6 @@ public com.google.spanner.v1.StructType getRowType() { return rowType_ == null ? com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -338,7 +284,6 @@ public com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,7 +295,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); } @@ -382,13 +328,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, index_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, requestIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, requestIndex_); } for (int i = 0; i < row_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, row_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, row_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRowType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRowType()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -398,27 +347,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ReadResult)) { return super.equals(obj); } - com.google.spanner.executor.v1.ReadResult other = - (com.google.spanner.executor.v1.ReadResult) obj; + com.google.spanner.executor.v1.ReadResult other = (com.google.spanner.executor.v1.ReadResult) obj; - if (!getTable().equals(other.getTable())) return false; + if (!getTable() + .equals(other.getTable())) return false; if (hasIndex() != other.hasIndex()) return false; if (hasIndex()) { - if (!getIndex().equals(other.getIndex())) return false; + if (!getIndex() + .equals(other.getIndex())) return false; } if (hasRequestIndex() != other.hasRequestIndex()) return false; if (hasRequestIndex()) { - if (getRequestIndex() != other.getRequestIndex()) return false; + if (getRequestIndex() + != other.getRequestIndex()) return false; } - if (!getRowList().equals(other.getRowList())) return false; + if (!getRowList() + .equals(other.getRowList())) return false; if (hasRowType() != other.hasRowType()) return false; if (hasRowType()) { - if (!getRowType().equals(other.getRowType())) return false; + if (!getRowType() + .equals(other.getRowType())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -454,127 +407,120 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.ReadResult parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.ReadResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReadResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ReadResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReadResult 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.ReadResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReadResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.ReadResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ReadResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ReadResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ReadResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ReadResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ReadResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ReadResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.ReadResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * ReadResult contains rows read. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ReadResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ReadResult) com.google.spanner.executor.v1.ReadResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadResult_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ReadResult.class, - com.google.spanner.executor.v1.ReadResult.Builder.class); + com.google.spanner.executor.v1.ReadResult.class, com.google.spanner.executor.v1.ReadResult.Builder.class); } // Construct using com.google.spanner.executor.v1.ReadResult.newBuilder() @@ -582,18 +528,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRowFieldBuilder(); getRowTypeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -617,9 +563,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReadResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReadResult_descriptor; } @java.lang.Override @@ -638,12 +584,9 @@ public com.google.spanner.executor.v1.ReadResult build() { @java.lang.Override public com.google.spanner.executor.v1.ReadResult buildPartial() { - com.google.spanner.executor.v1.ReadResult result = - new com.google.spanner.executor.v1.ReadResult(this); + com.google.spanner.executor.v1.ReadResult result = new com.google.spanner.executor.v1.ReadResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -675,7 +618,9 @@ private void buildPartial0(com.google.spanner.executor.v1.ReadResult result) { to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.rowType_ = rowTypeBuilder_ == null ? rowType_ : rowTypeBuilder_.build(); + result.rowType_ = rowTypeBuilder_ == null + ? rowType_ + : rowTypeBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -685,39 +630,38 @@ private void buildPartial0(com.google.spanner.executor.v1.ReadResult result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ReadResult) { - return mergeFrom((com.google.spanner.executor.v1.ReadResult) other); + return mergeFrom((com.google.spanner.executor.v1.ReadResult)other); } else { super.mergeFrom(other); return this; @@ -757,10 +701,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.ReadResult other) { rowBuilder_ = null; row_ = other.row_; bitField0_ = (bitField0_ & ~0x00000008); - rowBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowFieldBuilder() - : null; + rowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowFieldBuilder() : null; } else { rowBuilder_.addAllMessages(other.row_); } @@ -795,50 +738,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - index_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - requestIndex_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - com.google.spanner.executor.v1.ValueList m = - input.readMessage( - com.google.spanner.executor.v1.ValueList.parser(), extensionRegistry); - if (rowBuilder_ == null) { - ensureRowIsMutable(); - row_.add(m); - } else { - rowBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getRowTypeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + index_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + requestIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + com.google.spanner.executor.v1.ValueList m = + input.readMessage( + com.google.spanner.executor.v1.ValueList.parser(), + extensionRegistry); + if (rowBuilder_ == null) { + ensureRowIsMutable(); + row_.add(m); + } else { + rowBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getRowTypeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -848,25 +788,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object table_ = ""; /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -875,21 +812,20 @@ public java.lang.String getTable() { } } /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -897,35 +833,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @return This builder for chaining. */ public Builder clearTable() { @@ -935,21 +864,17 @@ public Builder clearTable() { return this; } /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @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(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -959,34 +884,29 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { private java.lang.Object index_ = ""; /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return Whether the index field is set. */ public boolean hasIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; @@ -995,21 +915,20 @@ public java.lang.String getIndex() { } } /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return The bytes for index. */ - public com.google.protobuf.ByteString getIndexBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); index_ = b; return b; } else { @@ -1017,35 +936,28 @@ public com.google.protobuf.ByteString getIndexBytes() { } } /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @param value The index to set. * @return This builder for chaining. */ - public Builder setIndex(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIndex( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } index_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return This builder for chaining. */ public Builder clearIndex() { @@ -1055,21 +967,17 @@ public Builder clearIndex() { return this; } /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @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(); - } + public Builder setIndexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); index_ = value; bitField0_ |= 0x00000002; @@ -1077,16 +985,13 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { return this; } - private int requestIndex_; + private int requestIndex_ ; /** - * - * * <pre> * Request index (multiread only). * </pre> * * <code>optional int32 request_index = 3;</code> - * * @return Whether the requestIndex field is set. */ @java.lang.Override @@ -1094,14 +999,11 @@ public boolean hasRequestIndex() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Request index (multiread only). * </pre> * * <code>optional int32 request_index = 3;</code> - * * @return The requestIndex. */ @java.lang.Override @@ -1109,14 +1011,11 @@ public int getRequestIndex() { return requestIndex_; } /** - * - * * <pre> * Request index (multiread only). * </pre> * * <code>optional int32 request_index = 3;</code> - * * @param value The requestIndex to set. * @return This builder for chaining. */ @@ -1128,14 +1027,11 @@ public Builder setRequestIndex(int value) { return this; } /** - * - * * <pre> * Request index (multiread only). * </pre> * * <code>optional int32 request_index = 3;</code> - * * @return This builder for chaining. */ public Builder clearRequestIndex() { @@ -1146,24 +1042,18 @@ public Builder clearRequestIndex() { } private java.util.List<com.google.spanner.executor.v1.ValueList> row_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRowIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { row_ = new java.util.ArrayList<com.google.spanner.executor.v1.ValueList>(row_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> - rowBuilder_; + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> rowBuilder_; /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1179,8 +1069,6 @@ public java.util.List<com.google.spanner.executor.v1.ValueList> getRowList() { } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1196,8 +1084,6 @@ public int getRowCount() { } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1213,8 +1099,6 @@ public com.google.spanner.executor.v1.ValueList getRow(int index) { } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1222,7 +1106,8 @@ public com.google.spanner.executor.v1.ValueList getRow(int index) { * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - public Builder setRow(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder setRow( + int index, com.google.spanner.executor.v1.ValueList value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1236,8 +1121,6 @@ public Builder setRow(int index, com.google.spanner.executor.v1.ValueList value) return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1257,8 +1140,6 @@ public Builder setRow( return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1280,8 +1161,6 @@ public Builder addRow(com.google.spanner.executor.v1.ValueList value) { return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1289,7 +1168,8 @@ public Builder addRow(com.google.spanner.executor.v1.ValueList value) { * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - public Builder addRow(int index, com.google.spanner.executor.v1.ValueList value) { + public Builder addRow( + int index, com.google.spanner.executor.v1.ValueList value) { if (rowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1303,8 +1183,6 @@ public Builder addRow(int index, com.google.spanner.executor.v1.ValueList value) return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1312,7 +1190,8 @@ public Builder addRow(int index, com.google.spanner.executor.v1.ValueList value) * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - public Builder addRow(com.google.spanner.executor.v1.ValueList.Builder builderForValue) { + public Builder addRow( + com.google.spanner.executor.v1.ValueList.Builder builderForValue) { if (rowBuilder_ == null) { ensureRowIsMutable(); row_.add(builderForValue.build()); @@ -1323,8 +1202,6 @@ public Builder addRow(com.google.spanner.executor.v1.ValueList.Builder builderFo return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1344,8 +1221,6 @@ public Builder addRow( return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1357,7 +1232,8 @@ public Builder addAllRow( java.lang.Iterable<? extends com.google.spanner.executor.v1.ValueList> values) { if (rowBuilder_ == null) { ensureRowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, row_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, row_); onChanged(); } else { rowBuilder_.addAllMessages(values); @@ -1365,8 +1241,6 @@ public Builder addAllRow( return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1385,8 +1259,6 @@ public Builder clearRow() { return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1405,8 +1277,6 @@ public Builder removeRow(int index) { return this; } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1414,12 +1284,11 @@ public Builder removeRow(int index) { * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder getRowBuilder(int index) { + public com.google.spanner.executor.v1.ValueList.Builder getRowBuilder( + int index) { return getRowFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1427,16 +1296,14 @@ public com.google.spanner.executor.v1.ValueList.Builder getRowBuilder(int index) * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int index) { + public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder( + int index) { if (rowBuilder_ == null) { - return row_.get(index); - } else { + return row_.get(index); } else { return rowBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1444,8 +1311,8 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int ind * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> - getRowOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + getRowOrBuilderList() { if (rowBuilder_ != null) { return rowBuilder_.getMessageOrBuilderList(); } else { @@ -1453,8 +1320,6 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int ind } } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1463,12 +1328,10 @@ public com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int ind * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder() { - return getRowFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + return getRowFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1476,13 +1339,12 @@ public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder() { * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder(int index) { - return getRowFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); + public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder( + int index) { + return getRowFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ValueList.getDefaultInstance()); } /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -1490,22 +1352,20 @@ public com.google.spanner.executor.v1.ValueList.Builder addRowBuilder(int index) * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> getRowBuilderList() { + public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> + getRowBuilderList() { return getRowFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder> + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder> getRowFieldBuilder() { if (rowBuilder_ == null) { - rowBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ValueList, - com.google.spanner.executor.v1.ValueList.Builder, - com.google.spanner.executor.v1.ValueListOrBuilder>( - row_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.ValueList, com.google.spanner.executor.v1.ValueList.Builder, com.google.spanner.executor.v1.ValueListOrBuilder>( + row_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); row_ = null; } return rowBuilder_; @@ -1513,33 +1373,24 @@ public java.util.List<com.google.spanner.executor.v1.ValueList.Builder> getRowBu private com.google.spanner.v1.StructType rowType_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.v1.StructType, - com.google.spanner.v1.StructType.Builder, - com.google.spanner.v1.StructTypeOrBuilder> - rowTypeBuilder_; + com.google.spanner.v1.StructType, com.google.spanner.v1.StructType.Builder, com.google.spanner.v1.StructTypeOrBuilder> rowTypeBuilder_; /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 5;</code> - * * @return Whether the rowType field is set. */ public boolean hasRowType() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 5;</code> - * * @return The rowType. */ public com.google.spanner.v1.StructType getRowType() { @@ -1550,8 +1401,6 @@ public com.google.spanner.v1.StructType getRowType() { } } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1572,15 +1421,14 @@ public Builder setRowType(com.google.spanner.v1.StructType value) { return this; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 5;</code> */ - public Builder setRowType(com.google.spanner.v1.StructType.Builder builderForValue) { + public Builder setRowType( + com.google.spanner.v1.StructType.Builder builderForValue) { if (rowTypeBuilder_ == null) { rowType_ = builderForValue.build(); } else { @@ -1591,8 +1439,6 @@ public Builder setRowType(com.google.spanner.v1.StructType.Builder builderForVal return this; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1601,9 +1447,9 @@ public Builder setRowType(com.google.spanner.v1.StructType.Builder builderForVal */ public Builder mergeRowType(com.google.spanner.v1.StructType value) { if (rowTypeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && rowType_ != null - && rowType_ != com.google.spanner.v1.StructType.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + rowType_ != null && + rowType_ != com.google.spanner.v1.StructType.getDefaultInstance()) { getRowTypeBuilder().mergeFrom(value); } else { rowType_ = value; @@ -1616,8 +1462,6 @@ public Builder mergeRowType(com.google.spanner.v1.StructType value) { return this; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1635,8 +1479,6 @@ public Builder clearRowType() { return this; } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1649,8 +1491,6 @@ public com.google.spanner.v1.StructType.Builder getRowTypeBuilder() { return getRowTypeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1661,12 +1501,11 @@ public com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() { if (rowTypeBuilder_ != null) { return rowTypeBuilder_.getMessageOrBuilder(); } else { - return rowType_ == null ? com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; + return rowType_ == null ? + com.google.spanner.v1.StructType.getDefaultInstance() : rowType_; } } /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> @@ -1674,24 +1513,21 @@ public com.google.spanner.v1.StructTypeOrBuilder getRowTypeOrBuilder() { * <code>optional .google.spanner.v1.StructType row_type = 5;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.v1.StructType, - com.google.spanner.v1.StructType.Builder, - com.google.spanner.v1.StructTypeOrBuilder> + com.google.spanner.v1.StructType, com.google.spanner.v1.StructType.Builder, com.google.spanner.v1.StructTypeOrBuilder> getRowTypeFieldBuilder() { if (rowTypeBuilder_ == null) { - rowTypeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.v1.StructType, - com.google.spanner.v1.StructType.Builder, - com.google.spanner.v1.StructTypeOrBuilder>( - getRowType(), getParentForChildren(), isClean()); + rowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.v1.StructType, com.google.spanner.v1.StructType.Builder, com.google.spanner.v1.StructTypeOrBuilder>( + getRowType(), + getParentForChildren(), + isClean()); rowType_ = null; } return rowTypeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1701,12 +1537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ReadResult) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ReadResult) private static final com.google.spanner.executor.v1.ReadResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ReadResult(); } @@ -1715,27 +1551,27 @@ public static com.google.spanner.executor.v1.ReadResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ReadResult> PARSER = - new com.google.protobuf.AbstractParser<ReadResult>() { - @java.lang.Override - public ReadResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ReadResult> + PARSER = new com.google.protobuf.AbstractParser<ReadResult>() { + @java.lang.Override + public ReadResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ReadResult> parser() { return PARSER; @@ -1750,4 +1586,6 @@ public com.google.protobuf.Parser<ReadResult> getParserForType() { public com.google.spanner.executor.v1.ReadResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java similarity index 77% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java index 776a79a81be..a3d63d35e72 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReadResultOrBuilder.java @@ -1,118 +1,81 @@ -/* - * 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 interface ReadResultOrBuilder - extends +public interface ReadResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ReadResult) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @return The table. */ java.lang.String getTable(); /** - * - * * <pre> * Table name. * </pre> * * <code>string table = 1;</code> - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return Whether the index field is set. */ boolean hasIndex(); /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return The index. */ java.lang.String getIndex(); /** - * - * * <pre> * Index name, if read from an index. * </pre> * * <code>optional string index = 2;</code> - * * @return The bytes for index. */ - com.google.protobuf.ByteString getIndexBytes(); + com.google.protobuf.ByteString + getIndexBytes(); /** - * - * * <pre> * Request index (multiread only). * </pre> * * <code>optional int32 request_index = 3;</code> - * * @return Whether the requestIndex field is set. */ boolean hasRequestIndex(); /** - * - * * <pre> * Request index (multiread only). * </pre> * * <code>optional int32 request_index = 3;</code> - * * @return The requestIndex. */ int getRequestIndex(); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -120,10 +83,9 @@ public interface ReadResultOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - java.util.List<com.google.spanner.executor.v1.ValueList> getRowList(); + java.util.List<com.google.spanner.executor.v1.ValueList> + getRowList(); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -133,8 +95,6 @@ public interface ReadResultOrBuilder */ com.google.spanner.executor.v1.ValueList getRow(int index); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -144,8 +104,6 @@ public interface ReadResultOrBuilder */ int getRowCount(); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -153,10 +111,9 @@ public interface ReadResultOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> getRowOrBuilderList(); + java.util.List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> + getRowOrBuilderList(); /** - * - * * <pre> * Rows read. Each row is a struct with multiple fields, one for each column * in read result. All rows have the same type. @@ -164,35 +121,28 @@ public interface ReadResultOrBuilder * * <code>repeated .google.spanner.executor.v1.ValueList row = 4;</code> */ - com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder(int index); + com.google.spanner.executor.v1.ValueListOrBuilder getRowOrBuilder( + int index); /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 5;</code> - * * @return Whether the rowType field is set. */ boolean hasRowType(); /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> * * <code>optional .google.spanner.v1.StructType row_type = 5;</code> - * * @return The rowType. */ com.google.spanner.v1.StructType getRowType(); /** - * - * * <pre> * The type of rows read. It must be set if at least one row was read. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java index 9a4193791d0..7fff5c5e9c1 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseAction.java @@ -1,83 +1,60 @@ -/* - * 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; /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ReconfigureCloudDatabaseAction} */ -public final class ReconfigureCloudDatabaseAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReconfigureCloudDatabaseAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ReconfigureCloudDatabaseAction) ReconfigureCloudDatabaseActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReconfigureCloudDatabaseAction.newBuilder() to construct. - private ReconfigureCloudDatabaseAction( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private ReconfigureCloudDatabaseAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ReconfigureCloudDatabaseAction() { databaseUri_ = ""; - servingLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + servingLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReconfigureCloudDatabaseAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.class, - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder.class); + com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.class, com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder.class); } private int bitField0_; public static final int DATABASE_URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object databaseUri_ = ""; /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return Whether the databaseUri field is set. */ @java.lang.Override @@ -85,14 +62,11 @@ public boolean hasDatabaseUri() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return The databaseUri. */ @java.lang.Override @@ -101,29 +75,29 @@ public java.lang.String getDatabaseUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseUri_ = s; return s; } } /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return The bytes for databaseUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseUriBytes() { + public com.google.protobuf.ByteString + getDatabaseUriBytes() { java.lang.Object ref = databaseUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseUri_ = b; return b; } else { @@ -132,47 +106,38 @@ public com.google.protobuf.ByteString getDatabaseUriBytes() { } public static final int SERVING_LOCATIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList servingLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @return A list containing the servingLocations. */ - public com.google.protobuf.ProtocolStringList getServingLocationsList() { + public com.google.protobuf.ProtocolStringList + getServingLocationsList() { return servingLocations_; } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @return The count of servingLocations. */ public int getServingLocationsCount() { return servingLocations_.size(); } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param index The index of the element to return. * @return The servingLocations at the given index. */ @@ -180,23 +145,20 @@ public java.lang.String getServingLocations(int index) { return servingLocations_.get(index); } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param index The index of the value to return. * @return The bytes of the servingLocations at the given index. */ - public com.google.protobuf.ByteString getServingLocationsBytes(int index) { + public com.google.protobuf.ByteString + getServingLocationsBytes(int index) { return servingLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, databaseUri_); } @@ -243,19 +206,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction other = - (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) obj; + com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction other = (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) obj; if (hasDatabaseUri() != other.hasDatabaseUri()) return false; if (hasDatabaseUri()) { - if (!getDatabaseUri().equals(other.getDatabaseUri())) return false; + if (!getDatabaseUri() + .equals(other.getDatabaseUri())) return false; } - if (!getServingLocationsList().equals(other.getServingLocationsList())) return false; + if (!getServingLocationsList() + .equals(other.getServingLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -281,154 +245,149 @@ public int hashCode() { } public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ReconfigureCloudDatabaseAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction 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.ReconfigureCloudDatabaseAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that reconfigures a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.ReconfigureCloudDatabaseAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.ReconfigureCloudDatabaseAction) com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.class, - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder.class); + com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.class, com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder.class); } // Construct using com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; databaseUri_ = ""; - servingLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + servingLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor; } @java.lang.Override - public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction - getDefaultInstanceForType() { + public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction getDefaultInstanceForType() { return com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance(); } @@ -443,17 +402,13 @@ public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction build() { @java.lang.Override public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction buildPartial() { - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction result = - new com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction result = new com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction result) { + private void buildPartial0(com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -471,39 +426,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) { - return mergeFrom((com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) other); + return mergeFrom((com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction)other); } else { super.mergeFrom(other); return this; @@ -511,9 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction other) { - if (other - == com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance()) return this; if (other.hasDatabaseUri()) { databaseUri_ = other.databaseUri_; bitField0_ |= 0x00000001; @@ -555,26 +507,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - databaseUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServingLocationsIsMutable(); - servingLocations_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + databaseUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServingLocationsIsMutable(); + servingLocations_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -584,39 +533,33 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object databaseUri_ = ""; /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return Whether the databaseUri field is set. */ public boolean hasDatabaseUri() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return The databaseUri. */ public java.lang.String getDatabaseUri() { java.lang.Object ref = databaseUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseUri_ = s; return s; @@ -625,21 +568,20 @@ public java.lang.String getDatabaseUri() { } } /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return The bytes for databaseUri. */ - public com.google.protobuf.ByteString getDatabaseUriBytes() { + public com.google.protobuf.ByteString + getDatabaseUriBytes() { java.lang.Object ref = databaseUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseUri_ = b; return b; } else { @@ -647,35 +589,28 @@ public com.google.protobuf.ByteString getDatabaseUriBytes() { } } /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @param value The databaseUri to set. * @return This builder for chaining. */ - public Builder setDatabaseUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseUri() { @@ -685,21 +620,17 @@ public Builder clearDatabaseUri() { return this; } /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @param value The bytes for databaseUri to set. * @return This builder for chaining. */ - public Builder setDatabaseUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseUri_ = value; bitField0_ |= 0x00000001; @@ -709,7 +640,6 @@ public Builder setDatabaseUriBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList servingLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureServingLocationsIsMutable() { if (!servingLocations_.isModifiable()) { servingLocations_ = new com.google.protobuf.LazyStringArrayList(servingLocations_); @@ -717,43 +647,35 @@ private void ensureServingLocationsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @return A list containing the servingLocations. */ - public com.google.protobuf.ProtocolStringList getServingLocationsList() { + public com.google.protobuf.ProtocolStringList + getServingLocationsList() { servingLocations_.makeImmutable(); return servingLocations_; } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @return The count of servingLocations. */ public int getServingLocationsCount() { return servingLocations_.size(); } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param index The index of the element to return. * @return The servingLocations at the given index. */ @@ -761,37 +683,31 @@ public java.lang.String getServingLocations(int index) { return servingLocations_.get(index); } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param index The index of the value to return. * @return The bytes of the servingLocations at the given index. */ - public com.google.protobuf.ByteString getServingLocationsBytes(int index) { + public com.google.protobuf.ByteString + getServingLocationsBytes(int index) { return servingLocations_.getByteString(index); } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param index The index to set the value at. * @param value The servingLocations to set. * @return This builder for chaining. */ - public Builder setServingLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServingLocations( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServingLocationsIsMutable(); servingLocations_.set(index, value); bitField0_ |= 0x00000002; @@ -799,21 +715,17 @@ public Builder setServingLocations(int index, java.lang.String value) { return this; } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param value The servingLocations to add. * @return This builder for chaining. */ - public Builder addServingLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServingLocations( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServingLocationsIsMutable(); servingLocations_.add(value); bitField0_ |= 0x00000002; @@ -821,58 +733,50 @@ public Builder addServingLocations(java.lang.String value) { return this; } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param values The servingLocations to add. * @return This builder for chaining. */ - public Builder addAllServingLocations(java.lang.Iterable<java.lang.String> values) { + public Builder addAllServingLocations( + java.lang.Iterable<java.lang.String> values) { ensureServingLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, servingLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, servingLocations_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @return This builder for chaining. */ public Builder clearServingLocations() { - servingLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + servingLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param value The bytes of the servingLocations to add. * @return This builder for chaining. */ - public Builder addServingLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServingLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServingLocationsIsMutable(); servingLocations_.add(value); @@ -880,9 +784,9 @@ public Builder addServingLocationsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,13 +796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ReconfigureCloudDatabaseAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ReconfigureCloudDatabaseAction) - private static final com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction - DEFAULT_INSTANCE; - + private static final com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction(); } @@ -907,27 +810,27 @@ public static com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ReconfigureCloudDatabaseAction> PARSER = - new com.google.protobuf.AbstractParser<ReconfigureCloudDatabaseAction>() { - @java.lang.Override - public ReconfigureCloudDatabaseAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ReconfigureCloudDatabaseAction> + PARSER = new com.google.protobuf.AbstractParser<ReconfigureCloudDatabaseAction>() { + @java.lang.Override + public ReconfigureCloudDatabaseAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ReconfigureCloudDatabaseAction> parser() { return PARSER; @@ -942,4 +845,6 @@ public com.google.protobuf.Parser<ReconfigureCloudDatabaseAction> getParserForTy public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java index 3faad5b6f92..5c04eed3cce 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ReconfigureCloudDatabaseActionOrBuilder.java @@ -1,113 +1,79 @@ -/* - * 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 interface ReconfigureCloudDatabaseActionOrBuilder - extends +public interface ReconfigureCloudDatabaseActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ReconfigureCloudDatabaseAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return Whether the databaseUri field is set. */ boolean hasDatabaseUri(); /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return The databaseUri. */ java.lang.String getDatabaseUri(); /** - * - * * <pre> * The fully qualified uri of the database to be reconfigured. * </pre> * * <code>optional string database_uri = 1;</code> - * * @return The bytes for databaseUri. */ - com.google.protobuf.ByteString getDatabaseUriBytes(); + com.google.protobuf.ByteString + getDatabaseUriBytes(); /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @return A list containing the servingLocations. */ - java.util.List<java.lang.String> getServingLocationsList(); + java.util.List<java.lang.String> + getServingLocationsList(); /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @return The count of servingLocations. */ int getServingLocationsCount(); /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param index The index of the element to return. * @return The servingLocations at the given index. */ java.lang.String getServingLocations(int index); /** - * - * * <pre> * The locations of the serving regions, e.g. "asia-south1". * </pre> * * <code>repeated string serving_locations = 2;</code> - * * @param index The index of the value to return. * @return The bytes of the servingLocations at the given index. */ - com.google.protobuf.ByteString getServingLocationsBytes(int index); + com.google.protobuf.ByteString + getServingLocationsBytes(int index); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java similarity index 71% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java index 29b08596e0d..981b1bc2d0d 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.RestoreCloudDatabaseAction} */ -public final class RestoreCloudDatabaseAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RestoreCloudDatabaseAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.RestoreCloudDatabaseAction) RestoreCloudDatabaseActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RestoreCloudDatabaseAction.newBuilder() to construct. private RestoreCloudDatabaseAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private RestoreCloudDatabaseAction() { projectId_ = ""; backupInstanceId_ = ""; @@ -47,38 +29,33 @@ private RestoreCloudDatabaseAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RestoreCloudDatabaseAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.RestoreCloudDatabaseAction.class, - com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder.class); + com.google.spanner.executor.v1.RestoreCloudDatabaseAction.class, com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -87,29 +64,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -118,18 +95,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int BACKUP_INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object backupInstanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @return The backupInstanceId. */ @java.lang.Override @@ -138,29 +111,29 @@ public java.lang.String getBackupInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupInstanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @return The bytes for backupInstanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupInstanceIdBytes() { + public com.google.protobuf.ByteString + getBackupInstanceIdBytes() { java.lang.Object ref = backupInstanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupInstanceId_ = b; return b; } else { @@ -169,18 +142,14 @@ public com.google.protobuf.ByteString getBackupInstanceIdBytes() { } public static final int BACKUP_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ @java.lang.Override @@ -189,29 +158,29 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -220,19 +189,15 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } public static final int DATABASE_INSTANCE_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object databaseInstanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @return The databaseInstanceId. */ @java.lang.Override @@ -241,30 +206,30 @@ public java.lang.String getDatabaseInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseInstanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @return The bytes for databaseInstanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseInstanceIdBytes() { + public com.google.protobuf.ByteString + getDatabaseInstanceIdBytes() { java.lang.Object ref = databaseInstanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseInstanceId_ = b; return b; } else { @@ -273,19 +238,15 @@ public com.google.protobuf.ByteString getDatabaseInstanceIdBytes() { } public static final int DATABASE_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @return The databaseId. */ @java.lang.Override @@ -294,30 +255,30 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -326,7 +287,6 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +298,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -386,19 +347,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.RestoreCloudDatabaseAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.RestoreCloudDatabaseAction other = - (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getBackupInstanceId().equals(other.getBackupInstanceId())) return false; - if (!getBackupId().equals(other.getBackupId())) return false; - if (!getDatabaseInstanceId().equals(other.getDatabaseInstanceId())) return false; - if (!getDatabaseId().equals(other.getDatabaseId())) return false; + com.google.spanner.executor.v1.RestoreCloudDatabaseAction other = (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getBackupInstanceId() + .equals(other.getBackupInstanceId())) return false; + if (!getBackupId() + .equals(other.getBackupId())) return false; + if (!getDatabaseInstanceId() + .equals(other.getDatabaseInstanceId())) return false; + if (!getDatabaseId() + .equals(other.getDatabaseId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -426,136 +391,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RestoreCloudDatabaseAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction 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.RestoreCloudDatabaseAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.RestoreCloudDatabaseAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.RestoreCloudDatabaseAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that restores a Cloud Spanner database from a backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.RestoreCloudDatabaseAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.RestoreCloudDatabaseAction) com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.RestoreCloudDatabaseAction.class, - com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder.class); + com.google.spanner.executor.v1.RestoreCloudDatabaseAction.class, com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder.class); } // Construct using com.google.spanner.executor.v1.RestoreCloudDatabaseAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor; } @java.lang.Override @@ -590,11 +550,8 @@ public com.google.spanner.executor.v1.RestoreCloudDatabaseAction build() { @java.lang.Override public com.google.spanner.executor.v1.RestoreCloudDatabaseAction buildPartial() { - com.google.spanner.executor.v1.RestoreCloudDatabaseAction result = - new com.google.spanner.executor.v1.RestoreCloudDatabaseAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.RestoreCloudDatabaseAction result = new com.google.spanner.executor.v1.RestoreCloudDatabaseAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -622,39 +579,38 @@ private void buildPartial0(com.google.spanner.executor.v1.RestoreCloudDatabaseAc public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.RestoreCloudDatabaseAction) { - return mergeFrom((com.google.spanner.executor.v1.RestoreCloudDatabaseAction) other); + return mergeFrom((com.google.spanner.executor.v1.RestoreCloudDatabaseAction)other); } else { super.mergeFrom(other); return this; @@ -662,8 +618,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.RestoreCloudDatabaseAction other) { - if (other == com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -715,43 +670,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - backupInstanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - databaseInstanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - databaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + backupInstanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + databaseInstanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -761,25 +710,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -788,21 +734,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -810,35 +755,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -848,21 +786,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -872,20 +806,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupInstanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @return The backupInstanceId. */ public java.lang.String getBackupInstanceId() { java.lang.Object ref = backupInstanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupInstanceId_ = s; return s; @@ -894,21 +826,20 @@ public java.lang.String getBackupInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @return The bytes for backupInstanceId. */ - public com.google.protobuf.ByteString getBackupInstanceIdBytes() { + public com.google.protobuf.ByteString + getBackupInstanceIdBytes() { java.lang.Object ref = backupInstanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupInstanceId_ = b; return b; } else { @@ -916,35 +847,28 @@ public com.google.protobuf.ByteString getBackupInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @param value The backupInstanceId to set. * @return This builder for chaining. */ - public Builder setBackupInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupInstanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearBackupInstanceId() { @@ -954,21 +878,17 @@ public Builder clearBackupInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @param value The bytes for backupInstanceId to set. * @return This builder for chaining. */ - public Builder setBackupInstanceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backupInstanceId_ = value; bitField0_ |= 0x00000002; @@ -978,20 +898,18 @@ public Builder setBackupInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -1000,21 +918,20 @@ public java.lang.String getBackupId() { } } /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -1022,35 +939,28 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearBackupId() { @@ -1060,21 +970,17 @@ public Builder clearBackupId() { return this; } /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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(); - } + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backupId_ = value; bitField0_ |= 0x00000004; @@ -1084,21 +990,19 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseInstanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @return The databaseInstanceId. */ public java.lang.String getDatabaseInstanceId() { java.lang.Object ref = databaseInstanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseInstanceId_ = s; return s; @@ -1107,22 +1011,21 @@ public java.lang.String getDatabaseInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @return The bytes for databaseInstanceId. */ - public com.google.protobuf.ByteString getDatabaseInstanceIdBytes() { + public com.google.protobuf.ByteString + getDatabaseInstanceIdBytes() { java.lang.Object ref = databaseInstanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseInstanceId_ = b; return b; } else { @@ -1130,37 +1033,30 @@ public com.google.protobuf.ByteString getDatabaseInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @param value The databaseInstanceId to set. * @return This builder for chaining. */ - public Builder setDatabaseInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseInstanceId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseInstanceId() { @@ -1170,22 +1066,18 @@ public Builder clearDatabaseInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @param value The bytes for databaseInstanceId to set. * @return This builder for chaining. */ - public Builder setDatabaseInstanceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseInstanceId_ = value; bitField0_ |= 0x00000008; @@ -1195,21 +1087,19 @@ public Builder setDatabaseInstanceIdBytes(com.google.protobuf.ByteString value) private java.lang.Object databaseId_ = ""; /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -1218,22 +1108,21 @@ public java.lang.String getDatabaseId() { } } /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -1241,37 +1130,30 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } } /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseId() { @@ -1281,31 +1163,27 @@ public Builder clearDatabaseId() { return this; } /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @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(); - } + public Builder setDatabaseIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1315,12 +1193,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.RestoreCloudDatabaseAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.RestoreCloudDatabaseAction) private static final com.google.spanner.executor.v1.RestoreCloudDatabaseAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.RestoreCloudDatabaseAction(); } @@ -1329,27 +1207,27 @@ public static com.google.spanner.executor.v1.RestoreCloudDatabaseAction getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<RestoreCloudDatabaseAction> PARSER = - new com.google.protobuf.AbstractParser<RestoreCloudDatabaseAction>() { - @java.lang.Override - public RestoreCloudDatabaseAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<RestoreCloudDatabaseAction> + PARSER = new com.google.protobuf.AbstractParser<RestoreCloudDatabaseAction>() { + @java.lang.Override + public RestoreCloudDatabaseAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<RestoreCloudDatabaseAction> parser() { return PARSER; @@ -1364,4 +1242,6 @@ public com.google.protobuf.Parser<RestoreCloudDatabaseAction> getParserForType() public com.google.spanner.executor.v1.RestoreCloudDatabaseAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java similarity index 69% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java index 0630ed25a4f..a0069cdfe9b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/RestoreCloudDatabaseActionOrBuilder.java @@ -1,154 +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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/spanner/executor/v1/cloud_executor.proto package com.google.spanner.executor.v1; -public interface RestoreCloudDatabaseActionOrBuilder - extends +public interface RestoreCloudDatabaseActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.RestoreCloudDatabaseAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @return The backupInstanceId. */ java.lang.String getBackupInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path) containing the backup, e.g. "backup-instance". * </pre> * * <code>string backup_instance_id = 2;</code> - * * @return The bytes for backupInstanceId. */ - com.google.protobuf.ByteString getBackupInstanceIdBytes(); + com.google.protobuf.ByteString + getBackupInstanceIdBytes(); /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * * <pre> * The id of the backup from which to restore, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @return The databaseInstanceId. */ java.lang.String getDatabaseInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path) containing the database, e.g. * "database-instance". * </pre> * * <code>string database_instance_id = 4;</code> - * * @return The bytes for databaseInstanceId. */ - com.google.protobuf.ByteString getDatabaseInstanceIdBytes(); + com.google.protobuf.ByteString + getDatabaseInstanceIdBytes(); /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @return The databaseId. */ java.lang.String getDatabaseId(); /** - * - * * <pre> * The id of the database to create and restore to, e.g. "db0". Note that this * database must not already exist. * </pre> * * <code>string database_id = 5;</code> - * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString getDatabaseIdBytes(); + com.google.protobuf.ByteString + getDatabaseIdBytes(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java similarity index 71% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java index 93900be1ff0..5415d56e146 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * SpannerAction defines a primitive action that can be performed against * Spanner, such as begin or commit a transaction, or perform a read or @@ -29,49 +12,44 @@ * * Protobuf type {@code google.spanner.executor.v1.SpannerAction} */ -public final class SpannerAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpannerAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.SpannerAction) SpannerActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpannerAction.newBuilder() to construct. private SpannerAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private SpannerAction() { databasePath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpannerAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.SpannerAction.class, - com.google.spanner.executor.v1.SpannerAction.Builder.class); + com.google.spanner.executor.v1.SpannerAction.class, com.google.spanner.executor.v1.SpannerAction.Builder.class); } private int actionCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object action_; - public enum ActionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { START(10), FINISH(11), @@ -91,7 +69,6 @@ public enum ActionCase EXECUTE_CHANGE_STREAM_QUERY(50), ACTION_NOT_SET(0); private final int value; - private ActionCase(int value) { this.value = value; } @@ -107,61 +84,41 @@ public static ActionCase valueOf(int value) { public static ActionCase forNumber(int value) { switch (value) { - case 10: - return START; - case 11: - return FINISH; - case 20: - return READ; - case 21: - return QUERY; - case 22: - return MUTATION; - case 23: - return DML; - case 24: - return BATCH_DML; - case 25: - return WRITE; - case 27: - return PARTITIONED_UPDATE; - case 30: - return ADMIN; - case 40: - return START_BATCH_TXN; - case 41: - return CLOSE_BATCH_TXN; - case 42: - return GENERATE_DB_PARTITIONS_READ; - case 43: - return GENERATE_DB_PARTITIONS_QUERY; - case 44: - return EXECUTE_PARTITION; - case 50: - return EXECUTE_CHANGE_STREAM_QUERY; - case 0: - return ACTION_NOT_SET; - default: - return null; + case 10: return START; + case 11: return FINISH; + case 20: return READ; + case 21: return QUERY; + case 22: return MUTATION; + case 23: return DML; + case 24: return BATCH_DML; + case 25: return WRITE; + case 27: return PARTITIONED_UPDATE; + case 30: return ADMIN; + case 40: return START_BATCH_TXN; + case 41: return CLOSE_BATCH_TXN; + case 42: return GENERATE_DB_PARTITIONS_READ; + case 43: return GENERATE_DB_PARTITIONS_QUERY; + case 44: return EXECUTE_PARTITION; + case 50: return EXECUTE_CHANGE_STREAM_QUERY; + case 0: return ACTION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + public ActionCase + getActionCase() { + return ActionCase.forNumber( + actionCase_); } public static final int DATABASE_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object databasePath_ = ""; /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -169,7 +126,6 @@ public ActionCase getActionCase() { * </pre> * * <code>string database_path = 1;</code> - * * @return The databasePath. */ @java.lang.Override @@ -178,15 +134,14 @@ public java.lang.String getDatabasePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databasePath_ = s; return s; } } /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -194,15 +149,16 @@ public java.lang.String getDatabasePath() { * </pre> * * <code>string database_path = 1;</code> - * * @return The bytes for databasePath. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabasePathBytes() { + public com.google.protobuf.ByteString + getDatabasePathBytes() { java.lang.Object ref = databasePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databasePath_ = b; return b; } else { @@ -212,14 +168,11 @@ public com.google.protobuf.ByteString getDatabasePathBytes() { public static final int START_FIELD_NUMBER = 10; /** - * - * * <pre> * Action to start a transaction. * </pre> * * <code>.google.spanner.executor.v1.StartTransactionAction start = 10;</code> - * * @return Whether the start field is set. */ @java.lang.Override @@ -227,26 +180,21 @@ public boolean hasStart() { return actionCase_ == 10; } /** - * - * * <pre> * Action to start a transaction. * </pre> * * <code>.google.spanner.executor.v1.StartTransactionAction start = 10;</code> - * * @return The start. */ @java.lang.Override public com.google.spanner.executor.v1.StartTransactionAction getStart() { if (actionCase_ == 10) { - return (com.google.spanner.executor.v1.StartTransactionAction) action_; + return (com.google.spanner.executor.v1.StartTransactionAction) action_; } return com.google.spanner.executor.v1.StartTransactionAction.getDefaultInstance(); } /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -256,21 +204,18 @@ public com.google.spanner.executor.v1.StartTransactionAction getStart() { @java.lang.Override public com.google.spanner.executor.v1.StartTransactionActionOrBuilder getStartOrBuilder() { if (actionCase_ == 10) { - return (com.google.spanner.executor.v1.StartTransactionAction) action_; + return (com.google.spanner.executor.v1.StartTransactionAction) action_; } return com.google.spanner.executor.v1.StartTransactionAction.getDefaultInstance(); } public static final int FINISH_FIELD_NUMBER = 11; /** - * - * * <pre> * Action to finish a transaction. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction finish = 11;</code> - * * @return Whether the finish field is set. */ @java.lang.Override @@ -278,26 +223,21 @@ public boolean hasFinish() { return actionCase_ == 11; } /** - * - * * <pre> * Action to finish a transaction. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction finish = 11;</code> - * * @return The finish. */ @java.lang.Override public com.google.spanner.executor.v1.FinishTransactionAction getFinish() { if (actionCase_ == 11) { - return (com.google.spanner.executor.v1.FinishTransactionAction) action_; + return (com.google.spanner.executor.v1.FinishTransactionAction) action_; } return com.google.spanner.executor.v1.FinishTransactionAction.getDefaultInstance(); } /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -307,21 +247,18 @@ public com.google.spanner.executor.v1.FinishTransactionAction getFinish() { @java.lang.Override public com.google.spanner.executor.v1.FinishTransactionActionOrBuilder getFinishOrBuilder() { if (actionCase_ == 11) { - return (com.google.spanner.executor.v1.FinishTransactionAction) action_; + return (com.google.spanner.executor.v1.FinishTransactionAction) action_; } return com.google.spanner.executor.v1.FinishTransactionAction.getDefaultInstance(); } public static final int READ_FIELD_NUMBER = 20; /** - * - * * <pre> * Action to do a normal read. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 20;</code> - * * @return Whether the read field is set. */ @java.lang.Override @@ -329,26 +266,21 @@ public boolean hasRead() { return actionCase_ == 20; } /** - * - * * <pre> * Action to do a normal read. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 20;</code> - * * @return The read. */ @java.lang.Override public com.google.spanner.executor.v1.ReadAction getRead() { if (actionCase_ == 20) { - return (com.google.spanner.executor.v1.ReadAction) action_; + return (com.google.spanner.executor.v1.ReadAction) action_; } return com.google.spanner.executor.v1.ReadAction.getDefaultInstance(); } /** - * - * * <pre> * Action to do a normal read. * </pre> @@ -358,21 +290,18 @@ public com.google.spanner.executor.v1.ReadAction getRead() { @java.lang.Override public com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder() { if (actionCase_ == 20) { - return (com.google.spanner.executor.v1.ReadAction) action_; + return (com.google.spanner.executor.v1.ReadAction) action_; } return com.google.spanner.executor.v1.ReadAction.getDefaultInstance(); } public static final int QUERY_FIELD_NUMBER = 21; /** - * - * * <pre> * Action to do a query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 21;</code> - * * @return Whether the query field is set. */ @java.lang.Override @@ -380,26 +309,21 @@ public boolean hasQuery() { return actionCase_ == 21; } /** - * - * * <pre> * Action to do a query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 21;</code> - * * @return The query. */ @java.lang.Override public com.google.spanner.executor.v1.QueryAction getQuery() { if (actionCase_ == 21) { - return (com.google.spanner.executor.v1.QueryAction) action_; + return (com.google.spanner.executor.v1.QueryAction) action_; } return com.google.spanner.executor.v1.QueryAction.getDefaultInstance(); } /** - * - * * <pre> * Action to do a query. * </pre> @@ -409,21 +333,18 @@ public com.google.spanner.executor.v1.QueryAction getQuery() { @java.lang.Override public com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder() { if (actionCase_ == 21) { - return (com.google.spanner.executor.v1.QueryAction) action_; + return (com.google.spanner.executor.v1.QueryAction) action_; } return com.google.spanner.executor.v1.QueryAction.getDefaultInstance(); } public static final int MUTATION_FIELD_NUMBER = 22; /** - * - * * <pre> * Action to buffer a mutation. * </pre> * * <code>.google.spanner.executor.v1.MutationAction mutation = 22;</code> - * * @return Whether the mutation field is set. */ @java.lang.Override @@ -431,26 +352,21 @@ public boolean hasMutation() { return actionCase_ == 22; } /** - * - * * <pre> * Action to buffer a mutation. * </pre> * * <code>.google.spanner.executor.v1.MutationAction mutation = 22;</code> - * * @return The mutation. */ @java.lang.Override public com.google.spanner.executor.v1.MutationAction getMutation() { if (actionCase_ == 22) { - return (com.google.spanner.executor.v1.MutationAction) action_; + return (com.google.spanner.executor.v1.MutationAction) action_; } return com.google.spanner.executor.v1.MutationAction.getDefaultInstance(); } /** - * - * * <pre> * Action to buffer a mutation. * </pre> @@ -460,21 +376,18 @@ public com.google.spanner.executor.v1.MutationAction getMutation() { @java.lang.Override public com.google.spanner.executor.v1.MutationActionOrBuilder getMutationOrBuilder() { if (actionCase_ == 22) { - return (com.google.spanner.executor.v1.MutationAction) action_; + return (com.google.spanner.executor.v1.MutationAction) action_; } return com.google.spanner.executor.v1.MutationAction.getDefaultInstance(); } public static final int DML_FIELD_NUMBER = 23; /** - * - * * <pre> * Action to a DML. * </pre> * * <code>.google.spanner.executor.v1.DmlAction dml = 23;</code> - * * @return Whether the dml field is set. */ @java.lang.Override @@ -482,26 +395,21 @@ public boolean hasDml() { return actionCase_ == 23; } /** - * - * * <pre> * Action to a DML. * </pre> * * <code>.google.spanner.executor.v1.DmlAction dml = 23;</code> - * * @return The dml. */ @java.lang.Override public com.google.spanner.executor.v1.DmlAction getDml() { if (actionCase_ == 23) { - return (com.google.spanner.executor.v1.DmlAction) action_; + return (com.google.spanner.executor.v1.DmlAction) action_; } return com.google.spanner.executor.v1.DmlAction.getDefaultInstance(); } /** - * - * * <pre> * Action to a DML. * </pre> @@ -511,21 +419,18 @@ public com.google.spanner.executor.v1.DmlAction getDml() { @java.lang.Override public com.google.spanner.executor.v1.DmlActionOrBuilder getDmlOrBuilder() { if (actionCase_ == 23) { - return (com.google.spanner.executor.v1.DmlAction) action_; + return (com.google.spanner.executor.v1.DmlAction) action_; } return com.google.spanner.executor.v1.DmlAction.getDefaultInstance(); } public static final int BATCH_DML_FIELD_NUMBER = 24; /** - * - * * <pre> * Action to a batch DML. * </pre> * * <code>.google.spanner.executor.v1.BatchDmlAction batch_dml = 24;</code> - * * @return Whether the batchDml field is set. */ @java.lang.Override @@ -533,26 +438,21 @@ public boolean hasBatchDml() { return actionCase_ == 24; } /** - * - * * <pre> * Action to a batch DML. * </pre> * * <code>.google.spanner.executor.v1.BatchDmlAction batch_dml = 24;</code> - * * @return The batchDml. */ @java.lang.Override public com.google.spanner.executor.v1.BatchDmlAction getBatchDml() { if (actionCase_ == 24) { - return (com.google.spanner.executor.v1.BatchDmlAction) action_; + return (com.google.spanner.executor.v1.BatchDmlAction) action_; } return com.google.spanner.executor.v1.BatchDmlAction.getDefaultInstance(); } /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -562,21 +462,18 @@ public com.google.spanner.executor.v1.BatchDmlAction getBatchDml() { @java.lang.Override public com.google.spanner.executor.v1.BatchDmlActionOrBuilder getBatchDmlOrBuilder() { if (actionCase_ == 24) { - return (com.google.spanner.executor.v1.BatchDmlAction) action_; + return (com.google.spanner.executor.v1.BatchDmlAction) action_; } return com.google.spanner.executor.v1.BatchDmlAction.getDefaultInstance(); } public static final int WRITE_FIELD_NUMBER = 25; /** - * - * * <pre> * Action to write a mutation. * </pre> * * <code>.google.spanner.executor.v1.WriteMutationsAction write = 25;</code> - * * @return Whether the write field is set. */ @java.lang.Override @@ -584,26 +481,21 @@ public boolean hasWrite() { return actionCase_ == 25; } /** - * - * * <pre> * Action to write a mutation. * </pre> * * <code>.google.spanner.executor.v1.WriteMutationsAction write = 25;</code> - * * @return The write. */ @java.lang.Override public com.google.spanner.executor.v1.WriteMutationsAction getWrite() { if (actionCase_ == 25) { - return (com.google.spanner.executor.v1.WriteMutationsAction) action_; + return (com.google.spanner.executor.v1.WriteMutationsAction) action_; } return com.google.spanner.executor.v1.WriteMutationsAction.getDefaultInstance(); } /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -613,21 +505,18 @@ public com.google.spanner.executor.v1.WriteMutationsAction getWrite() { @java.lang.Override public com.google.spanner.executor.v1.WriteMutationsActionOrBuilder getWriteOrBuilder() { if (actionCase_ == 25) { - return (com.google.spanner.executor.v1.WriteMutationsAction) action_; + return (com.google.spanner.executor.v1.WriteMutationsAction) action_; } return com.google.spanner.executor.v1.WriteMutationsAction.getDefaultInstance(); } public static final int PARTITIONED_UPDATE_FIELD_NUMBER = 27; /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> - * * @return Whether the partitionedUpdate field is set. */ @java.lang.Override @@ -635,26 +524,21 @@ public boolean hasPartitionedUpdate() { return actionCase_ == 27; } /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> - * * @return The partitionedUpdate. */ @java.lang.Override public com.google.spanner.executor.v1.PartitionedUpdateAction getPartitionedUpdate() { if (actionCase_ == 27) { - return (com.google.spanner.executor.v1.PartitionedUpdateAction) action_; + return (com.google.spanner.executor.v1.PartitionedUpdateAction) action_; } return com.google.spanner.executor.v1.PartitionedUpdateAction.getDefaultInstance(); } /** - * - * * <pre> * Action to a partitioned update. * </pre> @@ -662,25 +546,21 @@ public com.google.spanner.executor.v1.PartitionedUpdateAction getPartitionedUpda * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder - getPartitionedUpdateOrBuilder() { + public com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder getPartitionedUpdateOrBuilder() { if (actionCase_ == 27) { - return (com.google.spanner.executor.v1.PartitionedUpdateAction) action_; + return (com.google.spanner.executor.v1.PartitionedUpdateAction) action_; } return com.google.spanner.executor.v1.PartitionedUpdateAction.getDefaultInstance(); } public static final int ADMIN_FIELD_NUMBER = 30; /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. * </pre> * * <code>.google.spanner.executor.v1.AdminAction admin = 30;</code> - * * @return Whether the admin field is set. */ @java.lang.Override @@ -688,27 +568,22 @@ public boolean hasAdmin() { return actionCase_ == 30; } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. * </pre> * * <code>.google.spanner.executor.v1.AdminAction admin = 30;</code> - * * @return The admin. */ @java.lang.Override public com.google.spanner.executor.v1.AdminAction getAdmin() { if (actionCase_ == 30) { - return (com.google.spanner.executor.v1.AdminAction) action_; + return (com.google.spanner.executor.v1.AdminAction) action_; } return com.google.spanner.executor.v1.AdminAction.getDefaultInstance(); } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -719,21 +594,18 @@ public com.google.spanner.executor.v1.AdminAction getAdmin() { @java.lang.Override public com.google.spanner.executor.v1.AdminActionOrBuilder getAdminOrBuilder() { if (actionCase_ == 30) { - return (com.google.spanner.executor.v1.AdminAction) action_; + return (com.google.spanner.executor.v1.AdminAction) action_; } return com.google.spanner.executor.v1.AdminAction.getDefaultInstance(); } public static final int START_BATCH_TXN_FIELD_NUMBER = 40; /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> - * * @return Whether the startBatchTxn field is set. */ @java.lang.Override @@ -741,26 +613,21 @@ public boolean hasStartBatchTxn() { return actionCase_ == 40; } /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> - * * @return The startBatchTxn. */ @java.lang.Override public com.google.spanner.executor.v1.StartBatchTransactionAction getStartBatchTxn() { if (actionCase_ == 40) { - return (com.google.spanner.executor.v1.StartBatchTransactionAction) action_; + return (com.google.spanner.executor.v1.StartBatchTransactionAction) action_; } return com.google.spanner.executor.v1.StartBatchTransactionAction.getDefaultInstance(); } /** - * - * * <pre> * Action to start a batch transaction. * </pre> @@ -768,24 +635,20 @@ public com.google.spanner.executor.v1.StartBatchTransactionAction getStartBatchT * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder - getStartBatchTxnOrBuilder() { + public com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder getStartBatchTxnOrBuilder() { if (actionCase_ == 40) { - return (com.google.spanner.executor.v1.StartBatchTransactionAction) action_; + return (com.google.spanner.executor.v1.StartBatchTransactionAction) action_; } return com.google.spanner.executor.v1.StartBatchTransactionAction.getDefaultInstance(); } public static final int CLOSE_BATCH_TXN_FIELD_NUMBER = 41; /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> - * * @return Whether the closeBatchTxn field is set. */ @java.lang.Override @@ -793,26 +656,21 @@ public boolean hasCloseBatchTxn() { return actionCase_ == 41; } /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> - * * @return The closeBatchTxn. */ @java.lang.Override public com.google.spanner.executor.v1.CloseBatchTransactionAction getCloseBatchTxn() { if (actionCase_ == 41) { - return (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_; + return (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_; } return com.google.spanner.executor.v1.CloseBatchTransactionAction.getDefaultInstance(); } /** - * - * * <pre> * Action to close a batch transaction. * </pre> @@ -820,26 +678,20 @@ public com.google.spanner.executor.v1.CloseBatchTransactionAction getCloseBatchT * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder - getCloseBatchTxnOrBuilder() { + public com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder getCloseBatchTxnOrBuilder() { if (actionCase_ == 41) { - return (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_; + return (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_; } return com.google.spanner.executor.v1.CloseBatchTransactionAction.getDefaultInstance(); } public static final int GENERATE_DB_PARTITIONS_READ_FIELD_NUMBER = 42; /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> * @return Whether the generateDbPartitionsRead field is set. */ @java.lang.Override @@ -847,58 +699,42 @@ public boolean hasGenerateDbPartitionsRead() { return actionCase_ == 42; } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> * @return The generateDbPartitionsRead. */ @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - getGenerateDbPartitionsRead() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction getGenerateDbPartitionsRead() { if (actionCase_ == 42) { - return (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_; + return (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_; } return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance(); } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder - getGenerateDbPartitionsReadOrBuilder() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder getGenerateDbPartitionsReadOrBuilder() { if (actionCase_ == 42) { - return (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_; + return (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_; } return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance(); } public static final int GENERATE_DB_PARTITIONS_QUERY_FIELD_NUMBER = 43; /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> * @return Whether the generateDbPartitionsQuery field is set. */ @java.lang.Override @@ -906,56 +742,42 @@ public boolean hasGenerateDbPartitionsQuery() { return actionCase_ == 43; } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> * @return The generateDbPartitionsQuery. */ @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - getGenerateDbPartitionsQuery() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction getGenerateDbPartitionsQuery() { if (actionCase_ == 43) { - return (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_; + return (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_; } return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance(); } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder - getGenerateDbPartitionsQueryOrBuilder() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder getGenerateDbPartitionsQueryOrBuilder() { if (actionCase_ == 43) { - return (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_; + return (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_; } return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance(); } public static final int EXECUTE_PARTITION_FIELD_NUMBER = 44; /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> - * * @return Whether the executePartition field is set. */ @java.lang.Override @@ -963,26 +785,21 @@ public boolean hasExecutePartition() { return actionCase_ == 44; } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> - * * @return The executePartition. */ @java.lang.Override public com.google.spanner.executor.v1.ExecutePartitionAction getExecutePartition() { if (actionCase_ == 44) { - return (com.google.spanner.executor.v1.ExecutePartitionAction) action_; + return (com.google.spanner.executor.v1.ExecutePartitionAction) action_; } return com.google.spanner.executor.v1.ExecutePartitionAction.getDefaultInstance(); } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> @@ -990,25 +807,20 @@ public com.google.spanner.executor.v1.ExecutePartitionAction getExecutePartition * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder - getExecutePartitionOrBuilder() { + public com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder getExecutePartitionOrBuilder() { if (actionCase_ == 44) { - return (com.google.spanner.executor.v1.ExecutePartitionAction) action_; + return (com.google.spanner.executor.v1.ExecutePartitionAction) action_; } return com.google.spanner.executor.v1.ExecutePartitionAction.getDefaultInstance(); } public static final int EXECUTE_CHANGE_STREAM_QUERY_FIELD_NUMBER = 50; /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> - * + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> * @return Whether the executeChangeStreamQuery field is set. */ @java.lang.Override @@ -1016,45 +828,36 @@ public boolean hasExecuteChangeStreamQuery() { return actionCase_ == 50; } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> - * + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> * @return The executeChangeStreamQuery. */ @java.lang.Override public com.google.spanner.executor.v1.ExecuteChangeStreamQuery getExecuteChangeStreamQuery() { if (actionCase_ == 50) { - return (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_; + return (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_; } return com.google.spanner.executor.v1.ExecuteChangeStreamQuery.getDefaultInstance(); } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder - getExecuteChangeStreamQueryOrBuilder() { + public com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder getExecuteChangeStreamQueryOrBuilder() { if (actionCase_ == 50) { - return (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_; + return (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_; } return com.google.spanner.executor.v1.ExecuteChangeStreamQuery.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1066,7 +869,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databasePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, databasePath_); } @@ -1107,12 +911,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(41, (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_); } if (actionCase_ == 42) { - output.writeMessage( - 42, (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_); + output.writeMessage(42, (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_); } if (actionCase_ == 43) { - output.writeMessage( - 43, (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_); + output.writeMessage(43, (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_); } if (actionCase_ == 44) { output.writeMessage(44, (com.google.spanner.executor.v1.ExecutePartitionAction) action_); @@ -1133,84 +935,68 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, databasePath_); } if (actionCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.spanner.executor.v1.StartTransactionAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.spanner.executor.v1.StartTransactionAction) action_); } if (actionCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.spanner.executor.v1.FinishTransactionAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.spanner.executor.v1.FinishTransactionAction) action_); } if (actionCase_ == 20) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 20, (com.google.spanner.executor.v1.ReadAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, (com.google.spanner.executor.v1.ReadAction) action_); } if (actionCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.spanner.executor.v1.QueryAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.spanner.executor.v1.QueryAction) action_); } if (actionCase_ == 22) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, (com.google.spanner.executor.v1.MutationAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, (com.google.spanner.executor.v1.MutationAction) action_); } if (actionCase_ == 23) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 23, (com.google.spanner.executor.v1.DmlAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, (com.google.spanner.executor.v1.DmlAction) action_); } if (actionCase_ == 24) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, (com.google.spanner.executor.v1.BatchDmlAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, (com.google.spanner.executor.v1.BatchDmlAction) action_); } if (actionCase_ == 25) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 25, (com.google.spanner.executor.v1.WriteMutationsAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, (com.google.spanner.executor.v1.WriteMutationsAction) action_); } if (actionCase_ == 27) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 27, (com.google.spanner.executor.v1.PartitionedUpdateAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, (com.google.spanner.executor.v1.PartitionedUpdateAction) action_); } if (actionCase_ == 30) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 30, (com.google.spanner.executor.v1.AdminAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, (com.google.spanner.executor.v1.AdminAction) action_); } if (actionCase_ == 40) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 40, (com.google.spanner.executor.v1.StartBatchTransactionAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, (com.google.spanner.executor.v1.StartBatchTransactionAction) action_); } if (actionCase_ == 41) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 41, (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_); } if (actionCase_ == 42) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 42, (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(42, (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_); } if (actionCase_ == 43) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 43, (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(43, (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_); } if (actionCase_ == 44) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 44, (com.google.spanner.executor.v1.ExecutePartitionAction) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(44, (com.google.spanner.executor.v1.ExecutePartitionAction) action_); } if (actionCase_ == 50) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 50, (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(50, (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1220,67 +1006,80 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.SpannerAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.SpannerAction other = - (com.google.spanner.executor.v1.SpannerAction) obj; + com.google.spanner.executor.v1.SpannerAction other = (com.google.spanner.executor.v1.SpannerAction) obj; - if (!getDatabasePath().equals(other.getDatabasePath())) return false; + if (!getDatabasePath() + .equals(other.getDatabasePath())) return false; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 10: - if (!getStart().equals(other.getStart())) return false; + if (!getStart() + .equals(other.getStart())) return false; break; case 11: - if (!getFinish().equals(other.getFinish())) return false; + if (!getFinish() + .equals(other.getFinish())) return false; break; case 20: - if (!getRead().equals(other.getRead())) return false; + if (!getRead() + .equals(other.getRead())) return false; break; case 21: - if (!getQuery().equals(other.getQuery())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; break; case 22: - if (!getMutation().equals(other.getMutation())) return false; + if (!getMutation() + .equals(other.getMutation())) return false; break; case 23: - if (!getDml().equals(other.getDml())) return false; + if (!getDml() + .equals(other.getDml())) return false; break; case 24: - if (!getBatchDml().equals(other.getBatchDml())) return false; + if (!getBatchDml() + .equals(other.getBatchDml())) return false; break; case 25: - if (!getWrite().equals(other.getWrite())) return false; + if (!getWrite() + .equals(other.getWrite())) return false; break; case 27: - if (!getPartitionedUpdate().equals(other.getPartitionedUpdate())) return false; + if (!getPartitionedUpdate() + .equals(other.getPartitionedUpdate())) return false; break; case 30: - if (!getAdmin().equals(other.getAdmin())) return false; + if (!getAdmin() + .equals(other.getAdmin())) return false; break; case 40: - if (!getStartBatchTxn().equals(other.getStartBatchTxn())) return false; + if (!getStartBatchTxn() + .equals(other.getStartBatchTxn())) return false; break; case 41: - if (!getCloseBatchTxn().equals(other.getCloseBatchTxn())) return false; + if (!getCloseBatchTxn() + .equals(other.getCloseBatchTxn())) return false; break; case 42: - if (!getGenerateDbPartitionsRead().equals(other.getGenerateDbPartitionsRead())) - return false; + if (!getGenerateDbPartitionsRead() + .equals(other.getGenerateDbPartitionsRead())) return false; break; case 43: - if (!getGenerateDbPartitionsQuery().equals(other.getGenerateDbPartitionsQuery())) - return false; + if (!getGenerateDbPartitionsQuery() + .equals(other.getGenerateDbPartitionsQuery())) return false; break; case 44: - if (!getExecutePartition().equals(other.getExecutePartition())) return false; + if (!getExecutePartition() + .equals(other.getExecutePartition())) return false; break; case 50: - if (!getExecuteChangeStreamQuery().equals(other.getExecuteChangeStreamQuery())) - return false; + if (!getExecuteChangeStreamQuery() + .equals(other.getExecuteChangeStreamQuery())) return false; break; case 0: default: @@ -1371,104 +1170,99 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.SpannerAction parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.SpannerAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SpannerAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAction 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.SpannerAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerAction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.SpannerAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.SpannerAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.SpannerAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.SpannerAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.SpannerAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * SpannerAction defines a primitive action that can be performed against * Spanner, such as begin or commit a transaction, or perform a read or @@ -1477,32 +1271,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.SpannerAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.SpannerAction) com.google.spanner.executor.v1.SpannerActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.SpannerAction.class, - com.google.spanner.executor.v1.SpannerAction.Builder.class); + com.google.spanner.executor.v1.SpannerAction.class, com.google.spanner.executor.v1.SpannerAction.Builder.class); } // Construct using com.google.spanner.executor.v1.SpannerAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1562,9 +1357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAction_descriptor; } @java.lang.Override @@ -1583,11 +1378,8 @@ public com.google.spanner.executor.v1.SpannerAction build() { @java.lang.Override public com.google.spanner.executor.v1.SpannerAction buildPartial() { - com.google.spanner.executor.v1.SpannerAction result = - new com.google.spanner.executor.v1.SpannerAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.SpannerAction result = new com.google.spanner.executor.v1.SpannerAction(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1603,52 +1395,68 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerAction result) private void buildPartialOneofs(com.google.spanner.executor.v1.SpannerAction result) { result.actionCase_ = actionCase_; result.action_ = this.action_; - if (actionCase_ == 10 && startBuilder_ != null) { + if (actionCase_ == 10 && + startBuilder_ != null) { result.action_ = startBuilder_.build(); } - if (actionCase_ == 11 && finishBuilder_ != null) { + if (actionCase_ == 11 && + finishBuilder_ != null) { result.action_ = finishBuilder_.build(); } - if (actionCase_ == 20 && readBuilder_ != null) { + if (actionCase_ == 20 && + readBuilder_ != null) { result.action_ = readBuilder_.build(); } - if (actionCase_ == 21 && queryBuilder_ != null) { + if (actionCase_ == 21 && + queryBuilder_ != null) { result.action_ = queryBuilder_.build(); } - if (actionCase_ == 22 && mutationBuilder_ != null) { + if (actionCase_ == 22 && + mutationBuilder_ != null) { result.action_ = mutationBuilder_.build(); } - if (actionCase_ == 23 && dmlBuilder_ != null) { + if (actionCase_ == 23 && + dmlBuilder_ != null) { result.action_ = dmlBuilder_.build(); } - if (actionCase_ == 24 && batchDmlBuilder_ != null) { + if (actionCase_ == 24 && + batchDmlBuilder_ != null) { result.action_ = batchDmlBuilder_.build(); } - if (actionCase_ == 25 && writeBuilder_ != null) { + if (actionCase_ == 25 && + writeBuilder_ != null) { result.action_ = writeBuilder_.build(); } - if (actionCase_ == 27 && partitionedUpdateBuilder_ != null) { + if (actionCase_ == 27 && + partitionedUpdateBuilder_ != null) { result.action_ = partitionedUpdateBuilder_.build(); } - if (actionCase_ == 30 && adminBuilder_ != null) { + if (actionCase_ == 30 && + adminBuilder_ != null) { result.action_ = adminBuilder_.build(); } - if (actionCase_ == 40 && startBatchTxnBuilder_ != null) { + if (actionCase_ == 40 && + startBatchTxnBuilder_ != null) { result.action_ = startBatchTxnBuilder_.build(); } - if (actionCase_ == 41 && closeBatchTxnBuilder_ != null) { + if (actionCase_ == 41 && + closeBatchTxnBuilder_ != null) { result.action_ = closeBatchTxnBuilder_.build(); } - if (actionCase_ == 42 && generateDbPartitionsReadBuilder_ != null) { + if (actionCase_ == 42 && + generateDbPartitionsReadBuilder_ != null) { result.action_ = generateDbPartitionsReadBuilder_.build(); } - if (actionCase_ == 43 && generateDbPartitionsQueryBuilder_ != null) { + if (actionCase_ == 43 && + generateDbPartitionsQueryBuilder_ != null) { result.action_ = generateDbPartitionsQueryBuilder_.build(); } - if (actionCase_ == 44 && executePartitionBuilder_ != null) { + if (actionCase_ == 44 && + executePartitionBuilder_ != null) { result.action_ = executePartitionBuilder_.build(); } - if (actionCase_ == 50 && executeChangeStreamQueryBuilder_ != null) { + if (actionCase_ == 50 && + executeChangeStreamQueryBuilder_ != null) { result.action_ = executeChangeStreamQueryBuilder_.build(); } } @@ -1657,39 +1465,38 @@ private void buildPartialOneofs(com.google.spanner.executor.v1.SpannerAction res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.SpannerAction) { - return mergeFrom((com.google.spanner.executor.v1.SpannerAction) other); + return mergeFrom((com.google.spanner.executor.v1.SpannerAction)other); } else { super.mergeFrom(other); return this; @@ -1704,90 +1511,73 @@ public Builder mergeFrom(com.google.spanner.executor.v1.SpannerAction other) { onChanged(); } switch (other.getActionCase()) { - case START: - { - mergeStart(other.getStart()); - break; - } - case FINISH: - { - mergeFinish(other.getFinish()); - break; - } - case READ: - { - mergeRead(other.getRead()); - break; - } - case QUERY: - { - mergeQuery(other.getQuery()); - break; - } - case MUTATION: - { - mergeMutation(other.getMutation()); - break; - } - case DML: - { - mergeDml(other.getDml()); - break; - } - case BATCH_DML: - { - mergeBatchDml(other.getBatchDml()); - break; - } - case WRITE: - { - mergeWrite(other.getWrite()); - break; - } - case PARTITIONED_UPDATE: - { - mergePartitionedUpdate(other.getPartitionedUpdate()); - break; - } - case ADMIN: - { - mergeAdmin(other.getAdmin()); - break; - } - case START_BATCH_TXN: - { - mergeStartBatchTxn(other.getStartBatchTxn()); - break; - } - case CLOSE_BATCH_TXN: - { - mergeCloseBatchTxn(other.getCloseBatchTxn()); - break; - } - case GENERATE_DB_PARTITIONS_READ: - { - mergeGenerateDbPartitionsRead(other.getGenerateDbPartitionsRead()); - break; - } - case GENERATE_DB_PARTITIONS_QUERY: - { - mergeGenerateDbPartitionsQuery(other.getGenerateDbPartitionsQuery()); - break; - } - case EXECUTE_PARTITION: - { - mergeExecutePartition(other.getExecutePartition()); - break; - } - case EXECUTE_CHANGE_STREAM_QUERY: - { - mergeExecuteChangeStreamQuery(other.getExecuteChangeStreamQuery()); - break; - } - case ACTION_NOT_SET: - { - break; - } + case START: { + mergeStart(other.getStart()); + break; + } + case FINISH: { + mergeFinish(other.getFinish()); + break; + } + case READ: { + mergeRead(other.getRead()); + break; + } + case QUERY: { + mergeQuery(other.getQuery()); + break; + } + case MUTATION: { + mergeMutation(other.getMutation()); + break; + } + case DML: { + mergeDml(other.getDml()); + break; + } + case BATCH_DML: { + mergeBatchDml(other.getBatchDml()); + break; + } + case WRITE: { + mergeWrite(other.getWrite()); + break; + } + case PARTITIONED_UPDATE: { + mergePartitionedUpdate(other.getPartitionedUpdate()); + break; + } + case ADMIN: { + mergeAdmin(other.getAdmin()); + break; + } + case START_BATCH_TXN: { + mergeStartBatchTxn(other.getStartBatchTxn()); + break; + } + case CLOSE_BATCH_TXN: { + mergeCloseBatchTxn(other.getCloseBatchTxn()); + break; + } + case GENERATE_DB_PARTITIONS_READ: { + mergeGenerateDbPartitionsRead(other.getGenerateDbPartitionsRead()); + break; + } + case GENERATE_DB_PARTITIONS_QUERY: { + mergeGenerateDbPartitionsQuery(other.getGenerateDbPartitionsQuery()); + break; + } + case EXECUTE_PARTITION: { + mergeExecutePartition(other.getExecutePartition()); + break; + } + case EXECUTE_CHANGE_STREAM_QUERY: { + mergeExecuteChangeStreamQuery(other.getExecuteChangeStreamQuery()); + break; + } + case ACTION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1815,120 +1605,129 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - databasePath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 82: - { - input.readMessage(getStartFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 10; - break; - } // case 82 - case 90: - { - input.readMessage(getFinishFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 11; - break; - } // case 90 - case 162: - { - input.readMessage(getReadFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 20; - break; - } // case 162 - case 170: - { - input.readMessage(getQueryFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 21; - break; - } // case 170 - case 178: - { - input.readMessage(getMutationFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 22; - break; - } // case 178 - case 186: - { - input.readMessage(getDmlFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 23; - break; - } // case 186 - case 194: - { - input.readMessage(getBatchDmlFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 24; - break; - } // case 194 - case 202: - { - input.readMessage(getWriteFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 25; - break; - } // case 202 - case 218: - { - input.readMessage( - getPartitionedUpdateFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 27; - break; - } // case 218 - case 242: - { - input.readMessage(getAdminFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 30; - break; - } // case 242 - case 322: - { - input.readMessage(getStartBatchTxnFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 40; - break; - } // case 322 - case 330: - { - input.readMessage(getCloseBatchTxnFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 41; - break; - } // case 330 - case 338: - { - input.readMessage( - getGenerateDbPartitionsReadFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 42; - break; - } // case 338 - case 346: - { - input.readMessage( - getGenerateDbPartitionsQueryFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 43; - break; - } // case 346 - case 354: - { - input.readMessage( - getExecutePartitionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 44; - break; - } // case 354 - case 402: - { - input.readMessage( - getExecuteChangeStreamQueryFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 50; - break; - } // case 402 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + databasePath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 82: { + input.readMessage( + getStartFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 10; + break; + } // case 82 + case 90: { + input.readMessage( + getFinishFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 11; + break; + } // case 90 + case 162: { + input.readMessage( + getReadFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 20; + break; + } // case 162 + case 170: { + input.readMessage( + getQueryFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 21; + break; + } // case 170 + case 178: { + input.readMessage( + getMutationFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 22; + break; + } // case 178 + case 186: { + input.readMessage( + getDmlFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 23; + break; + } // case 186 + case 194: { + input.readMessage( + getBatchDmlFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 24; + break; + } // case 194 + case 202: { + input.readMessage( + getWriteFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 25; + break; + } // case 202 + case 218: { + input.readMessage( + getPartitionedUpdateFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 27; + break; + } // case 218 + case 242: { + input.readMessage( + getAdminFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 30; + break; + } // case 242 + case 322: { + input.readMessage( + getStartBatchTxnFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 40; + break; + } // case 322 + case 330: { + input.readMessage( + getCloseBatchTxnFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 41; + break; + } // case 330 + case 338: { + input.readMessage( + getGenerateDbPartitionsReadFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 42; + break; + } // case 338 + case 346: { + input.readMessage( + getGenerateDbPartitionsQueryFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 43; + break; + } // case 346 + case 354: { + input.readMessage( + getExecutePartitionFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 44; + break; + } // case 354 + case 402: { + input.readMessage( + getExecuteChangeStreamQueryFieldBuilder().getBuilder(), + extensionRegistry); + actionCase_ = 50; + break; + } // case 402 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1938,12 +1737,12 @@ public Builder mergeFrom( } // finally return this; } - private int actionCase_ = 0; private java.lang.Object action_; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + public ActionCase + getActionCase() { + return ActionCase.forNumber( + actionCase_); } public Builder clearAction() { @@ -1957,8 +1756,6 @@ public Builder clearAction() { private java.lang.Object databasePath_ = ""; /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -1966,13 +1763,13 @@ public Builder clearAction() { * </pre> * * <code>string database_path = 1;</code> - * * @return The databasePath. */ public java.lang.String getDatabasePath() { java.lang.Object ref = databasePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databasePath_ = s; return s; @@ -1981,8 +1778,6 @@ public java.lang.String getDatabasePath() { } } /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -1990,14 +1785,15 @@ public java.lang.String getDatabasePath() { * </pre> * * <code>string database_path = 1;</code> - * * @return The bytes for databasePath. */ - public com.google.protobuf.ByteString getDatabasePathBytes() { + public com.google.protobuf.ByteString + getDatabasePathBytes() { java.lang.Object ref = databasePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databasePath_ = b; return b; } else { @@ -2005,8 +1801,6 @@ public com.google.protobuf.ByteString getDatabasePathBytes() { } } /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -2014,22 +1808,18 @@ public com.google.protobuf.ByteString getDatabasePathBytes() { * </pre> * * <code>string database_path = 1;</code> - * * @param value The databasePath to set. * @return This builder for chaining. */ - public Builder setDatabasePath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabasePath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databasePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -2037,7 +1827,6 @@ public Builder setDatabasePath(java.lang.String value) { * </pre> * * <code>string database_path = 1;</code> - * * @return This builder for chaining. */ public Builder clearDatabasePath() { @@ -2047,8 +1836,6 @@ public Builder clearDatabasePath() { return this; } /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -2056,14 +1843,12 @@ public Builder clearDatabasePath() { * </pre> * * <code>string database_path = 1;</code> - * * @param value The bytes for databasePath to set. * @return This builder for chaining. */ - public Builder setDatabasePathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabasePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databasePath_ = value; bitField0_ |= 0x00000001; @@ -2072,19 +1857,13 @@ public Builder setDatabasePathBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.StartTransactionAction, - com.google.spanner.executor.v1.StartTransactionAction.Builder, - com.google.spanner.executor.v1.StartTransactionActionOrBuilder> - startBuilder_; + com.google.spanner.executor.v1.StartTransactionAction, com.google.spanner.executor.v1.StartTransactionAction.Builder, com.google.spanner.executor.v1.StartTransactionActionOrBuilder> startBuilder_; /** - * - * * <pre> * Action to start a transaction. * </pre> * * <code>.google.spanner.executor.v1.StartTransactionAction start = 10;</code> - * * @return Whether the start field is set. */ @java.lang.Override @@ -2092,14 +1871,11 @@ public boolean hasStart() { return actionCase_ == 10; } /** - * - * * <pre> * Action to start a transaction. * </pre> * * <code>.google.spanner.executor.v1.StartTransactionAction start = 10;</code> - * * @return The start. */ @java.lang.Override @@ -2117,8 +1893,6 @@ public com.google.spanner.executor.v1.StartTransactionAction getStart() { } } /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -2139,8 +1913,6 @@ public Builder setStart(com.google.spanner.executor.v1.StartTransactionAction va return this; } /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -2159,8 +1931,6 @@ public Builder setStart( return this; } /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -2169,14 +1939,10 @@ public Builder setStart( */ public Builder mergeStart(com.google.spanner.executor.v1.StartTransactionAction value) { if (startBuilder_ == null) { - if (actionCase_ == 10 - && action_ - != com.google.spanner.executor.v1.StartTransactionAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.StartTransactionAction.newBuilder( - (com.google.spanner.executor.v1.StartTransactionAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 10 && + action_ != com.google.spanner.executor.v1.StartTransactionAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.StartTransactionAction.newBuilder((com.google.spanner.executor.v1.StartTransactionAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -2192,8 +1958,6 @@ public Builder mergeStart(com.google.spanner.executor.v1.StartTransactionAction return this; } /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -2217,8 +1981,6 @@ public Builder clearStart() { return this; } /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -2229,8 +1991,6 @@ public com.google.spanner.executor.v1.StartTransactionAction.Builder getStartBui return getStartFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -2249,8 +2009,6 @@ public com.google.spanner.executor.v1.StartTransactionActionOrBuilder getStartOr } } /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -2258,19 +2016,14 @@ public com.google.spanner.executor.v1.StartTransactionActionOrBuilder getStartOr * <code>.google.spanner.executor.v1.StartTransactionAction start = 10;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.StartTransactionAction, - com.google.spanner.executor.v1.StartTransactionAction.Builder, - com.google.spanner.executor.v1.StartTransactionActionOrBuilder> + com.google.spanner.executor.v1.StartTransactionAction, com.google.spanner.executor.v1.StartTransactionAction.Builder, com.google.spanner.executor.v1.StartTransactionActionOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { if (!(actionCase_ == 10)) { action_ = com.google.spanner.executor.v1.StartTransactionAction.getDefaultInstance(); } - startBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.StartTransactionAction, - com.google.spanner.executor.v1.StartTransactionAction.Builder, - com.google.spanner.executor.v1.StartTransactionActionOrBuilder>( + startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.StartTransactionAction, com.google.spanner.executor.v1.StartTransactionAction.Builder, com.google.spanner.executor.v1.StartTransactionActionOrBuilder>( (com.google.spanner.executor.v1.StartTransactionAction) action_, getParentForChildren(), isClean()); @@ -2282,19 +2035,13 @@ public com.google.spanner.executor.v1.StartTransactionActionOrBuilder getStartOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.FinishTransactionAction, - com.google.spanner.executor.v1.FinishTransactionAction.Builder, - com.google.spanner.executor.v1.FinishTransactionActionOrBuilder> - finishBuilder_; + com.google.spanner.executor.v1.FinishTransactionAction, com.google.spanner.executor.v1.FinishTransactionAction.Builder, com.google.spanner.executor.v1.FinishTransactionActionOrBuilder> finishBuilder_; /** - * - * * <pre> * Action to finish a transaction. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction finish = 11;</code> - * * @return Whether the finish field is set. */ @java.lang.Override @@ -2302,14 +2049,11 @@ public boolean hasFinish() { return actionCase_ == 11; } /** - * - * * <pre> * Action to finish a transaction. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction finish = 11;</code> - * * @return The finish. */ @java.lang.Override @@ -2327,8 +2071,6 @@ public com.google.spanner.executor.v1.FinishTransactionAction getFinish() { } } /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -2349,8 +2091,6 @@ public Builder setFinish(com.google.spanner.executor.v1.FinishTransactionAction return this; } /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -2369,8 +2109,6 @@ public Builder setFinish( return this; } /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -2379,14 +2117,10 @@ public Builder setFinish( */ public Builder mergeFinish(com.google.spanner.executor.v1.FinishTransactionAction value) { if (finishBuilder_ == null) { - if (actionCase_ == 11 - && action_ - != com.google.spanner.executor.v1.FinishTransactionAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.FinishTransactionAction.newBuilder( - (com.google.spanner.executor.v1.FinishTransactionAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 11 && + action_ != com.google.spanner.executor.v1.FinishTransactionAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.FinishTransactionAction.newBuilder((com.google.spanner.executor.v1.FinishTransactionAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -2402,8 +2136,6 @@ public Builder mergeFinish(com.google.spanner.executor.v1.FinishTransactionActio return this; } /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -2427,8 +2159,6 @@ public Builder clearFinish() { return this; } /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -2439,8 +2169,6 @@ public com.google.spanner.executor.v1.FinishTransactionAction.Builder getFinishB return getFinishFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -2459,8 +2187,6 @@ public com.google.spanner.executor.v1.FinishTransactionActionOrBuilder getFinish } } /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -2468,19 +2194,14 @@ public com.google.spanner.executor.v1.FinishTransactionActionOrBuilder getFinish * <code>.google.spanner.executor.v1.FinishTransactionAction finish = 11;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.FinishTransactionAction, - com.google.spanner.executor.v1.FinishTransactionAction.Builder, - com.google.spanner.executor.v1.FinishTransactionActionOrBuilder> + com.google.spanner.executor.v1.FinishTransactionAction, com.google.spanner.executor.v1.FinishTransactionAction.Builder, com.google.spanner.executor.v1.FinishTransactionActionOrBuilder> getFinishFieldBuilder() { if (finishBuilder_ == null) { if (!(actionCase_ == 11)) { action_ = com.google.spanner.executor.v1.FinishTransactionAction.getDefaultInstance(); } - finishBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.FinishTransactionAction, - com.google.spanner.executor.v1.FinishTransactionAction.Builder, - com.google.spanner.executor.v1.FinishTransactionActionOrBuilder>( + finishBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.FinishTransactionAction, com.google.spanner.executor.v1.FinishTransactionAction.Builder, com.google.spanner.executor.v1.FinishTransactionActionOrBuilder>( (com.google.spanner.executor.v1.FinishTransactionAction) action_, getParentForChildren(), isClean()); @@ -2492,19 +2213,13 @@ public com.google.spanner.executor.v1.FinishTransactionActionOrBuilder getFinish } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadAction, - com.google.spanner.executor.v1.ReadAction.Builder, - com.google.spanner.executor.v1.ReadActionOrBuilder> - readBuilder_; + com.google.spanner.executor.v1.ReadAction, com.google.spanner.executor.v1.ReadAction.Builder, com.google.spanner.executor.v1.ReadActionOrBuilder> readBuilder_; /** - * - * * <pre> * Action to do a normal read. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 20;</code> - * * @return Whether the read field is set. */ @java.lang.Override @@ -2512,14 +2227,11 @@ public boolean hasRead() { return actionCase_ == 20; } /** - * - * * <pre> * Action to do a normal read. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 20;</code> - * * @return The read. */ @java.lang.Override @@ -2537,8 +2249,6 @@ public com.google.spanner.executor.v1.ReadAction getRead() { } } /** - * - * * <pre> * Action to do a normal read. * </pre> @@ -2559,15 +2269,14 @@ public Builder setRead(com.google.spanner.executor.v1.ReadAction value) { return this; } /** - * - * * <pre> * Action to do a normal read. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 20;</code> */ - public Builder setRead(com.google.spanner.executor.v1.ReadAction.Builder builderForValue) { + public Builder setRead( + com.google.spanner.executor.v1.ReadAction.Builder builderForValue) { if (readBuilder_ == null) { action_ = builderForValue.build(); onChanged(); @@ -2578,8 +2287,6 @@ public Builder setRead(com.google.spanner.executor.v1.ReadAction.Builder builder return this; } /** - * - * * <pre> * Action to do a normal read. * </pre> @@ -2588,13 +2295,10 @@ public Builder setRead(com.google.spanner.executor.v1.ReadAction.Builder builder */ public Builder mergeRead(com.google.spanner.executor.v1.ReadAction value) { if (readBuilder_ == null) { - if (actionCase_ == 20 - && action_ != com.google.spanner.executor.v1.ReadAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.ReadAction.newBuilder( - (com.google.spanner.executor.v1.ReadAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 20 && + action_ != com.google.spanner.executor.v1.ReadAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.ReadAction.newBuilder((com.google.spanner.executor.v1.ReadAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -2610,8 +2314,6 @@ public Builder mergeRead(com.google.spanner.executor.v1.ReadAction value) { return this; } /** - * - * * <pre> * Action to do a normal read. * </pre> @@ -2635,8 +2337,6 @@ public Builder clearRead() { return this; } /** - * - * * <pre> * Action to do a normal read. * </pre> @@ -2647,8 +2347,6 @@ public com.google.spanner.executor.v1.ReadAction.Builder getReadBuilder() { return getReadFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to do a normal read. * </pre> @@ -2667,8 +2365,6 @@ public com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder() { } } /** - * - * * <pre> * Action to do a normal read. * </pre> @@ -2676,19 +2372,14 @@ public com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder() { * <code>.google.spanner.executor.v1.ReadAction read = 20;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadAction, - com.google.spanner.executor.v1.ReadAction.Builder, - com.google.spanner.executor.v1.ReadActionOrBuilder> + com.google.spanner.executor.v1.ReadAction, com.google.spanner.executor.v1.ReadAction.Builder, com.google.spanner.executor.v1.ReadActionOrBuilder> getReadFieldBuilder() { if (readBuilder_ == null) { if (!(actionCase_ == 20)) { action_ = com.google.spanner.executor.v1.ReadAction.getDefaultInstance(); } - readBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadAction, - com.google.spanner.executor.v1.ReadAction.Builder, - com.google.spanner.executor.v1.ReadActionOrBuilder>( + readBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.ReadAction, com.google.spanner.executor.v1.ReadAction.Builder, com.google.spanner.executor.v1.ReadActionOrBuilder>( (com.google.spanner.executor.v1.ReadAction) action_, getParentForChildren(), isClean()); @@ -2700,19 +2391,13 @@ public com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> - queryBuilder_; + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder> queryBuilder_; /** - * - * * <pre> * Action to do a query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 21;</code> - * * @return Whether the query field is set. */ @java.lang.Override @@ -2720,14 +2405,11 @@ public boolean hasQuery() { return actionCase_ == 21; } /** - * - * * <pre> * Action to do a query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 21;</code> - * * @return The query. */ @java.lang.Override @@ -2745,8 +2427,6 @@ public com.google.spanner.executor.v1.QueryAction getQuery() { } } /** - * - * * <pre> * Action to do a query. * </pre> @@ -2767,15 +2447,14 @@ public Builder setQuery(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * Action to do a query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 21;</code> */ - public Builder setQuery(com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { + public Builder setQuery( + com.google.spanner.executor.v1.QueryAction.Builder builderForValue) { if (queryBuilder_ == null) { action_ = builderForValue.build(); onChanged(); @@ -2786,8 +2465,6 @@ public Builder setQuery(com.google.spanner.executor.v1.QueryAction.Builder build return this; } /** - * - * * <pre> * Action to do a query. * </pre> @@ -2796,13 +2473,10 @@ public Builder setQuery(com.google.spanner.executor.v1.QueryAction.Builder build */ public Builder mergeQuery(com.google.spanner.executor.v1.QueryAction value) { if (queryBuilder_ == null) { - if (actionCase_ == 21 - && action_ != com.google.spanner.executor.v1.QueryAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.QueryAction.newBuilder( - (com.google.spanner.executor.v1.QueryAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 21 && + action_ != com.google.spanner.executor.v1.QueryAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.QueryAction.newBuilder((com.google.spanner.executor.v1.QueryAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -2818,8 +2492,6 @@ public Builder mergeQuery(com.google.spanner.executor.v1.QueryAction value) { return this; } /** - * - * * <pre> * Action to do a query. * </pre> @@ -2843,8 +2515,6 @@ public Builder clearQuery() { return this; } /** - * - * * <pre> * Action to do a query. * </pre> @@ -2855,8 +2525,6 @@ public com.google.spanner.executor.v1.QueryAction.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to do a query. * </pre> @@ -2875,8 +2543,6 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder() { } } /** - * - * * <pre> * Action to do a query. * </pre> @@ -2884,19 +2550,14 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder() { * <code>.google.spanner.executor.v1.QueryAction query = 21;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder> + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { if (!(actionCase_ == 21)) { action_ = com.google.spanner.executor.v1.QueryAction.getDefaultInstance(); } - queryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryAction, - com.google.spanner.executor.v1.QueryAction.Builder, - com.google.spanner.executor.v1.QueryActionOrBuilder>( + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.QueryAction, com.google.spanner.executor.v1.QueryAction.Builder, com.google.spanner.executor.v1.QueryActionOrBuilder>( (com.google.spanner.executor.v1.QueryAction) action_, getParentForChildren(), isClean()); @@ -2908,19 +2569,13 @@ public com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction, - com.google.spanner.executor.v1.MutationAction.Builder, - com.google.spanner.executor.v1.MutationActionOrBuilder> - mutationBuilder_; + com.google.spanner.executor.v1.MutationAction, com.google.spanner.executor.v1.MutationAction.Builder, com.google.spanner.executor.v1.MutationActionOrBuilder> mutationBuilder_; /** - * - * * <pre> * Action to buffer a mutation. * </pre> * * <code>.google.spanner.executor.v1.MutationAction mutation = 22;</code> - * * @return Whether the mutation field is set. */ @java.lang.Override @@ -2928,14 +2583,11 @@ public boolean hasMutation() { return actionCase_ == 22; } /** - * - * * <pre> * Action to buffer a mutation. * </pre> * * <code>.google.spanner.executor.v1.MutationAction mutation = 22;</code> - * * @return The mutation. */ @java.lang.Override @@ -2952,9 +2604,7 @@ public com.google.spanner.executor.v1.MutationAction getMutation() { return com.google.spanner.executor.v1.MutationAction.getDefaultInstance(); } } - /** - * - * + /** * <pre> * Action to buffer a mutation. * </pre> @@ -2975,8 +2625,6 @@ public Builder setMutation(com.google.spanner.executor.v1.MutationAction value) return this; } /** - * - * * <pre> * Action to buffer a mutation. * </pre> @@ -2995,8 +2643,6 @@ public Builder setMutation( return this; } /** - * - * * <pre> * Action to buffer a mutation. * </pre> @@ -3005,13 +2651,10 @@ public Builder setMutation( */ public Builder mergeMutation(com.google.spanner.executor.v1.MutationAction value) { if (mutationBuilder_ == null) { - if (actionCase_ == 22 - && action_ != com.google.spanner.executor.v1.MutationAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.MutationAction.newBuilder( - (com.google.spanner.executor.v1.MutationAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 22 && + action_ != com.google.spanner.executor.v1.MutationAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.MutationAction.newBuilder((com.google.spanner.executor.v1.MutationAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -3027,8 +2670,6 @@ public Builder mergeMutation(com.google.spanner.executor.v1.MutationAction value return this; } /** - * - * * <pre> * Action to buffer a mutation. * </pre> @@ -3052,8 +2693,6 @@ public Builder clearMutation() { return this; } /** - * - * * <pre> * Action to buffer a mutation. * </pre> @@ -3064,8 +2703,6 @@ public com.google.spanner.executor.v1.MutationAction.Builder getMutationBuilder( return getMutationFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to buffer a mutation. * </pre> @@ -3084,8 +2721,6 @@ public com.google.spanner.executor.v1.MutationActionOrBuilder getMutationOrBuild } } /** - * - * * <pre> * Action to buffer a mutation. * </pre> @@ -3093,19 +2728,14 @@ public com.google.spanner.executor.v1.MutationActionOrBuilder getMutationOrBuild * <code>.google.spanner.executor.v1.MutationAction mutation = 22;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction, - com.google.spanner.executor.v1.MutationAction.Builder, - com.google.spanner.executor.v1.MutationActionOrBuilder> + com.google.spanner.executor.v1.MutationAction, com.google.spanner.executor.v1.MutationAction.Builder, com.google.spanner.executor.v1.MutationActionOrBuilder> getMutationFieldBuilder() { if (mutationBuilder_ == null) { if (!(actionCase_ == 22)) { action_ = com.google.spanner.executor.v1.MutationAction.getDefaultInstance(); } - mutationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.MutationAction, - com.google.spanner.executor.v1.MutationAction.Builder, - com.google.spanner.executor.v1.MutationActionOrBuilder>( + mutationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.MutationAction, com.google.spanner.executor.v1.MutationAction.Builder, com.google.spanner.executor.v1.MutationActionOrBuilder>( (com.google.spanner.executor.v1.MutationAction) action_, getParentForChildren(), isClean()); @@ -3117,19 +2747,13 @@ public com.google.spanner.executor.v1.MutationActionOrBuilder getMutationOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.DmlAction, - com.google.spanner.executor.v1.DmlAction.Builder, - com.google.spanner.executor.v1.DmlActionOrBuilder> - dmlBuilder_; + com.google.spanner.executor.v1.DmlAction, com.google.spanner.executor.v1.DmlAction.Builder, com.google.spanner.executor.v1.DmlActionOrBuilder> dmlBuilder_; /** - * - * * <pre> * Action to a DML. * </pre> * * <code>.google.spanner.executor.v1.DmlAction dml = 23;</code> - * * @return Whether the dml field is set. */ @java.lang.Override @@ -3137,14 +2761,11 @@ public boolean hasDml() { return actionCase_ == 23; } /** - * - * * <pre> * Action to a DML. * </pre> * * <code>.google.spanner.executor.v1.DmlAction dml = 23;</code> - * * @return The dml. */ @java.lang.Override @@ -3162,8 +2783,6 @@ public com.google.spanner.executor.v1.DmlAction getDml() { } } /** - * - * * <pre> * Action to a DML. * </pre> @@ -3184,15 +2803,14 @@ public Builder setDml(com.google.spanner.executor.v1.DmlAction value) { return this; } /** - * - * * <pre> * Action to a DML. * </pre> * * <code>.google.spanner.executor.v1.DmlAction dml = 23;</code> */ - public Builder setDml(com.google.spanner.executor.v1.DmlAction.Builder builderForValue) { + public Builder setDml( + com.google.spanner.executor.v1.DmlAction.Builder builderForValue) { if (dmlBuilder_ == null) { action_ = builderForValue.build(); onChanged(); @@ -3203,8 +2821,6 @@ public Builder setDml(com.google.spanner.executor.v1.DmlAction.Builder builderFo return this; } /** - * - * * <pre> * Action to a DML. * </pre> @@ -3213,13 +2829,10 @@ public Builder setDml(com.google.spanner.executor.v1.DmlAction.Builder builderFo */ public Builder mergeDml(com.google.spanner.executor.v1.DmlAction value) { if (dmlBuilder_ == null) { - if (actionCase_ == 23 - && action_ != com.google.spanner.executor.v1.DmlAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.DmlAction.newBuilder( - (com.google.spanner.executor.v1.DmlAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 23 && + action_ != com.google.spanner.executor.v1.DmlAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.DmlAction.newBuilder((com.google.spanner.executor.v1.DmlAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -3235,8 +2848,6 @@ public Builder mergeDml(com.google.spanner.executor.v1.DmlAction value) { return this; } /** - * - * * <pre> * Action to a DML. * </pre> @@ -3260,8 +2871,6 @@ public Builder clearDml() { return this; } /** - * - * * <pre> * Action to a DML. * </pre> @@ -3272,8 +2881,6 @@ public com.google.spanner.executor.v1.DmlAction.Builder getDmlBuilder() { return getDmlFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to a DML. * </pre> @@ -3292,8 +2899,6 @@ public com.google.spanner.executor.v1.DmlActionOrBuilder getDmlOrBuilder() { } } /** - * - * * <pre> * Action to a DML. * </pre> @@ -3301,19 +2906,14 @@ public com.google.spanner.executor.v1.DmlActionOrBuilder getDmlOrBuilder() { * <code>.google.spanner.executor.v1.DmlAction dml = 23;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.DmlAction, - com.google.spanner.executor.v1.DmlAction.Builder, - com.google.spanner.executor.v1.DmlActionOrBuilder> + com.google.spanner.executor.v1.DmlAction, com.google.spanner.executor.v1.DmlAction.Builder, com.google.spanner.executor.v1.DmlActionOrBuilder> getDmlFieldBuilder() { if (dmlBuilder_ == null) { if (!(actionCase_ == 23)) { action_ = com.google.spanner.executor.v1.DmlAction.getDefaultInstance(); } - dmlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.DmlAction, - com.google.spanner.executor.v1.DmlAction.Builder, - com.google.spanner.executor.v1.DmlActionOrBuilder>( + dmlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.DmlAction, com.google.spanner.executor.v1.DmlAction.Builder, com.google.spanner.executor.v1.DmlActionOrBuilder>( (com.google.spanner.executor.v1.DmlAction) action_, getParentForChildren(), isClean()); @@ -3325,19 +2925,13 @@ public com.google.spanner.executor.v1.DmlActionOrBuilder getDmlOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.BatchDmlAction, - com.google.spanner.executor.v1.BatchDmlAction.Builder, - com.google.spanner.executor.v1.BatchDmlActionOrBuilder> - batchDmlBuilder_; + com.google.spanner.executor.v1.BatchDmlAction, com.google.spanner.executor.v1.BatchDmlAction.Builder, com.google.spanner.executor.v1.BatchDmlActionOrBuilder> batchDmlBuilder_; /** - * - * * <pre> * Action to a batch DML. * </pre> * * <code>.google.spanner.executor.v1.BatchDmlAction batch_dml = 24;</code> - * * @return Whether the batchDml field is set. */ @java.lang.Override @@ -3345,14 +2939,11 @@ public boolean hasBatchDml() { return actionCase_ == 24; } /** - * - * * <pre> * Action to a batch DML. * </pre> * * <code>.google.spanner.executor.v1.BatchDmlAction batch_dml = 24;</code> - * * @return The batchDml. */ @java.lang.Override @@ -3370,8 +2961,6 @@ public com.google.spanner.executor.v1.BatchDmlAction getBatchDml() { } } /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -3392,8 +2981,6 @@ public Builder setBatchDml(com.google.spanner.executor.v1.BatchDmlAction value) return this; } /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -3412,8 +2999,6 @@ public Builder setBatchDml( return this; } /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -3422,13 +3007,10 @@ public Builder setBatchDml( */ public Builder mergeBatchDml(com.google.spanner.executor.v1.BatchDmlAction value) { if (batchDmlBuilder_ == null) { - if (actionCase_ == 24 - && action_ != com.google.spanner.executor.v1.BatchDmlAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.BatchDmlAction.newBuilder( - (com.google.spanner.executor.v1.BatchDmlAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 24 && + action_ != com.google.spanner.executor.v1.BatchDmlAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.BatchDmlAction.newBuilder((com.google.spanner.executor.v1.BatchDmlAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -3444,8 +3026,6 @@ public Builder mergeBatchDml(com.google.spanner.executor.v1.BatchDmlAction value return this; } /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -3469,8 +3049,6 @@ public Builder clearBatchDml() { return this; } /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -3481,8 +3059,6 @@ public com.google.spanner.executor.v1.BatchDmlAction.Builder getBatchDmlBuilder( return getBatchDmlFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -3501,8 +3077,6 @@ public com.google.spanner.executor.v1.BatchDmlActionOrBuilder getBatchDmlOrBuild } } /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -3510,19 +3084,14 @@ public com.google.spanner.executor.v1.BatchDmlActionOrBuilder getBatchDmlOrBuild * <code>.google.spanner.executor.v1.BatchDmlAction batch_dml = 24;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.BatchDmlAction, - com.google.spanner.executor.v1.BatchDmlAction.Builder, - com.google.spanner.executor.v1.BatchDmlActionOrBuilder> + com.google.spanner.executor.v1.BatchDmlAction, com.google.spanner.executor.v1.BatchDmlAction.Builder, com.google.spanner.executor.v1.BatchDmlActionOrBuilder> getBatchDmlFieldBuilder() { if (batchDmlBuilder_ == null) { if (!(actionCase_ == 24)) { action_ = com.google.spanner.executor.v1.BatchDmlAction.getDefaultInstance(); } - batchDmlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.BatchDmlAction, - com.google.spanner.executor.v1.BatchDmlAction.Builder, - com.google.spanner.executor.v1.BatchDmlActionOrBuilder>( + batchDmlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.BatchDmlAction, com.google.spanner.executor.v1.BatchDmlAction.Builder, com.google.spanner.executor.v1.BatchDmlActionOrBuilder>( (com.google.spanner.executor.v1.BatchDmlAction) action_, getParentForChildren(), isClean()); @@ -3534,19 +3103,13 @@ public com.google.spanner.executor.v1.BatchDmlActionOrBuilder getBatchDmlOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.WriteMutationsAction, - com.google.spanner.executor.v1.WriteMutationsAction.Builder, - com.google.spanner.executor.v1.WriteMutationsActionOrBuilder> - writeBuilder_; + com.google.spanner.executor.v1.WriteMutationsAction, com.google.spanner.executor.v1.WriteMutationsAction.Builder, com.google.spanner.executor.v1.WriteMutationsActionOrBuilder> writeBuilder_; /** - * - * * <pre> * Action to write a mutation. * </pre> * * <code>.google.spanner.executor.v1.WriteMutationsAction write = 25;</code> - * * @return Whether the write field is set. */ @java.lang.Override @@ -3554,14 +3117,11 @@ public boolean hasWrite() { return actionCase_ == 25; } /** - * - * * <pre> * Action to write a mutation. * </pre> * * <code>.google.spanner.executor.v1.WriteMutationsAction write = 25;</code> - * * @return The write. */ @java.lang.Override @@ -3579,8 +3139,6 @@ public com.google.spanner.executor.v1.WriteMutationsAction getWrite() { } } /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -3601,8 +3159,6 @@ public Builder setWrite(com.google.spanner.executor.v1.WriteMutationsAction valu return this; } /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -3621,8 +3177,6 @@ public Builder setWrite( return this; } /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -3631,14 +3185,10 @@ public Builder setWrite( */ public Builder mergeWrite(com.google.spanner.executor.v1.WriteMutationsAction value) { if (writeBuilder_ == null) { - if (actionCase_ == 25 - && action_ - != com.google.spanner.executor.v1.WriteMutationsAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.WriteMutationsAction.newBuilder( - (com.google.spanner.executor.v1.WriteMutationsAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 25 && + action_ != com.google.spanner.executor.v1.WriteMutationsAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.WriteMutationsAction.newBuilder((com.google.spanner.executor.v1.WriteMutationsAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -3654,8 +3204,6 @@ public Builder mergeWrite(com.google.spanner.executor.v1.WriteMutationsAction va return this; } /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -3679,8 +3227,6 @@ public Builder clearWrite() { return this; } /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -3691,8 +3237,6 @@ public com.google.spanner.executor.v1.WriteMutationsAction.Builder getWriteBuild return getWriteFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -3711,8 +3255,6 @@ public com.google.spanner.executor.v1.WriteMutationsActionOrBuilder getWriteOrBu } } /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -3720,19 +3262,14 @@ public com.google.spanner.executor.v1.WriteMutationsActionOrBuilder getWriteOrBu * <code>.google.spanner.executor.v1.WriteMutationsAction write = 25;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.WriteMutationsAction, - com.google.spanner.executor.v1.WriteMutationsAction.Builder, - com.google.spanner.executor.v1.WriteMutationsActionOrBuilder> + com.google.spanner.executor.v1.WriteMutationsAction, com.google.spanner.executor.v1.WriteMutationsAction.Builder, com.google.spanner.executor.v1.WriteMutationsActionOrBuilder> getWriteFieldBuilder() { if (writeBuilder_ == null) { if (!(actionCase_ == 25)) { action_ = com.google.spanner.executor.v1.WriteMutationsAction.getDefaultInstance(); } - writeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.WriteMutationsAction, - com.google.spanner.executor.v1.WriteMutationsAction.Builder, - com.google.spanner.executor.v1.WriteMutationsActionOrBuilder>( + writeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.WriteMutationsAction, com.google.spanner.executor.v1.WriteMutationsAction.Builder, com.google.spanner.executor.v1.WriteMutationsActionOrBuilder>( (com.google.spanner.executor.v1.WriteMutationsAction) action_, getParentForChildren(), isClean()); @@ -3744,19 +3281,13 @@ public com.google.spanner.executor.v1.WriteMutationsActionOrBuilder getWriteOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.PartitionedUpdateAction, - com.google.spanner.executor.v1.PartitionedUpdateAction.Builder, - com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder> - partitionedUpdateBuilder_; + com.google.spanner.executor.v1.PartitionedUpdateAction, com.google.spanner.executor.v1.PartitionedUpdateAction.Builder, com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder> partitionedUpdateBuilder_; /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> - * * @return Whether the partitionedUpdate field is set. */ @java.lang.Override @@ -3764,14 +3295,11 @@ public boolean hasPartitionedUpdate() { return actionCase_ == 27; } /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> - * * @return The partitionedUpdate. */ @java.lang.Override @@ -3789,16 +3317,13 @@ public com.google.spanner.executor.v1.PartitionedUpdateAction getPartitionedUpda } } /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> */ - public Builder setPartitionedUpdate( - com.google.spanner.executor.v1.PartitionedUpdateAction value) { + public Builder setPartitionedUpdate(com.google.spanner.executor.v1.PartitionedUpdateAction value) { if (partitionedUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3812,8 +3337,6 @@ public Builder setPartitionedUpdate( return this; } /** - * - * * <pre> * Action to a partitioned update. * </pre> @@ -3832,25 +3355,18 @@ public Builder setPartitionedUpdate( return this; } /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> */ - public Builder mergePartitionedUpdate( - com.google.spanner.executor.v1.PartitionedUpdateAction value) { + public Builder mergePartitionedUpdate(com.google.spanner.executor.v1.PartitionedUpdateAction value) { if (partitionedUpdateBuilder_ == null) { - if (actionCase_ == 27 - && action_ - != com.google.spanner.executor.v1.PartitionedUpdateAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.PartitionedUpdateAction.newBuilder( - (com.google.spanner.executor.v1.PartitionedUpdateAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 27 && + action_ != com.google.spanner.executor.v1.PartitionedUpdateAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.PartitionedUpdateAction.newBuilder((com.google.spanner.executor.v1.PartitionedUpdateAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -3866,8 +3382,6 @@ public Builder mergePartitionedUpdate( return this; } /** - * - * * <pre> * Action to a partitioned update. * </pre> @@ -3891,21 +3405,16 @@ public Builder clearPartitionedUpdate() { return this; } /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> */ - public com.google.spanner.executor.v1.PartitionedUpdateAction.Builder - getPartitionedUpdateBuilder() { + public com.google.spanner.executor.v1.PartitionedUpdateAction.Builder getPartitionedUpdateBuilder() { return getPartitionedUpdateFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to a partitioned update. * </pre> @@ -3913,8 +3422,7 @@ public Builder clearPartitionedUpdate() { * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder - getPartitionedUpdateOrBuilder() { + public com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder getPartitionedUpdateOrBuilder() { if ((actionCase_ == 27) && (partitionedUpdateBuilder_ != null)) { return partitionedUpdateBuilder_.getMessageOrBuilder(); } else { @@ -3925,8 +3433,6 @@ public Builder clearPartitionedUpdate() { } } /** - * - * * <pre> * Action to a partitioned update. * </pre> @@ -3934,19 +3440,14 @@ public Builder clearPartitionedUpdate() { * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.PartitionedUpdateAction, - com.google.spanner.executor.v1.PartitionedUpdateAction.Builder, - com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder> + com.google.spanner.executor.v1.PartitionedUpdateAction, com.google.spanner.executor.v1.PartitionedUpdateAction.Builder, com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder> getPartitionedUpdateFieldBuilder() { if (partitionedUpdateBuilder_ == null) { if (!(actionCase_ == 27)) { action_ = com.google.spanner.executor.v1.PartitionedUpdateAction.getDefaultInstance(); } - partitionedUpdateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.PartitionedUpdateAction, - com.google.spanner.executor.v1.PartitionedUpdateAction.Builder, - com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder>( + partitionedUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.PartitionedUpdateAction, com.google.spanner.executor.v1.PartitionedUpdateAction.Builder, com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder>( (com.google.spanner.executor.v1.PartitionedUpdateAction) action_, getParentForChildren(), isClean()); @@ -3958,20 +3459,14 @@ public Builder clearPartitionedUpdate() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.AdminAction, - com.google.spanner.executor.v1.AdminAction.Builder, - com.google.spanner.executor.v1.AdminActionOrBuilder> - adminBuilder_; + com.google.spanner.executor.v1.AdminAction, com.google.spanner.executor.v1.AdminAction.Builder, com.google.spanner.executor.v1.AdminActionOrBuilder> adminBuilder_; /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. * </pre> * * <code>.google.spanner.executor.v1.AdminAction admin = 30;</code> - * * @return Whether the admin field is set. */ @java.lang.Override @@ -3979,15 +3474,12 @@ public boolean hasAdmin() { return actionCase_ == 30; } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. * </pre> * * <code>.google.spanner.executor.v1.AdminAction admin = 30;</code> - * * @return The admin. */ @java.lang.Override @@ -4005,8 +3497,6 @@ public com.google.spanner.executor.v1.AdminAction getAdmin() { } } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -4028,8 +3518,6 @@ public Builder setAdmin(com.google.spanner.executor.v1.AdminAction value) { return this; } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -4037,7 +3525,8 @@ public Builder setAdmin(com.google.spanner.executor.v1.AdminAction value) { * * <code>.google.spanner.executor.v1.AdminAction admin = 30;</code> */ - public Builder setAdmin(com.google.spanner.executor.v1.AdminAction.Builder builderForValue) { + public Builder setAdmin( + com.google.spanner.executor.v1.AdminAction.Builder builderForValue) { if (adminBuilder_ == null) { action_ = builderForValue.build(); onChanged(); @@ -4048,8 +3537,6 @@ public Builder setAdmin(com.google.spanner.executor.v1.AdminAction.Builder build return this; } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -4059,13 +3546,10 @@ public Builder setAdmin(com.google.spanner.executor.v1.AdminAction.Builder build */ public Builder mergeAdmin(com.google.spanner.executor.v1.AdminAction value) { if (adminBuilder_ == null) { - if (actionCase_ == 30 - && action_ != com.google.spanner.executor.v1.AdminAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.AdminAction.newBuilder( - (com.google.spanner.executor.v1.AdminAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 30 && + action_ != com.google.spanner.executor.v1.AdminAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.AdminAction.newBuilder((com.google.spanner.executor.v1.AdminAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -4081,8 +3565,6 @@ public Builder mergeAdmin(com.google.spanner.executor.v1.AdminAction value) { return this; } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -4107,8 +3589,6 @@ public Builder clearAdmin() { return this; } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -4120,8 +3600,6 @@ public com.google.spanner.executor.v1.AdminAction.Builder getAdminBuilder() { return getAdminFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -4141,8 +3619,6 @@ public com.google.spanner.executor.v1.AdminActionOrBuilder getAdminOrBuilder() { } } /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -4151,19 +3627,14 @@ public com.google.spanner.executor.v1.AdminActionOrBuilder getAdminOrBuilder() { * <code>.google.spanner.executor.v1.AdminAction admin = 30;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.AdminAction, - com.google.spanner.executor.v1.AdminAction.Builder, - com.google.spanner.executor.v1.AdminActionOrBuilder> + com.google.spanner.executor.v1.AdminAction, com.google.spanner.executor.v1.AdminAction.Builder, com.google.spanner.executor.v1.AdminActionOrBuilder> getAdminFieldBuilder() { if (adminBuilder_ == null) { if (!(actionCase_ == 30)) { action_ = com.google.spanner.executor.v1.AdminAction.getDefaultInstance(); } - adminBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.AdminAction, - com.google.spanner.executor.v1.AdminAction.Builder, - com.google.spanner.executor.v1.AdminActionOrBuilder>( + adminBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.AdminAction, com.google.spanner.executor.v1.AdminAction.Builder, com.google.spanner.executor.v1.AdminActionOrBuilder>( (com.google.spanner.executor.v1.AdminAction) action_, getParentForChildren(), isClean()); @@ -4175,19 +3646,13 @@ public com.google.spanner.executor.v1.AdminActionOrBuilder getAdminOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.StartBatchTransactionAction, - com.google.spanner.executor.v1.StartBatchTransactionAction.Builder, - com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder> - startBatchTxnBuilder_; + com.google.spanner.executor.v1.StartBatchTransactionAction, com.google.spanner.executor.v1.StartBatchTransactionAction.Builder, com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder> startBatchTxnBuilder_; /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> - * * @return Whether the startBatchTxn field is set. */ @java.lang.Override @@ -4195,14 +3660,11 @@ public boolean hasStartBatchTxn() { return actionCase_ == 40; } /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> - * * @return The startBatchTxn. */ @java.lang.Override @@ -4220,16 +3682,13 @@ public com.google.spanner.executor.v1.StartBatchTransactionAction getStartBatchT } } /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> */ - public Builder setStartBatchTxn( - com.google.spanner.executor.v1.StartBatchTransactionAction value) { + public Builder setStartBatchTxn(com.google.spanner.executor.v1.StartBatchTransactionAction value) { if (startBatchTxnBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4243,8 +3702,6 @@ public Builder setStartBatchTxn( return this; } /** - * - * * <pre> * Action to start a batch transaction. * </pre> @@ -4263,26 +3720,18 @@ public Builder setStartBatchTxn( return this; } /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> */ - public Builder mergeStartBatchTxn( - com.google.spanner.executor.v1.StartBatchTransactionAction value) { + public Builder mergeStartBatchTxn(com.google.spanner.executor.v1.StartBatchTransactionAction value) { if (startBatchTxnBuilder_ == null) { - if (actionCase_ == 40 - && action_ - != com.google.spanner.executor.v1.StartBatchTransactionAction - .getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.StartBatchTransactionAction.newBuilder( - (com.google.spanner.executor.v1.StartBatchTransactionAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 40 && + action_ != com.google.spanner.executor.v1.StartBatchTransactionAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.StartBatchTransactionAction.newBuilder((com.google.spanner.executor.v1.StartBatchTransactionAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -4298,8 +3747,6 @@ public Builder mergeStartBatchTxn( return this; } /** - * - * * <pre> * Action to start a batch transaction. * </pre> @@ -4323,21 +3770,16 @@ public Builder clearStartBatchTxn() { return this; } /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> */ - public com.google.spanner.executor.v1.StartBatchTransactionAction.Builder - getStartBatchTxnBuilder() { + public com.google.spanner.executor.v1.StartBatchTransactionAction.Builder getStartBatchTxnBuilder() { return getStartBatchTxnFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to start a batch transaction. * </pre> @@ -4345,8 +3787,7 @@ public Builder clearStartBatchTxn() { * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder - getStartBatchTxnOrBuilder() { + public com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder getStartBatchTxnOrBuilder() { if ((actionCase_ == 40) && (startBatchTxnBuilder_ != null)) { return startBatchTxnBuilder_.getMessageOrBuilder(); } else { @@ -4357,8 +3798,6 @@ public Builder clearStartBatchTxn() { } } /** - * - * * <pre> * Action to start a batch transaction. * </pre> @@ -4366,19 +3805,14 @@ public Builder clearStartBatchTxn() { * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.StartBatchTransactionAction, - com.google.spanner.executor.v1.StartBatchTransactionAction.Builder, - com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder> + com.google.spanner.executor.v1.StartBatchTransactionAction, com.google.spanner.executor.v1.StartBatchTransactionAction.Builder, com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder> getStartBatchTxnFieldBuilder() { if (startBatchTxnBuilder_ == null) { if (!(actionCase_ == 40)) { action_ = com.google.spanner.executor.v1.StartBatchTransactionAction.getDefaultInstance(); } - startBatchTxnBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.StartBatchTransactionAction, - com.google.spanner.executor.v1.StartBatchTransactionAction.Builder, - com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder>( + startBatchTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.StartBatchTransactionAction, com.google.spanner.executor.v1.StartBatchTransactionAction.Builder, com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder>( (com.google.spanner.executor.v1.StartBatchTransactionAction) action_, getParentForChildren(), isClean()); @@ -4390,19 +3824,13 @@ public Builder clearStartBatchTxn() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CloseBatchTransactionAction, - com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder, - com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder> - closeBatchTxnBuilder_; + com.google.spanner.executor.v1.CloseBatchTransactionAction, com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder, com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder> closeBatchTxnBuilder_; /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> - * * @return Whether the closeBatchTxn field is set. */ @java.lang.Override @@ -4410,14 +3838,11 @@ public boolean hasCloseBatchTxn() { return actionCase_ == 41; } /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> - * * @return The closeBatchTxn. */ @java.lang.Override @@ -4435,16 +3860,13 @@ public com.google.spanner.executor.v1.CloseBatchTransactionAction getCloseBatchT } } /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> */ - public Builder setCloseBatchTxn( - com.google.spanner.executor.v1.CloseBatchTransactionAction value) { + public Builder setCloseBatchTxn(com.google.spanner.executor.v1.CloseBatchTransactionAction value) { if (closeBatchTxnBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4458,8 +3880,6 @@ public Builder setCloseBatchTxn( return this; } /** - * - * * <pre> * Action to close a batch transaction. * </pre> @@ -4478,26 +3898,18 @@ public Builder setCloseBatchTxn( return this; } /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> */ - public Builder mergeCloseBatchTxn( - com.google.spanner.executor.v1.CloseBatchTransactionAction value) { + public Builder mergeCloseBatchTxn(com.google.spanner.executor.v1.CloseBatchTransactionAction value) { if (closeBatchTxnBuilder_ == null) { - if (actionCase_ == 41 - && action_ - != com.google.spanner.executor.v1.CloseBatchTransactionAction - .getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.CloseBatchTransactionAction.newBuilder( - (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 41 && + action_ != com.google.spanner.executor.v1.CloseBatchTransactionAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.CloseBatchTransactionAction.newBuilder((com.google.spanner.executor.v1.CloseBatchTransactionAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -4513,8 +3925,6 @@ public Builder mergeCloseBatchTxn( return this; } /** - * - * * <pre> * Action to close a batch transaction. * </pre> @@ -4538,21 +3948,16 @@ public Builder clearCloseBatchTxn() { return this; } /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> */ - public com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder - getCloseBatchTxnBuilder() { + public com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder getCloseBatchTxnBuilder() { return getCloseBatchTxnFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to close a batch transaction. * </pre> @@ -4560,8 +3965,7 @@ public Builder clearCloseBatchTxn() { * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder - getCloseBatchTxnOrBuilder() { + public com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder getCloseBatchTxnOrBuilder() { if ((actionCase_ == 41) && (closeBatchTxnBuilder_ != null)) { return closeBatchTxnBuilder_.getMessageOrBuilder(); } else { @@ -4572,8 +3976,6 @@ public Builder clearCloseBatchTxn() { } } /** - * - * * <pre> * Action to close a batch transaction. * </pre> @@ -4581,19 +3983,14 @@ public Builder clearCloseBatchTxn() { * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CloseBatchTransactionAction, - com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder, - com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder> + com.google.spanner.executor.v1.CloseBatchTransactionAction, com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder, com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder> getCloseBatchTxnFieldBuilder() { if (closeBatchTxnBuilder_ == null) { if (!(actionCase_ == 41)) { action_ = com.google.spanner.executor.v1.CloseBatchTransactionAction.getDefaultInstance(); } - closeBatchTxnBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.CloseBatchTransactionAction, - com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder, - com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder>( + closeBatchTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.CloseBatchTransactionAction, com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder, com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder>( (com.google.spanner.executor.v1.CloseBatchTransactionAction) action_, getParentForChildren(), isClean()); @@ -4605,21 +4002,13 @@ public Builder clearCloseBatchTxn() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction, - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder, - com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder> - generateDbPartitionsReadBuilder_; + com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction, com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder, com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder> generateDbPartitionsReadBuilder_; /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> * @return Whether the generateDbPartitionsRead field is set. */ @java.lang.Override @@ -4627,48 +4016,35 @@ public boolean hasGenerateDbPartitionsRead() { return actionCase_ == 42; } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> * @return The generateDbPartitionsRead. */ @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - getGenerateDbPartitionsRead() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction getGenerateDbPartitionsRead() { if (generateDbPartitionsReadBuilder_ == null) { if (actionCase_ == 42) { return (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_; } - return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - .getDefaultInstance(); + return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance(); } else { if (actionCase_ == 42) { return generateDbPartitionsReadBuilder_.getMessage(); } - return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - .getDefaultInstance(); + return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance(); } } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ - public Builder setGenerateDbPartitionsRead( - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction value) { + public Builder setGenerateDbPartitionsRead(com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction value) { if (generateDbPartitionsReadBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4682,15 +4058,11 @@ public Builder setGenerateDbPartitionsRead( return this; } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ public Builder setGenerateDbPartitionsRead( com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder builderForValue) { @@ -4704,28 +4076,18 @@ public Builder setGenerateDbPartitionsRead( return this; } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ - public Builder mergeGenerateDbPartitionsRead( - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction value) { + public Builder mergeGenerateDbPartitionsRead(com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction value) { if (generateDbPartitionsReadBuilder_ == null) { - if (actionCase_ == 42 - && action_ - != com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - .getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.newBuilder( - (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 42 && + action_ != com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.newBuilder((com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -4741,15 +4103,11 @@ public Builder mergeGenerateDbPartitionsRead( return this; } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ public Builder clearGenerateDbPartitionsRead() { if (generateDbPartitionsReadBuilder_ == null) { @@ -4768,70 +4126,49 @@ public Builder clearGenerateDbPartitionsRead() { return this; } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ - public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder - getGenerateDbPartitionsReadBuilder() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder getGenerateDbPartitionsReadBuilder() { return getGenerateDbPartitionsReadFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder - getGenerateDbPartitionsReadOrBuilder() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder getGenerateDbPartitionsReadOrBuilder() { if ((actionCase_ == 42) && (generateDbPartitionsReadBuilder_ != null)) { return generateDbPartitionsReadBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 42) { return (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_; } - return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction - .getDefaultInstance(); + return com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance(); } } /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction, - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder, - com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder> + com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction, com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder, com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder> getGenerateDbPartitionsReadFieldBuilder() { if (generateDbPartitionsReadBuilder_ == null) { if (!(actionCase_ == 42)) { - action_ = - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance(); - } - generateDbPartitionsReadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction, - com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder, - com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder>( + action_ = com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.getDefaultInstance(); + } + generateDbPartitionsReadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction, com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction.Builder, com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder>( (com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction) action_, getParentForChildren(), isClean()); @@ -4843,21 +4180,13 @@ public Builder clearGenerateDbPartitionsRead() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction, - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder, - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder> - generateDbPartitionsQueryBuilder_; + com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction, com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder, com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder> generateDbPartitionsQueryBuilder_; /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> * @return Whether the generateDbPartitionsQuery field is set. */ @java.lang.Override @@ -4865,48 +4194,35 @@ public boolean hasGenerateDbPartitionsQuery() { return actionCase_ == 43; } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> * @return The generateDbPartitionsQuery. */ @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - getGenerateDbPartitionsQuery() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction getGenerateDbPartitionsQuery() { if (generateDbPartitionsQueryBuilder_ == null) { if (actionCase_ == 43) { return (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_; } - return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - .getDefaultInstance(); + return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance(); } else { if (actionCase_ == 43) { return generateDbPartitionsQueryBuilder_.getMessage(); } - return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - .getDefaultInstance(); + return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance(); } } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ - public Builder setGenerateDbPartitionsQuery( - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction value) { + public Builder setGenerateDbPartitionsQuery(com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction value) { if (generateDbPartitionsQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4920,15 +4236,11 @@ public Builder setGenerateDbPartitionsQuery( return this; } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ public Builder setGenerateDbPartitionsQuery( com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder builderForValue) { @@ -4942,28 +4254,18 @@ public Builder setGenerateDbPartitionsQuery( return this; } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ - public Builder mergeGenerateDbPartitionsQuery( - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction value) { + public Builder mergeGenerateDbPartitionsQuery(com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction value) { if (generateDbPartitionsQueryBuilder_ == null) { - if (actionCase_ == 43 - && action_ - != com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - .getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.newBuilder( - (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 43 && + action_ != com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.newBuilder((com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -4979,15 +4281,11 @@ public Builder mergeGenerateDbPartitionsQuery( return this; } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ public Builder clearGenerateDbPartitionsQuery() { if (generateDbPartitionsQueryBuilder_ == null) { @@ -5006,71 +4304,49 @@ public Builder clearGenerateDbPartitionsQuery() { return this; } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ - public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder - getGenerateDbPartitionsQueryBuilder() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder getGenerateDbPartitionsQueryBuilder() { return getGenerateDbPartitionsQueryFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder - getGenerateDbPartitionsQueryOrBuilder() { + public com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder getGenerateDbPartitionsQueryOrBuilder() { if ((actionCase_ == 43) && (generateDbPartitionsQueryBuilder_ != null)) { return generateDbPartitionsQueryBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 43) { return (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_; } - return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - .getDefaultInstance(); + return com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance(); } } /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction, - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder, - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder> + com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction, com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder, com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder> getGenerateDbPartitionsQueryFieldBuilder() { if (generateDbPartitionsQueryBuilder_ == null) { if (!(actionCase_ == 43)) { - action_ = - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - .getDefaultInstance(); - } - generateDbPartitionsQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction, - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder, - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder>( + action_ = com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.getDefaultInstance(); + } + generateDbPartitionsQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction, com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction.Builder, com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder>( (com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction) action_, getParentForChildren(), isClean()); @@ -5082,19 +4358,13 @@ public Builder clearGenerateDbPartitionsQuery() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ExecutePartitionAction, - com.google.spanner.executor.v1.ExecutePartitionAction.Builder, - com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder> - executePartitionBuilder_; + com.google.spanner.executor.v1.ExecutePartitionAction, com.google.spanner.executor.v1.ExecutePartitionAction.Builder, com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder> executePartitionBuilder_; /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> - * * @return Whether the executePartition field is set. */ @java.lang.Override @@ -5102,14 +4372,11 @@ public boolean hasExecutePartition() { return actionCase_ == 44; } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> - * * @return The executePartition. */ @java.lang.Override @@ -5127,16 +4394,13 @@ public com.google.spanner.executor.v1.ExecutePartitionAction getExecutePartition } } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> */ - public Builder setExecutePartition( - com.google.spanner.executor.v1.ExecutePartitionAction value) { + public Builder setExecutePartition(com.google.spanner.executor.v1.ExecutePartitionAction value) { if (executePartitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5150,8 +4414,6 @@ public Builder setExecutePartition( return this; } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> @@ -5170,25 +4432,18 @@ public Builder setExecutePartition( return this; } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> */ - public Builder mergeExecutePartition( - com.google.spanner.executor.v1.ExecutePartitionAction value) { + public Builder mergeExecutePartition(com.google.spanner.executor.v1.ExecutePartitionAction value) { if (executePartitionBuilder_ == null) { - if (actionCase_ == 44 - && action_ - != com.google.spanner.executor.v1.ExecutePartitionAction.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.ExecutePartitionAction.newBuilder( - (com.google.spanner.executor.v1.ExecutePartitionAction) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 44 && + action_ != com.google.spanner.executor.v1.ExecutePartitionAction.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.ExecutePartitionAction.newBuilder((com.google.spanner.executor.v1.ExecutePartitionAction) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -5204,8 +4459,6 @@ public Builder mergeExecutePartition( return this; } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> @@ -5229,21 +4482,16 @@ public Builder clearExecutePartition() { return this; } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> */ - public com.google.spanner.executor.v1.ExecutePartitionAction.Builder - getExecutePartitionBuilder() { + public com.google.spanner.executor.v1.ExecutePartitionAction.Builder getExecutePartitionBuilder() { return getExecutePartitionFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> @@ -5251,8 +4499,7 @@ public Builder clearExecutePartition() { * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder - getExecutePartitionOrBuilder() { + public com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder getExecutePartitionOrBuilder() { if ((actionCase_ == 44) && (executePartitionBuilder_ != null)) { return executePartitionBuilder_.getMessageOrBuilder(); } else { @@ -5263,8 +4510,6 @@ public Builder clearExecutePartition() { } } /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> @@ -5272,19 +4517,14 @@ public Builder clearExecutePartition() { * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ExecutePartitionAction, - com.google.spanner.executor.v1.ExecutePartitionAction.Builder, - com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder> + com.google.spanner.executor.v1.ExecutePartitionAction, com.google.spanner.executor.v1.ExecutePartitionAction.Builder, com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder> getExecutePartitionFieldBuilder() { if (executePartitionBuilder_ == null) { if (!(actionCase_ == 44)) { action_ = com.google.spanner.executor.v1.ExecutePartitionAction.getDefaultInstance(); } - executePartitionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ExecutePartitionAction, - com.google.spanner.executor.v1.ExecutePartitionAction.Builder, - com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder>( + executePartitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.ExecutePartitionAction, com.google.spanner.executor.v1.ExecutePartitionAction.Builder, com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder>( (com.google.spanner.executor.v1.ExecutePartitionAction) action_, getParentForChildren(), isClean()); @@ -5296,20 +4536,13 @@ public Builder clearExecutePartition() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ExecuteChangeStreamQuery, - com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder, - com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder> - executeChangeStreamQueryBuilder_; + com.google.spanner.executor.v1.ExecuteChangeStreamQuery, com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder, com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder> executeChangeStreamQueryBuilder_; /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> - * + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> * @return Whether the executeChangeStreamQuery field is set. */ @java.lang.Override @@ -5317,15 +4550,11 @@ public boolean hasExecuteChangeStreamQuery() { return actionCase_ == 50; } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> - * + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> * @return The executeChangeStreamQuery. */ @java.lang.Override @@ -5343,17 +4572,13 @@ public com.google.spanner.executor.v1.ExecuteChangeStreamQuery getExecuteChangeS } } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ - public Builder setExecuteChangeStreamQuery( - com.google.spanner.executor.v1.ExecuteChangeStreamQuery value) { + public Builder setExecuteChangeStreamQuery(com.google.spanner.executor.v1.ExecuteChangeStreamQuery value) { if (executeChangeStreamQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5367,14 +4592,11 @@ public Builder setExecuteChangeStreamQuery( return this; } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ public Builder setExecuteChangeStreamQuery( com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder builderForValue) { @@ -5388,26 +4610,18 @@ public Builder setExecuteChangeStreamQuery( return this; } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ - public Builder mergeExecuteChangeStreamQuery( - com.google.spanner.executor.v1.ExecuteChangeStreamQuery value) { + public Builder mergeExecuteChangeStreamQuery(com.google.spanner.executor.v1.ExecuteChangeStreamQuery value) { if (executeChangeStreamQueryBuilder_ == null) { - if (actionCase_ == 50 - && action_ - != com.google.spanner.executor.v1.ExecuteChangeStreamQuery.getDefaultInstance()) { - action_ = - com.google.spanner.executor.v1.ExecuteChangeStreamQuery.newBuilder( - (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 50 && + action_ != com.google.spanner.executor.v1.ExecuteChangeStreamQuery.getDefaultInstance()) { + action_ = com.google.spanner.executor.v1.ExecuteChangeStreamQuery.newBuilder((com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -5423,14 +4637,11 @@ public Builder mergeExecuteChangeStreamQuery( return this; } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ public Builder clearExecuteChangeStreamQuery() { if (executeChangeStreamQueryBuilder_ == null) { @@ -5449,32 +4660,24 @@ public Builder clearExecuteChangeStreamQuery() { return this; } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ - public com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder - getExecuteChangeStreamQueryBuilder() { + public com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder getExecuteChangeStreamQueryBuilder() { return getExecuteChangeStreamQueryFieldBuilder().getBuilder(); } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder - getExecuteChangeStreamQueryOrBuilder() { + public com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder getExecuteChangeStreamQueryOrBuilder() { if ((actionCase_ == 50) && (executeChangeStreamQueryBuilder_ != null)) { return executeChangeStreamQueryBuilder_.getMessageOrBuilder(); } else { @@ -5485,29 +4688,21 @@ public Builder clearExecuteChangeStreamQuery() { } } /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ExecuteChangeStreamQuery, - com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder, - com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder> + com.google.spanner.executor.v1.ExecuteChangeStreamQuery, com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder, com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder> getExecuteChangeStreamQueryFieldBuilder() { if (executeChangeStreamQueryBuilder_ == null) { if (!(actionCase_ == 50)) { action_ = com.google.spanner.executor.v1.ExecuteChangeStreamQuery.getDefaultInstance(); } - executeChangeStreamQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ExecuteChangeStreamQuery, - com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder, - com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder>( + executeChangeStreamQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.ExecuteChangeStreamQuery, com.google.spanner.executor.v1.ExecuteChangeStreamQuery.Builder, com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder>( (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_, getParentForChildren(), isClean()); @@ -5517,9 +4712,9 @@ public Builder clearExecuteChangeStreamQuery() { onChanged(); return executeChangeStreamQueryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5529,12 +4724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.SpannerAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.SpannerAction) private static final com.google.spanner.executor.v1.SpannerAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.SpannerAction(); } @@ -5543,27 +4738,27 @@ public static com.google.spanner.executor.v1.SpannerAction getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<SpannerAction> PARSER = - new com.google.protobuf.AbstractParser<SpannerAction>() { - @java.lang.Override - public SpannerAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<SpannerAction> + PARSER = new com.google.protobuf.AbstractParser<SpannerAction>() { + @java.lang.Override + public SpannerAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<SpannerAction> parser() { return PARSER; @@ -5578,4 +4773,6 @@ public com.google.protobuf.Parser<SpannerAction> getParserForType() { public com.google.spanner.executor.v1.SpannerAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java similarity index 83% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java index 9925dc008c2..8c499cf18ec 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 interface SpannerActionOrBuilder - extends +public interface SpannerActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.SpannerAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -33,13 +15,10 @@ public interface SpannerActionOrBuilder * </pre> * * <code>string database_path = 1;</code> - * * @return The databasePath. */ java.lang.String getDatabasePath(); /** - * - * * <pre> * Database against which to perform action. * In a context where a series of actions take place, an action may omit @@ -47,38 +26,30 @@ public interface SpannerActionOrBuilder * </pre> * * <code>string database_path = 1;</code> - * * @return The bytes for databasePath. */ - com.google.protobuf.ByteString getDatabasePathBytes(); + com.google.protobuf.ByteString + getDatabasePathBytes(); /** - * - * * <pre> * Action to start a transaction. * </pre> * * <code>.google.spanner.executor.v1.StartTransactionAction start = 10;</code> - * * @return Whether the start field is set. */ boolean hasStart(); /** - * - * * <pre> * Action to start a transaction. * </pre> * * <code>.google.spanner.executor.v1.StartTransactionAction start = 10;</code> - * * @return The start. */ com.google.spanner.executor.v1.StartTransactionAction getStart(); /** - * - * * <pre> * Action to start a transaction. * </pre> @@ -88,32 +59,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.StartTransactionActionOrBuilder getStartOrBuilder(); /** - * - * * <pre> * Action to finish a transaction. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction finish = 11;</code> - * * @return Whether the finish field is set. */ boolean hasFinish(); /** - * - * * <pre> * Action to finish a transaction. * </pre> * * <code>.google.spanner.executor.v1.FinishTransactionAction finish = 11;</code> - * * @return The finish. */ com.google.spanner.executor.v1.FinishTransactionAction getFinish(); /** - * - * * <pre> * Action to finish a transaction. * </pre> @@ -123,32 +86,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.FinishTransactionActionOrBuilder getFinishOrBuilder(); /** - * - * * <pre> * Action to do a normal read. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 20;</code> - * * @return Whether the read field is set. */ boolean hasRead(); /** - * - * * <pre> * Action to do a normal read. * </pre> * * <code>.google.spanner.executor.v1.ReadAction read = 20;</code> - * * @return The read. */ com.google.spanner.executor.v1.ReadAction getRead(); /** - * - * * <pre> * Action to do a normal read. * </pre> @@ -158,32 +113,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.ReadActionOrBuilder getReadOrBuilder(); /** - * - * * <pre> * Action to do a query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 21;</code> - * * @return Whether the query field is set. */ boolean hasQuery(); /** - * - * * <pre> * Action to do a query. * </pre> * * <code>.google.spanner.executor.v1.QueryAction query = 21;</code> - * * @return The query. */ com.google.spanner.executor.v1.QueryAction getQuery(); /** - * - * * <pre> * Action to do a query. * </pre> @@ -193,32 +140,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.QueryActionOrBuilder getQueryOrBuilder(); /** - * - * * <pre> * Action to buffer a mutation. * </pre> * * <code>.google.spanner.executor.v1.MutationAction mutation = 22;</code> - * * @return Whether the mutation field is set. */ boolean hasMutation(); /** - * - * * <pre> * Action to buffer a mutation. * </pre> * * <code>.google.spanner.executor.v1.MutationAction mutation = 22;</code> - * * @return The mutation. */ com.google.spanner.executor.v1.MutationAction getMutation(); /** - * - * * <pre> * Action to buffer a mutation. * </pre> @@ -228,32 +167,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.MutationActionOrBuilder getMutationOrBuilder(); /** - * - * * <pre> * Action to a DML. * </pre> * * <code>.google.spanner.executor.v1.DmlAction dml = 23;</code> - * * @return Whether the dml field is set. */ boolean hasDml(); /** - * - * * <pre> * Action to a DML. * </pre> * * <code>.google.spanner.executor.v1.DmlAction dml = 23;</code> - * * @return The dml. */ com.google.spanner.executor.v1.DmlAction getDml(); /** - * - * * <pre> * Action to a DML. * </pre> @@ -263,32 +194,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.DmlActionOrBuilder getDmlOrBuilder(); /** - * - * * <pre> * Action to a batch DML. * </pre> * * <code>.google.spanner.executor.v1.BatchDmlAction batch_dml = 24;</code> - * * @return Whether the batchDml field is set. */ boolean hasBatchDml(); /** - * - * * <pre> * Action to a batch DML. * </pre> * * <code>.google.spanner.executor.v1.BatchDmlAction batch_dml = 24;</code> - * * @return The batchDml. */ com.google.spanner.executor.v1.BatchDmlAction getBatchDml(); /** - * - * * <pre> * Action to a batch DML. * </pre> @@ -298,32 +221,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.BatchDmlActionOrBuilder getBatchDmlOrBuilder(); /** - * - * * <pre> * Action to write a mutation. * </pre> * * <code>.google.spanner.executor.v1.WriteMutationsAction write = 25;</code> - * * @return Whether the write field is set. */ boolean hasWrite(); /** - * - * * <pre> * Action to write a mutation. * </pre> * * <code>.google.spanner.executor.v1.WriteMutationsAction write = 25;</code> - * * @return The write. */ com.google.spanner.executor.v1.WriteMutationsAction getWrite(); /** - * - * * <pre> * Action to write a mutation. * </pre> @@ -333,32 +248,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.WriteMutationsActionOrBuilder getWriteOrBuilder(); /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> - * * @return Whether the partitionedUpdate field is set. */ boolean hasPartitionedUpdate(); /** - * - * * <pre> * Action to a partitioned update. * </pre> * * <code>.google.spanner.executor.v1.PartitionedUpdateAction partitioned_update = 27;</code> - * * @return The partitionedUpdate. */ com.google.spanner.executor.v1.PartitionedUpdateAction getPartitionedUpdate(); /** - * - * * <pre> * Action to a partitioned update. * </pre> @@ -368,34 +275,26 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.PartitionedUpdateActionOrBuilder getPartitionedUpdateOrBuilder(); /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. * </pre> * * <code>.google.spanner.executor.v1.AdminAction admin = 30;</code> - * * @return Whether the admin field is set. */ boolean hasAdmin(); /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. * </pre> * * <code>.google.spanner.executor.v1.AdminAction admin = 30;</code> - * * @return The admin. */ com.google.spanner.executor.v1.AdminAction getAdmin(); /** - * - * * <pre> * Action that contains any administrative operation, like database, * instance manipulation. @@ -406,32 +305,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.AdminActionOrBuilder getAdminOrBuilder(); /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> - * * @return Whether the startBatchTxn field is set. */ boolean hasStartBatchTxn(); /** - * - * * <pre> * Action to start a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.StartBatchTransactionAction start_batch_txn = 40;</code> - * * @return The startBatchTxn. */ com.google.spanner.executor.v1.StartBatchTransactionAction getStartBatchTxn(); /** - * - * * <pre> * Action to start a batch transaction. * </pre> @@ -441,32 +332,24 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder getStartBatchTxnOrBuilder(); /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> - * * @return Whether the closeBatchTxn field is set. */ boolean hasCloseBatchTxn(); /** - * - * * <pre> * Action to close a batch transaction. * </pre> * * <code>.google.spanner.executor.v1.CloseBatchTransactionAction close_batch_txn = 41;</code> - * * @return The closeBatchTxn. */ com.google.spanner.executor.v1.CloseBatchTransactionAction getCloseBatchTxn(); /** - * - * * <pre> * Action to close a batch transaction. * </pre> @@ -476,116 +359,78 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.CloseBatchTransactionActionOrBuilder getCloseBatchTxnOrBuilder(); /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> * @return Whether the generateDbPartitionsRead field is set. */ boolean hasGenerateDbPartitionsRead(); /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> * @return The generateDbPartitionsRead. */ com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction getGenerateDbPartitionsRead(); /** - * - * * <pre> * Action to generate database partitions for batch read. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForReadAction generate_db_partitions_read = 42;</code> */ - com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder - getGenerateDbPartitionsReadOrBuilder(); + com.google.spanner.executor.v1.GenerateDbPartitionsForReadActionOrBuilder getGenerateDbPartitionsReadOrBuilder(); /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> * @return Whether the generateDbPartitionsQuery field is set. */ boolean hasGenerateDbPartitionsQuery(); /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> - * + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> * @return The generateDbPartitionsQuery. */ com.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction getGenerateDbPartitionsQuery(); /** - * - * * <pre> * Action to generate database partitions for batch query. * </pre> * - * <code> - * .google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43; - * </code> + * <code>.google.spanner.executor.v1.GenerateDbPartitionsForQueryAction generate_db_partitions_query = 43;</code> */ - com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder - getGenerateDbPartitionsQueryOrBuilder(); + com.google.spanner.executor.v1.GenerateDbPartitionsForQueryActionOrBuilder getGenerateDbPartitionsQueryOrBuilder(); /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> - * * @return Whether the executePartition field is set. */ boolean hasExecutePartition(); /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> * * <code>.google.spanner.executor.v1.ExecutePartitionAction execute_partition = 44;</code> - * * @return The executePartition. */ com.google.spanner.executor.v1.ExecutePartitionAction getExecutePartition(); /** - * - * * <pre> * Action to execute batch actions on generated partitions. * </pre> @@ -595,43 +440,31 @@ public interface SpannerActionOrBuilder com.google.spanner.executor.v1.ExecutePartitionActionOrBuilder getExecutePartitionOrBuilder(); /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> - * + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> * @return Whether the executeChangeStreamQuery field is set. */ boolean hasExecuteChangeStreamQuery(); /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> - * + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> * @return The executeChangeStreamQuery. */ com.google.spanner.executor.v1.ExecuteChangeStreamQuery getExecuteChangeStreamQuery(); /** - * - * * <pre> * Action to execute change stream query. * </pre> * - * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50; - * </code> + * <code>.google.spanner.executor.v1.ExecuteChangeStreamQuery execute_change_stream_query = 50;</code> */ - com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder - getExecuteChangeStreamQueryOrBuilder(); + com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder getExecuteChangeStreamQueryOrBuilder(); com.google.spanner.executor.v1.SpannerAction.ActionCase getActionCase(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java similarity index 76% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java index bbae0a9f28f..36dd1b97bd2 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcome.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * SpannerActionOutcome defines a result of execution of a single SpannerAction. * </pre> * * Protobuf type {@code google.spanner.executor.v1.SpannerActionOutcome} */ -public final class SpannerActionOutcome extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpannerActionOutcome extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.SpannerActionOutcome) SpannerActionOutcomeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpannerActionOutcome.newBuilder() to construct. private SpannerActionOutcome(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private SpannerActionOutcome() { batchTxnId_ = com.google.protobuf.ByteString.EMPTY; dbPartition_ = java.util.Collections.emptyList(); @@ -46,38 +28,34 @@ private SpannerActionOutcome() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpannerActionOutcome(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerActionOutcome_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerActionOutcome_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.SpannerActionOutcome.class, - com.google.spanner.executor.v1.SpannerActionOutcome.Builder.class); + com.google.spanner.executor.v1.SpannerActionOutcome.class, com.google.spanner.executor.v1.SpannerActionOutcome.Builder.class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. * </pre> * * <code>optional .google.rpc.Status status = 1;</code> - * * @return Whether the status field is set. */ @java.lang.Override @@ -85,15 +63,12 @@ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. * </pre> * * <code>optional .google.rpc.Status status = 1;</code> - * * @return The status. */ @java.lang.Override @@ -101,8 +76,6 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -118,14 +91,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int COMMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp commitTime_; /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> * * <code>optional .google.protobuf.Timestamp commit_time = 2;</code> - * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -133,14 +103,11 @@ public boolean hasCommitTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> * * <code>optional .google.protobuf.Timestamp commit_time = 2;</code> - * * @return The commitTime. */ @java.lang.Override @@ -148,8 +115,6 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> @@ -164,15 +129,12 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { public static final int READ_RESULT_FIELD_NUMBER = 3; private com.google.spanner.executor.v1.ReadResult readResult_; /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. * </pre> * * <code>optional .google.spanner.executor.v1.ReadResult read_result = 3;</code> - * * @return Whether the readResult field is set. */ @java.lang.Override @@ -180,26 +142,19 @@ public boolean hasReadResult() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. * </pre> * * <code>optional .google.spanner.executor.v1.ReadResult read_result = 3;</code> - * * @return The readResult. */ @java.lang.Override public com.google.spanner.executor.v1.ReadResult getReadResult() { - return readResult_ == null - ? com.google.spanner.executor.v1.ReadResult.getDefaultInstance() - : readResult_; + return readResult_ == null ? com.google.spanner.executor.v1.ReadResult.getDefaultInstance() : readResult_; } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -209,23 +164,18 @@ public com.google.spanner.executor.v1.ReadResult getReadResult() { */ @java.lang.Override public com.google.spanner.executor.v1.ReadResultOrBuilder getReadResultOrBuilder() { - return readResult_ == null - ? com.google.spanner.executor.v1.ReadResult.getDefaultInstance() - : readResult_; + return readResult_ == null ? com.google.spanner.executor.v1.ReadResult.getDefaultInstance() : readResult_; } public static final int QUERY_RESULT_FIELD_NUMBER = 4; private com.google.spanner.executor.v1.QueryResult queryResult_; /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. * </pre> * * <code>optional .google.spanner.executor.v1.QueryResult query_result = 4;</code> - * * @return Whether the queryResult field is set. */ @java.lang.Override @@ -233,26 +183,19 @@ public boolean hasQueryResult() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. * </pre> * * <code>optional .google.spanner.executor.v1.QueryResult query_result = 4;</code> - * * @return The queryResult. */ @java.lang.Override public com.google.spanner.executor.v1.QueryResult getQueryResult() { - return queryResult_ == null - ? com.google.spanner.executor.v1.QueryResult.getDefaultInstance() - : queryResult_; + return queryResult_ == null ? com.google.spanner.executor.v1.QueryResult.getDefaultInstance() : queryResult_; } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -262,16 +205,12 @@ public com.google.spanner.executor.v1.QueryResult getQueryResult() { */ @java.lang.Override public com.google.spanner.executor.v1.QueryResultOrBuilder getQueryResultOrBuilder() { - return queryResult_ == null - ? com.google.spanner.executor.v1.QueryResult.getDefaultInstance() - : queryResult_; + return queryResult_ == null ? com.google.spanner.executor.v1.QueryResult.getDefaultInstance() : queryResult_; } public static final int TRANSACTION_RESTARTED_FIELD_NUMBER = 5; private boolean transactionRestarted_ = false; /** - * - * * <pre> * This bit indicates that Spanner has restarted the current transaction. It * means that the client should replay all the reads and writes. @@ -280,7 +219,6 @@ public com.google.spanner.executor.v1.QueryResultOrBuilder getQueryResultOrBuild * </pre> * * <code>optional bool transaction_restarted = 5;</code> - * * @return Whether the transactionRestarted field is set. */ @java.lang.Override @@ -288,8 +226,6 @@ public boolean hasTransactionRestarted() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * This bit indicates that Spanner has restarted the current transaction. It * means that the client should replay all the reads and writes. @@ -298,7 +234,6 @@ public boolean hasTransactionRestarted() { * </pre> * * <code>optional bool transaction_restarted = 5;</code> - * * @return The transactionRestarted. */ @java.lang.Override @@ -309,15 +244,12 @@ public boolean getTransactionRestarted() { public static final int BATCH_TXN_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString batchTxnId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * * <pre> * In successful StartBatchTransactionAction outcomes, this contains the ID of * the transaction. * </pre> * * <code>optional bytes batch_txn_id = 6;</code> - * * @return Whether the batchTxnId field is set. */ @java.lang.Override @@ -325,15 +257,12 @@ public boolean hasBatchTxnId() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * * <pre> * In successful StartBatchTransactionAction outcomes, this contains the ID of * the transaction. * </pre> * * <code>optional bytes batch_txn_id = 6;</code> - * * @return The batchTxnId. */ @java.lang.Override @@ -342,12 +271,9 @@ public com.google.protobuf.ByteString getBatchTxnId() { } public static final int DB_PARTITION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.BatchPartition> dbPartition_; /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -360,8 +286,6 @@ public java.util.List<com.google.spanner.executor.v1.BatchPartition> getDbPartit return dbPartition_; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -370,13 +294,11 @@ public java.util.List<com.google.spanner.executor.v1.BatchPartition> getDbPartit * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.BatchPartitionOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.BatchPartitionOrBuilder> getDbPartitionOrBuilderList() { return dbPartition_; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -389,8 +311,6 @@ public int getDbPartitionCount() { return dbPartition_.size(); } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -403,8 +323,6 @@ public com.google.spanner.executor.v1.BatchPartition getDbPartition(int index) { return dbPartition_.get(index); } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -413,21 +331,19 @@ public com.google.spanner.executor.v1.BatchPartition getDbPartition(int index) { * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.BatchPartitionOrBuilder getDbPartitionOrBuilder(int index) { + public com.google.spanner.executor.v1.BatchPartitionOrBuilder getDbPartitionOrBuilder( + int index) { return dbPartition_.get(index); } public static final int ADMIN_RESULT_FIELD_NUMBER = 8; private com.google.spanner.executor.v1.AdminResult adminResult_; /** - * - * * <pre> * Result of admin related actions. * </pre> * * <code>optional .google.spanner.executor.v1.AdminResult admin_result = 8;</code> - * * @return Whether the adminResult field is set. */ @java.lang.Override @@ -435,25 +351,18 @@ public boolean hasAdminResult() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * * <pre> * Result of admin related actions. * </pre> * * <code>optional .google.spanner.executor.v1.AdminResult admin_result = 8;</code> - * * @return The adminResult. */ @java.lang.Override public com.google.spanner.executor.v1.AdminResult getAdminResult() { - return adminResult_ == null - ? com.google.spanner.executor.v1.AdminResult.getDefaultInstance() - : adminResult_; + return adminResult_ == null ? com.google.spanner.executor.v1.AdminResult.getDefaultInstance() : adminResult_; } /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -462,136 +371,107 @@ public com.google.spanner.executor.v1.AdminResult getAdminResult() { */ @java.lang.Override public com.google.spanner.executor.v1.AdminResultOrBuilder getAdminResultOrBuilder() { - return adminResult_ == null - ? com.google.spanner.executor.v1.AdminResult.getDefaultInstance() - : adminResult_; + return adminResult_ == null ? com.google.spanner.executor.v1.AdminResult.getDefaultInstance() : adminResult_; } public static final int DML_ROWS_MODIFIED_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList dmlRowsModified_; /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @return A list containing the dmlRowsModified. */ @java.lang.Override - public java.util.List<java.lang.Long> getDmlRowsModifiedList() { + public java.util.List<java.lang.Long> + getDmlRowsModifiedList() { return dmlRowsModified_; } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @return The count of dmlRowsModified. */ public int getDmlRowsModifiedCount() { return dmlRowsModified_.size(); } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @param index The index of the element to return. * @return The dmlRowsModified at the given index. */ public long getDmlRowsModified(int index) { return dmlRowsModified_.getLong(index); } - private int dmlRowsModifiedMemoizedSerializedSize = -1; public static final int CHANGE_STREAM_RECORDS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord> changeStreamRecords_; /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ @java.lang.Override - public java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord> - getChangeStreamRecordsList() { + public java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord> getChangeStreamRecordsList() { return changeStreamRecords_; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> getChangeStreamRecordsOrBuilderList() { return changeStreamRecords_; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ @java.lang.Override public int getChangeStreamRecordsCount() { return changeStreamRecords_.size(); } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ @java.lang.Override public com.google.spanner.executor.v1.ChangeStreamRecord getChangeStreamRecords(int index) { return changeStreamRecords_.get(index); } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ @java.lang.Override public com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder getChangeStreamRecordsOrBuilder( @@ -600,7 +480,6 @@ public com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder getChangeStrea } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -612,7 +491,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStatus()); @@ -658,46 +538,54 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCommitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCommitTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReadResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getReadResult()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getQueryResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getQueryResult()); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, transactionRestarted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, transactionRestarted_); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, batchTxnId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, batchTxnId_); } for (int i = 0; i < dbPartition_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, dbPartition_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, dbPartition_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAdminResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAdminResult()); } { int dataSize = 0; for (int i = 0; i < dmlRowsModified_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag( - dmlRowsModified_.getLong(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(dmlRowsModified_.getLong(i)); } size += dataSize; if (!getDmlRowsModifiedList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } dmlRowsModifiedMemoizedSerializedSize = dataSize; } for (int i = 0; i < changeStreamRecords_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, changeStreamRecords_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, changeStreamRecords_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -707,45 +595,54 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.SpannerActionOutcome)) { return super.equals(obj); } - com.google.spanner.executor.v1.SpannerActionOutcome other = - (com.google.spanner.executor.v1.SpannerActionOutcome) obj; + com.google.spanner.executor.v1.SpannerActionOutcome other = (com.google.spanner.executor.v1.SpannerActionOutcome) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; } if (hasCommitTime() != other.hasCommitTime()) return false; if (hasCommitTime()) { - if (!getCommitTime().equals(other.getCommitTime())) return false; + if (!getCommitTime() + .equals(other.getCommitTime())) return false; } if (hasReadResult() != other.hasReadResult()) return false; if (hasReadResult()) { - if (!getReadResult().equals(other.getReadResult())) return false; + if (!getReadResult() + .equals(other.getReadResult())) return false; } if (hasQueryResult() != other.hasQueryResult()) return false; if (hasQueryResult()) { - if (!getQueryResult().equals(other.getQueryResult())) return false; + if (!getQueryResult() + .equals(other.getQueryResult())) return false; } if (hasTransactionRestarted() != other.hasTransactionRestarted()) return false; if (hasTransactionRestarted()) { - if (getTransactionRestarted() != other.getTransactionRestarted()) return false; + if (getTransactionRestarted() + != other.getTransactionRestarted()) return false; } if (hasBatchTxnId() != other.hasBatchTxnId()) return false; if (hasBatchTxnId()) { - if (!getBatchTxnId().equals(other.getBatchTxnId())) return false; + if (!getBatchTxnId() + .equals(other.getBatchTxnId())) return false; } - if (!getDbPartitionList().equals(other.getDbPartitionList())) return false; + if (!getDbPartitionList() + .equals(other.getDbPartitionList())) return false; if (hasAdminResult() != other.hasAdminResult()) return false; if (hasAdminResult()) { - if (!getAdminResult().equals(other.getAdminResult())) return false; + if (!getAdminResult() + .equals(other.getAdminResult())) return false; } - if (!getDmlRowsModifiedList().equals(other.getDmlRowsModifiedList())) return false; - if (!getChangeStreamRecordsList().equals(other.getChangeStreamRecordsList())) return false; + if (!getDmlRowsModifiedList() + .equals(other.getDmlRowsModifiedList())) return false; + if (!getChangeStreamRecordsList() + .equals(other.getChangeStreamRecordsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -775,7 +672,8 @@ public int hashCode() { } if (hasTransactionRestarted()) { hash = (37 * hash) + TRANSACTION_RESTARTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransactionRestarted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTransactionRestarted()); } if (hasBatchTxnId()) { hash = (37 * hash) + BATCH_TXN_ID_FIELD_NUMBER; @@ -803,126 +701,119 @@ public int hashCode() { } public static com.google.spanner.executor.v1.SpannerActionOutcome parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerActionOutcome parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SpannerActionOutcome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerActionOutcome 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.SpannerActionOutcome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerActionOutcome parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.SpannerActionOutcome parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.SpannerActionOutcome parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.SpannerActionOutcome parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerActionOutcome parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.SpannerActionOutcome parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.SpannerActionOutcome parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerActionOutcome parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.SpannerActionOutcome parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.SpannerActionOutcome prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * SpannerActionOutcome defines a result of execution of a single SpannerAction. * </pre> * * Protobuf type {@code google.spanner.executor.v1.SpannerActionOutcome} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.SpannerActionOutcome) com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerActionOutcome_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerActionOutcome_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.SpannerActionOutcome.class, - com.google.spanner.executor.v1.SpannerActionOutcome.Builder.class); + com.google.spanner.executor.v1.SpannerActionOutcome.class, com.google.spanner.executor.v1.SpannerActionOutcome.Builder.class); } // Construct using com.google.spanner.executor.v1.SpannerActionOutcome.newBuilder() @@ -930,13 +821,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStatusFieldBuilder(); getCommitTimeFieldBuilder(); getReadResultFieldBuilder(); @@ -946,7 +838,6 @@ private void maybeForceBuilderInitialization() { getChangeStreamRecordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -997,9 +888,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor; } @java.lang.Override @@ -1018,18 +909,14 @@ public com.google.spanner.executor.v1.SpannerActionOutcome build() { @java.lang.Override public com.google.spanner.executor.v1.SpannerActionOutcome buildPartial() { - com.google.spanner.executor.v1.SpannerActionOutcome result = - new com.google.spanner.executor.v1.SpannerActionOutcome(this); + com.google.spanner.executor.v1.SpannerActionOutcome result = new com.google.spanner.executor.v1.SpannerActionOutcome(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.SpannerActionOutcome result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.SpannerActionOutcome result) { if (dbPartitionBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { dbPartition_ = java.util.Collections.unmodifiableList(dbPartition_); @@ -1059,20 +946,27 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerActionOutcome r int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null + ? commitTime_ + : commitTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.readResult_ = readResultBuilder_ == null ? readResult_ : readResultBuilder_.build(); + result.readResult_ = readResultBuilder_ == null + ? readResult_ + : readResultBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.queryResult_ = - queryResultBuilder_ == null ? queryResult_ : queryResultBuilder_.build(); + result.queryResult_ = queryResultBuilder_ == null + ? queryResult_ + : queryResultBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { @@ -1084,8 +978,9 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerActionOutcome r to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.adminResult_ = - adminResultBuilder_ == null ? adminResult_ : adminResultBuilder_.build(); + result.adminResult_ = adminResultBuilder_ == null + ? adminResult_ + : adminResultBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; @@ -1095,39 +990,38 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerActionOutcome r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.SpannerActionOutcome) { - return mergeFrom((com.google.spanner.executor.v1.SpannerActionOutcome) other); + return mergeFrom((com.google.spanner.executor.v1.SpannerActionOutcome)other); } else { super.mergeFrom(other); return this; @@ -1135,8 +1029,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.SpannerActionOutcome other) { - if (other == com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } @@ -1173,10 +1066,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.SpannerActionOutcome oth dbPartitionBuilder_ = null; dbPartition_ = other.dbPartition_; bitField0_ = (bitField0_ & ~0x00000040); - dbPartitionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDbPartitionFieldBuilder() - : null; + dbPartitionBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDbPartitionFieldBuilder() : null; } else { dbPartitionBuilder_.addAllMessages(other.dbPartition_); } @@ -1213,10 +1105,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.SpannerActionOutcome oth changeStreamRecordsBuilder_ = null; changeStreamRecords_ = other.changeStreamRecords_; bitField0_ = (bitField0_ & ~0x00000200); - changeStreamRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getChangeStreamRecordsFieldBuilder() - : null; + changeStreamRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChangeStreamRecordsFieldBuilder() : null; } else { changeStreamRecordsBuilder_.addAllMessages(other.changeStreamRecords_); } @@ -1248,100 +1139,99 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getReadResultFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - transactionRestarted_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - batchTxnId_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.spanner.executor.v1.BatchPartition m = - input.readMessage( - com.google.spanner.executor.v1.BatchPartition.parser(), extensionRegistry); - if (dbPartitionBuilder_ == null) { - ensureDbPartitionIsMutable(); - dbPartition_.add(m); - } else { - dbPartitionBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - input.readMessage(getAdminResultFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: - { - long v = input.readInt64(); - ensureDmlRowsModifiedIsMutable(); - dmlRowsModified_.addLong(v); - break; - } // case 72 - case 74: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureDmlRowsModifiedIsMutable(); - while (input.getBytesUntilLimit() > 0) { - dmlRowsModified_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } // case 74 - case 82: - { - com.google.spanner.executor.v1.ChangeStreamRecord m = - input.readMessage( - com.google.spanner.executor.v1.ChangeStreamRecord.parser(), - extensionRegistry); - if (changeStreamRecordsBuilder_ == null) { - ensureChangeStreamRecordsIsMutable(); - changeStreamRecords_.add(m); - } else { - changeStreamRecordsBuilder_.addMessage(m); - } - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCommitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getReadResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getQueryResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + transactionRestarted_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + batchTxnId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.spanner.executor.v1.BatchPartition m = + input.readMessage( + com.google.spanner.executor.v1.BatchPartition.parser(), + extensionRegistry); + if (dbPartitionBuilder_ == null) { + ensureDbPartitionIsMutable(); + dbPartition_.add(m); + } else { + dbPartitionBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + input.readMessage( + getAdminResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + long v = input.readInt64(); + ensureDmlRowsModifiedIsMutable(); + dmlRowsModified_.addLong(v); + break; + } // case 72 + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureDmlRowsModifiedIsMutable(); + while (input.getBytesUntilLimit() > 0) { + dmlRowsModified_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 74 + case 82: { + com.google.spanner.executor.v1.ChangeStreamRecord m = + input.readMessage( + com.google.spanner.executor.v1.ChangeStreamRecord.parser(), + extensionRegistry); + if (changeStreamRecordsBuilder_ == null) { + ensureChangeStreamRecordsIsMutable(); + changeStreamRecords_.add(m); + } else { + changeStreamRecordsBuilder_.addMessage(m); + } + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1351,38 +1241,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. * </pre> * * <code>optional .google.rpc.Status status = 1;</code> - * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. * </pre> * * <code>optional .google.rpc.Status status = 1;</code> - * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -1393,8 +1275,6 @@ public com.google.rpc.Status getStatus() { } } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -1416,8 +1296,6 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -1425,7 +1303,8 @@ public Builder setStatus(com.google.rpc.Status value) { * * <code>optional .google.rpc.Status status = 1;</code> */ - public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -1436,8 +1315,6 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -1447,9 +1324,9 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && status_ != null - && status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -1462,8 +1339,6 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -1482,8 +1357,6 @@ public Builder clearStatus() { return this; } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -1497,8 +1370,6 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -1510,12 +1381,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; } } /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -1524,14 +1394,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * <code>optional .google.rpc.Status status = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; @@ -1539,47 +1409,34 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - commitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> * * <code>optional .google.protobuf.Timestamp commit_time = 2;</code> - * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> * * <code>optional .google.protobuf.Timestamp commit_time = 2;</code> - * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> @@ -1600,15 +1457,14 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> * * <code>optional .google.protobuf.Timestamp commit_time = 2;</code> */ - public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCommitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimeBuilder_ == null) { commitTime_ = builderForValue.build(); } else { @@ -1619,8 +1475,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> @@ -1629,9 +1483,9 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && commitTime_ != null - && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + commitTime_ != null && + commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCommitTimeBuilder().mergeFrom(value); } else { commitTime_ = value; @@ -1644,8 +1498,6 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> @@ -1663,8 +1515,6 @@ public Builder clearCommitTime() { return this; } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> @@ -1677,8 +1527,6 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { return getCommitTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> @@ -1689,14 +1537,11 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { if (commitTimeBuilder_ != null) { return commitTimeBuilder_.getMessageOrBuilder(); } else { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } } /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> @@ -1704,17 +1549,14 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { * <code>optional .google.protobuf.Timestamp commit_time = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1722,49 +1564,36 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { private com.google.spanner.executor.v1.ReadResult readResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadResult, - com.google.spanner.executor.v1.ReadResult.Builder, - com.google.spanner.executor.v1.ReadResultOrBuilder> - readResultBuilder_; + com.google.spanner.executor.v1.ReadResult, com.google.spanner.executor.v1.ReadResult.Builder, com.google.spanner.executor.v1.ReadResultOrBuilder> readResultBuilder_; /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. * </pre> * * <code>optional .google.spanner.executor.v1.ReadResult read_result = 3;</code> - * * @return Whether the readResult field is set. */ public boolean hasReadResult() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. * </pre> * * <code>optional .google.spanner.executor.v1.ReadResult read_result = 3;</code> - * * @return The readResult. */ public com.google.spanner.executor.v1.ReadResult getReadResult() { if (readResultBuilder_ == null) { - return readResult_ == null - ? com.google.spanner.executor.v1.ReadResult.getDefaultInstance() - : readResult_; + return readResult_ == null ? com.google.spanner.executor.v1.ReadResult.getDefaultInstance() : readResult_; } else { return readResultBuilder_.getMessage(); } } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -1786,8 +1615,6 @@ public Builder setReadResult(com.google.spanner.executor.v1.ReadResult value) { return this; } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -1807,8 +1634,6 @@ public Builder setReadResult( return this; } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -1818,9 +1643,9 @@ public Builder setReadResult( */ public Builder mergeReadResult(com.google.spanner.executor.v1.ReadResult value) { if (readResultBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && readResult_ != null - && readResult_ != com.google.spanner.executor.v1.ReadResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + readResult_ != null && + readResult_ != com.google.spanner.executor.v1.ReadResult.getDefaultInstance()) { getReadResultBuilder().mergeFrom(value); } else { readResult_ = value; @@ -1833,8 +1658,6 @@ public Builder mergeReadResult(com.google.spanner.executor.v1.ReadResult value) return this; } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -1853,8 +1676,6 @@ public Builder clearReadResult() { return this; } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -1868,8 +1689,6 @@ public com.google.spanner.executor.v1.ReadResult.Builder getReadResultBuilder() return getReadResultFieldBuilder().getBuilder(); } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -1881,14 +1700,11 @@ public com.google.spanner.executor.v1.ReadResultOrBuilder getReadResultOrBuilder if (readResultBuilder_ != null) { return readResultBuilder_.getMessageOrBuilder(); } else { - return readResult_ == null - ? com.google.spanner.executor.v1.ReadResult.getDefaultInstance() - : readResult_; + return readResult_ == null ? + com.google.spanner.executor.v1.ReadResult.getDefaultInstance() : readResult_; } } /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -1897,17 +1713,14 @@ public com.google.spanner.executor.v1.ReadResultOrBuilder getReadResultOrBuilder * <code>optional .google.spanner.executor.v1.ReadResult read_result = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadResult, - com.google.spanner.executor.v1.ReadResult.Builder, - com.google.spanner.executor.v1.ReadResultOrBuilder> + com.google.spanner.executor.v1.ReadResult, com.google.spanner.executor.v1.ReadResult.Builder, com.google.spanner.executor.v1.ReadResultOrBuilder> getReadResultFieldBuilder() { if (readResultBuilder_ == null) { - readResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.ReadResult, - com.google.spanner.executor.v1.ReadResult.Builder, - com.google.spanner.executor.v1.ReadResultOrBuilder>( - getReadResult(), getParentForChildren(), isClean()); + readResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.ReadResult, com.google.spanner.executor.v1.ReadResult.Builder, com.google.spanner.executor.v1.ReadResultOrBuilder>( + getReadResult(), + getParentForChildren(), + isClean()); readResult_ = null; } return readResultBuilder_; @@ -1915,49 +1728,36 @@ public com.google.spanner.executor.v1.ReadResultOrBuilder getReadResultOrBuilder private com.google.spanner.executor.v1.QueryResult queryResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryResult, - com.google.spanner.executor.v1.QueryResult.Builder, - com.google.spanner.executor.v1.QueryResultOrBuilder> - queryResultBuilder_; + com.google.spanner.executor.v1.QueryResult, com.google.spanner.executor.v1.QueryResult.Builder, com.google.spanner.executor.v1.QueryResultOrBuilder> queryResultBuilder_; /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. * </pre> * * <code>optional .google.spanner.executor.v1.QueryResult query_result = 4;</code> - * * @return Whether the queryResult field is set. */ public boolean hasQueryResult() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. * </pre> * * <code>optional .google.spanner.executor.v1.QueryResult query_result = 4;</code> - * * @return The queryResult. */ public com.google.spanner.executor.v1.QueryResult getQueryResult() { if (queryResultBuilder_ == null) { - return queryResult_ == null - ? com.google.spanner.executor.v1.QueryResult.getDefaultInstance() - : queryResult_; + return queryResult_ == null ? com.google.spanner.executor.v1.QueryResult.getDefaultInstance() : queryResult_; } else { return queryResultBuilder_.getMessage(); } } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -1979,8 +1779,6 @@ public Builder setQueryResult(com.google.spanner.executor.v1.QueryResult value) return this; } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -2000,8 +1798,6 @@ public Builder setQueryResult( return this; } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -2011,9 +1807,9 @@ public Builder setQueryResult( */ public Builder mergeQueryResult(com.google.spanner.executor.v1.QueryResult value) { if (queryResultBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && queryResult_ != null - && queryResult_ != com.google.spanner.executor.v1.QueryResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + queryResult_ != null && + queryResult_ != com.google.spanner.executor.v1.QueryResult.getDefaultInstance()) { getQueryResultBuilder().mergeFrom(value); } else { queryResult_ = value; @@ -2026,8 +1822,6 @@ public Builder mergeQueryResult(com.google.spanner.executor.v1.QueryResult value return this; } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -2046,8 +1840,6 @@ public Builder clearQueryResult() { return this; } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -2061,8 +1853,6 @@ public com.google.spanner.executor.v1.QueryResult.Builder getQueryResultBuilder( return getQueryResultFieldBuilder().getBuilder(); } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -2074,14 +1864,11 @@ public com.google.spanner.executor.v1.QueryResultOrBuilder getQueryResultOrBuild if (queryResultBuilder_ != null) { return queryResultBuilder_.getMessageOrBuilder(); } else { - return queryResult_ == null - ? com.google.spanner.executor.v1.QueryResult.getDefaultInstance() - : queryResult_; + return queryResult_ == null ? + com.google.spanner.executor.v1.QueryResult.getDefaultInstance() : queryResult_; } } /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -2090,26 +1877,21 @@ public com.google.spanner.executor.v1.QueryResultOrBuilder getQueryResultOrBuild * <code>optional .google.spanner.executor.v1.QueryResult query_result = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryResult, - com.google.spanner.executor.v1.QueryResult.Builder, - com.google.spanner.executor.v1.QueryResultOrBuilder> + com.google.spanner.executor.v1.QueryResult, com.google.spanner.executor.v1.QueryResult.Builder, com.google.spanner.executor.v1.QueryResultOrBuilder> getQueryResultFieldBuilder() { if (queryResultBuilder_ == null) { - queryResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.QueryResult, - com.google.spanner.executor.v1.QueryResult.Builder, - com.google.spanner.executor.v1.QueryResultOrBuilder>( - getQueryResult(), getParentForChildren(), isClean()); + queryResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.QueryResult, com.google.spanner.executor.v1.QueryResult.Builder, com.google.spanner.executor.v1.QueryResultOrBuilder>( + getQueryResult(), + getParentForChildren(), + isClean()); queryResult_ = null; } return queryResultBuilder_; } - private boolean transactionRestarted_; + private boolean transactionRestarted_ ; /** - * - * * <pre> * This bit indicates that Spanner has restarted the current transaction. It * means that the client should replay all the reads and writes. @@ -2118,7 +1900,6 @@ public com.google.spanner.executor.v1.QueryResultOrBuilder getQueryResultOrBuild * </pre> * * <code>optional bool transaction_restarted = 5;</code> - * * @return Whether the transactionRestarted field is set. */ @java.lang.Override @@ -2126,8 +1907,6 @@ public boolean hasTransactionRestarted() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * * <pre> * This bit indicates that Spanner has restarted the current transaction. It * means that the client should replay all the reads and writes. @@ -2136,7 +1915,6 @@ public boolean hasTransactionRestarted() { * </pre> * * <code>optional bool transaction_restarted = 5;</code> - * * @return The transactionRestarted. */ @java.lang.Override @@ -2144,8 +1922,6 @@ public boolean getTransactionRestarted() { return transactionRestarted_; } /** - * - * * <pre> * This bit indicates that Spanner has restarted the current transaction. It * means that the client should replay all the reads and writes. @@ -2154,7 +1930,6 @@ public boolean getTransactionRestarted() { * </pre> * * <code>optional bool transaction_restarted = 5;</code> - * * @param value The transactionRestarted to set. * @return This builder for chaining. */ @@ -2166,8 +1941,6 @@ public Builder setTransactionRestarted(boolean value) { return this; } /** - * - * * <pre> * This bit indicates that Spanner has restarted the current transaction. It * means that the client should replay all the reads and writes. @@ -2176,7 +1949,6 @@ public Builder setTransactionRestarted(boolean value) { * </pre> * * <code>optional bool transaction_restarted = 5;</code> - * * @return This builder for chaining. */ public Builder clearTransactionRestarted() { @@ -2188,15 +1960,12 @@ public Builder clearTransactionRestarted() { private com.google.protobuf.ByteString batchTxnId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * * <pre> * In successful StartBatchTransactionAction outcomes, this contains the ID of * the transaction. * </pre> * * <code>optional bytes batch_txn_id = 6;</code> - * * @return Whether the batchTxnId field is set. */ @java.lang.Override @@ -2204,15 +1973,12 @@ public boolean hasBatchTxnId() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * * <pre> * In successful StartBatchTransactionAction outcomes, this contains the ID of * the transaction. * </pre> * * <code>optional bytes batch_txn_id = 6;</code> - * * @return The batchTxnId. */ @java.lang.Override @@ -2220,37 +1986,29 @@ public com.google.protobuf.ByteString getBatchTxnId() { return batchTxnId_; } /** - * - * * <pre> * In successful StartBatchTransactionAction outcomes, this contains the ID of * the transaction. * </pre> * * <code>optional bytes batch_txn_id = 6;</code> - * * @param value The batchTxnId to set. * @return This builder for chaining. */ public Builder setBatchTxnId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } batchTxnId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * * <pre> * In successful StartBatchTransactionAction outcomes, this contains the ID of * the transaction. * </pre> * * <code>optional bytes batch_txn_id = 6;</code> - * * @return This builder for chaining. */ public Builder clearBatchTxnId() { @@ -2261,25 +2019,18 @@ public Builder clearBatchTxnId() { } private java.util.List<com.google.spanner.executor.v1.BatchPartition> dbPartition_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDbPartitionIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { - dbPartition_ = - new java.util.ArrayList<com.google.spanner.executor.v1.BatchPartition>(dbPartition_); + dbPartition_ = new java.util.ArrayList<com.google.spanner.executor.v1.BatchPartition>(dbPartition_); bitField0_ |= 0x00000040; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.BatchPartition, - com.google.spanner.executor.v1.BatchPartition.Builder, - com.google.spanner.executor.v1.BatchPartitionOrBuilder> - dbPartitionBuilder_; + com.google.spanner.executor.v1.BatchPartition, com.google.spanner.executor.v1.BatchPartition.Builder, com.google.spanner.executor.v1.BatchPartitionOrBuilder> dbPartitionBuilder_; /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2295,8 +2046,6 @@ public java.util.List<com.google.spanner.executor.v1.BatchPartition> getDbPartit } } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2312,8 +2061,6 @@ public int getDbPartitionCount() { } } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2329,8 +2076,6 @@ public com.google.spanner.executor.v1.BatchPartition getDbPartition(int index) { } } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2338,7 +2083,8 @@ public com.google.spanner.executor.v1.BatchPartition getDbPartition(int index) { * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - public Builder setDbPartition(int index, com.google.spanner.executor.v1.BatchPartition value) { + public Builder setDbPartition( + int index, com.google.spanner.executor.v1.BatchPartition value) { if (dbPartitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2352,8 +2098,6 @@ public Builder setDbPartition(int index, com.google.spanner.executor.v1.BatchPar return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2373,8 +2117,6 @@ public Builder setDbPartition( return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2396,8 +2138,6 @@ public Builder addDbPartition(com.google.spanner.executor.v1.BatchPartition valu return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2405,7 +2145,8 @@ public Builder addDbPartition(com.google.spanner.executor.v1.BatchPartition valu * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - public Builder addDbPartition(int index, com.google.spanner.executor.v1.BatchPartition value) { + public Builder addDbPartition( + int index, com.google.spanner.executor.v1.BatchPartition value) { if (dbPartitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2419,8 +2160,6 @@ public Builder addDbPartition(int index, com.google.spanner.executor.v1.BatchPar return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2440,8 +2179,6 @@ public Builder addDbPartition( return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2461,8 +2198,6 @@ public Builder addDbPartition( return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2474,7 +2209,8 @@ public Builder addAllDbPartition( java.lang.Iterable<? extends com.google.spanner.executor.v1.BatchPartition> values) { if (dbPartitionBuilder_ == null) { ensureDbPartitionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dbPartition_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dbPartition_); onChanged(); } else { dbPartitionBuilder_.addAllMessages(values); @@ -2482,8 +2218,6 @@ public Builder addAllDbPartition( return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2502,8 +2236,6 @@ public Builder clearDbPartition() { return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2522,8 +2254,6 @@ public Builder removeDbPartition(int index) { return this; } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2531,12 +2261,11 @@ public Builder removeDbPartition(int index) { * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - public com.google.spanner.executor.v1.BatchPartition.Builder getDbPartitionBuilder(int index) { + public com.google.spanner.executor.v1.BatchPartition.Builder getDbPartitionBuilder( + int index) { return getDbPartitionFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2547,14 +2276,11 @@ public com.google.spanner.executor.v1.BatchPartition.Builder getDbPartitionBuild public com.google.spanner.executor.v1.BatchPartitionOrBuilder getDbPartitionOrBuilder( int index) { if (dbPartitionBuilder_ == null) { - return dbPartition_.get(index); - } else { + return dbPartition_.get(index); } else { return dbPartitionBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2562,8 +2288,8 @@ public com.google.spanner.executor.v1.BatchPartitionOrBuilder getDbPartitionOrBu * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.BatchPartitionOrBuilder> - getDbPartitionOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.BatchPartitionOrBuilder> + getDbPartitionOrBuilderList() { if (dbPartitionBuilder_ != null) { return dbPartitionBuilder_.getMessageOrBuilderList(); } else { @@ -2571,8 +2297,6 @@ public com.google.spanner.executor.v1.BatchPartitionOrBuilder getDbPartitionOrBu } } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2581,12 +2305,10 @@ public com.google.spanner.executor.v1.BatchPartitionOrBuilder getDbPartitionOrBu * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ public com.google.spanner.executor.v1.BatchPartition.Builder addDbPartitionBuilder() { - return getDbPartitionFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.BatchPartition.getDefaultInstance()); + return getDbPartitionFieldBuilder().addBuilder( + com.google.spanner.executor.v1.BatchPartition.getDefaultInstance()); } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2594,13 +2316,12 @@ public com.google.spanner.executor.v1.BatchPartition.Builder addDbPartitionBuild * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - public com.google.spanner.executor.v1.BatchPartition.Builder addDbPartitionBuilder(int index) { - return getDbPartitionFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.BatchPartition.getDefaultInstance()); + public com.google.spanner.executor.v1.BatchPartition.Builder addDbPartitionBuilder( + int index) { + return getDbPartitionFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.BatchPartition.getDefaultInstance()); } /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -2608,23 +2329,20 @@ public com.google.spanner.executor.v1.BatchPartition.Builder addDbPartitionBuild * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - public java.util.List<com.google.spanner.executor.v1.BatchPartition.Builder> - getDbPartitionBuilderList() { + public java.util.List<com.google.spanner.executor.v1.BatchPartition.Builder> + getDbPartitionBuilderList() { return getDbPartitionFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.BatchPartition, - com.google.spanner.executor.v1.BatchPartition.Builder, - com.google.spanner.executor.v1.BatchPartitionOrBuilder> + com.google.spanner.executor.v1.BatchPartition, com.google.spanner.executor.v1.BatchPartition.Builder, com.google.spanner.executor.v1.BatchPartitionOrBuilder> getDbPartitionFieldBuilder() { if (dbPartitionBuilder_ == null) { - dbPartitionBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.BatchPartition, - com.google.spanner.executor.v1.BatchPartition.Builder, - com.google.spanner.executor.v1.BatchPartitionOrBuilder>( - dbPartition_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + dbPartitionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.BatchPartition, com.google.spanner.executor.v1.BatchPartition.Builder, com.google.spanner.executor.v1.BatchPartitionOrBuilder>( + dbPartition_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); dbPartition_ = null; } return dbPartitionBuilder_; @@ -2632,47 +2350,34 @@ public com.google.spanner.executor.v1.BatchPartition.Builder addDbPartitionBuild private com.google.spanner.executor.v1.AdminResult adminResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.AdminResult, - com.google.spanner.executor.v1.AdminResult.Builder, - com.google.spanner.executor.v1.AdminResultOrBuilder> - adminResultBuilder_; + com.google.spanner.executor.v1.AdminResult, com.google.spanner.executor.v1.AdminResult.Builder, com.google.spanner.executor.v1.AdminResultOrBuilder> adminResultBuilder_; /** - * - * * <pre> * Result of admin related actions. * </pre> * * <code>optional .google.spanner.executor.v1.AdminResult admin_result = 8;</code> - * * @return Whether the adminResult field is set. */ public boolean hasAdminResult() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * * <pre> * Result of admin related actions. * </pre> * * <code>optional .google.spanner.executor.v1.AdminResult admin_result = 8;</code> - * * @return The adminResult. */ public com.google.spanner.executor.v1.AdminResult getAdminResult() { if (adminResultBuilder_ == null) { - return adminResult_ == null - ? com.google.spanner.executor.v1.AdminResult.getDefaultInstance() - : adminResult_; + return adminResult_ == null ? com.google.spanner.executor.v1.AdminResult.getDefaultInstance() : adminResult_; } else { return adminResultBuilder_.getMessage(); } } /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -2693,8 +2398,6 @@ public Builder setAdminResult(com.google.spanner.executor.v1.AdminResult value) return this; } /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -2713,8 +2416,6 @@ public Builder setAdminResult( return this; } /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -2723,9 +2424,9 @@ public Builder setAdminResult( */ public Builder mergeAdminResult(com.google.spanner.executor.v1.AdminResult value) { if (adminResultBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && adminResult_ != null - && adminResult_ != com.google.spanner.executor.v1.AdminResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + adminResult_ != null && + adminResult_ != com.google.spanner.executor.v1.AdminResult.getDefaultInstance()) { getAdminResultBuilder().mergeFrom(value); } else { adminResult_ = value; @@ -2738,8 +2439,6 @@ public Builder mergeAdminResult(com.google.spanner.executor.v1.AdminResult value return this; } /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -2757,8 +2456,6 @@ public Builder clearAdminResult() { return this; } /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -2771,8 +2468,6 @@ public com.google.spanner.executor.v1.AdminResult.Builder getAdminResultBuilder( return getAdminResultFieldBuilder().getBuilder(); } /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -2783,14 +2478,11 @@ public com.google.spanner.executor.v1.AdminResultOrBuilder getAdminResultOrBuild if (adminResultBuilder_ != null) { return adminResultBuilder_.getMessageOrBuilder(); } else { - return adminResult_ == null - ? com.google.spanner.executor.v1.AdminResult.getDefaultInstance() - : adminResult_; + return adminResult_ == null ? + com.google.spanner.executor.v1.AdminResult.getDefaultInstance() : adminResult_; } } /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -2798,24 +2490,20 @@ public com.google.spanner.executor.v1.AdminResultOrBuilder getAdminResultOrBuild * <code>optional .google.spanner.executor.v1.AdminResult admin_result = 8;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.AdminResult, - com.google.spanner.executor.v1.AdminResult.Builder, - com.google.spanner.executor.v1.AdminResultOrBuilder> + com.google.spanner.executor.v1.AdminResult, com.google.spanner.executor.v1.AdminResult.Builder, com.google.spanner.executor.v1.AdminResultOrBuilder> getAdminResultFieldBuilder() { if (adminResultBuilder_ == null) { - adminResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.AdminResult, - com.google.spanner.executor.v1.AdminResult.Builder, - com.google.spanner.executor.v1.AdminResultOrBuilder>( - getAdminResult(), getParentForChildren(), isClean()); + adminResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.AdminResult, com.google.spanner.executor.v1.AdminResult.Builder, com.google.spanner.executor.v1.AdminResultOrBuilder>( + getAdminResult(), + getParentForChildren(), + isClean()); adminResult_ = null; } return adminResultBuilder_; } private com.google.protobuf.Internal.LongList dmlRowsModified_ = emptyLongList(); - private void ensureDmlRowsModifiedIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { dmlRowsModified_ = mutableCopy(dmlRowsModified_); @@ -2823,47 +2511,38 @@ private void ensureDmlRowsModifiedIsMutable() { } } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @return A list containing the dmlRowsModified. */ - public java.util.List<java.lang.Long> getDmlRowsModifiedList() { - return ((bitField0_ & 0x00000100) != 0) - ? java.util.Collections.unmodifiableList(dmlRowsModified_) - : dmlRowsModified_; + public java.util.List<java.lang.Long> + getDmlRowsModifiedList() { + return ((bitField0_ & 0x00000100) != 0) ? + java.util.Collections.unmodifiableList(dmlRowsModified_) : dmlRowsModified_; } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @return The count of dmlRowsModified. */ public int getDmlRowsModifiedCount() { return dmlRowsModified_.size(); } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @param index The index of the element to return. * @return The dmlRowsModified at the given index. */ @@ -2871,20 +2550,18 @@ public long getDmlRowsModified(int index) { return dmlRowsModified_.getLong(index); } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @param index The index to set the value at. * @param value The dmlRowsModified to set. * @return This builder for chaining. */ - public Builder setDmlRowsModified(int index, long value) { + public Builder setDmlRowsModified( + int index, long value) { ensureDmlRowsModifiedIsMutable(); dmlRowsModified_.setLong(index, value); @@ -2892,15 +2569,12 @@ public Builder setDmlRowsModified(int index, long value) { return this; } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @param value The dmlRowsModified to add. * @return This builder for chaining. */ @@ -2912,34 +2586,30 @@ public Builder addDmlRowsModified(long value) { return this; } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @param values The dmlRowsModified to add. * @return This builder for chaining. */ - public Builder addAllDmlRowsModified(java.lang.Iterable<? extends java.lang.Long> values) { + public Builder addAllDmlRowsModified( + java.lang.Iterable<? extends java.lang.Long> values) { ensureDmlRowsModifiedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dmlRowsModified_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dmlRowsModified_); onChanged(); return this; } /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @return This builder for chaining. */ public Builder clearDmlRowsModified() { @@ -2950,35 +2620,25 @@ public Builder clearDmlRowsModified() { } private java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord> changeStreamRecords_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureChangeStreamRecordsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - changeStreamRecords_ = - new java.util.ArrayList<com.google.spanner.executor.v1.ChangeStreamRecord>( - changeStreamRecords_); + changeStreamRecords_ = new java.util.ArrayList<com.google.spanner.executor.v1.ChangeStreamRecord>(changeStreamRecords_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ChangeStreamRecord, - com.google.spanner.executor.v1.ChangeStreamRecord.Builder, - com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> - changeStreamRecordsBuilder_; + com.google.spanner.executor.v1.ChangeStreamRecord, com.google.spanner.executor.v1.ChangeStreamRecord.Builder, com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> changeStreamRecordsBuilder_; /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ - public java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord> - getChangeStreamRecordsList() { + public java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord> getChangeStreamRecordsList() { if (changeStreamRecordsBuilder_ == null) { return java.util.Collections.unmodifiableList(changeStreamRecords_); } else { @@ -2986,14 +2646,11 @@ private void ensureChangeStreamRecordsIsMutable() { } } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public int getChangeStreamRecordsCount() { if (changeStreamRecordsBuilder_ == null) { @@ -3003,14 +2660,11 @@ public int getChangeStreamRecordsCount() { } } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public com.google.spanner.executor.v1.ChangeStreamRecord getChangeStreamRecords(int index) { if (changeStreamRecordsBuilder_ == null) { @@ -3020,14 +2674,11 @@ public com.google.spanner.executor.v1.ChangeStreamRecord getChangeStreamRecords( } } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder setChangeStreamRecords( int index, com.google.spanner.executor.v1.ChangeStreamRecord value) { @@ -3044,14 +2695,11 @@ public Builder setChangeStreamRecords( return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder setChangeStreamRecords( int index, com.google.spanner.executor.v1.ChangeStreamRecord.Builder builderForValue) { @@ -3065,14 +2713,11 @@ public Builder setChangeStreamRecords( return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder addChangeStreamRecords(com.google.spanner.executor.v1.ChangeStreamRecord value) { if (changeStreamRecordsBuilder_ == null) { @@ -3088,14 +2733,11 @@ public Builder addChangeStreamRecords(com.google.spanner.executor.v1.ChangeStrea return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder addChangeStreamRecords( int index, com.google.spanner.executor.v1.ChangeStreamRecord value) { @@ -3112,14 +2754,11 @@ public Builder addChangeStreamRecords( return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder addChangeStreamRecords( com.google.spanner.executor.v1.ChangeStreamRecord.Builder builderForValue) { @@ -3133,14 +2772,11 @@ public Builder addChangeStreamRecords( return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder addChangeStreamRecords( int index, com.google.spanner.executor.v1.ChangeStreamRecord.Builder builderForValue) { @@ -3154,20 +2790,18 @@ public Builder addChangeStreamRecords( return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder addAllChangeStreamRecords( java.lang.Iterable<? extends com.google.spanner.executor.v1.ChangeStreamRecord> values) { if (changeStreamRecordsBuilder_ == null) { ensureChangeStreamRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changeStreamRecords_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, changeStreamRecords_); onChanged(); } else { changeStreamRecordsBuilder_.addAllMessages(values); @@ -3175,14 +2809,11 @@ public Builder addAllChangeStreamRecords( return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder clearChangeStreamRecords() { if (changeStreamRecordsBuilder_ == null) { @@ -3195,14 +2826,11 @@ public Builder clearChangeStreamRecords() { return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public Builder removeChangeStreamRecords(int index) { if (changeStreamRecordsBuilder_ == null) { @@ -3215,49 +2843,39 @@ public Builder removeChangeStreamRecords(int index) { return this; } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public com.google.spanner.executor.v1.ChangeStreamRecord.Builder getChangeStreamRecordsBuilder( int index) { return getChangeStreamRecordsFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ - public com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder - getChangeStreamRecordsOrBuilder(int index) { + public com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder getChangeStreamRecordsOrBuilder( + int index) { if (changeStreamRecordsBuilder_ == null) { - return changeStreamRecords_.get(index); - } else { + return changeStreamRecords_.get(index); } else { return changeStreamRecordsBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> - getChangeStreamRecordsOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> + getChangeStreamRecordsOrBuilderList() { if (changeStreamRecordsBuilder_ != null) { return changeStreamRecordsBuilder_.getMessageOrBuilderList(); } else { @@ -3265,62 +2883,45 @@ public com.google.spanner.executor.v1.ChangeStreamRecord.Builder getChangeStream } } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ - public com.google.spanner.executor.v1.ChangeStreamRecord.Builder - addChangeStreamRecordsBuilder() { - return getChangeStreamRecordsFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.ChangeStreamRecord.getDefaultInstance()); + public com.google.spanner.executor.v1.ChangeStreamRecord.Builder addChangeStreamRecordsBuilder() { + return getChangeStreamRecordsFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ChangeStreamRecord.getDefaultInstance()); } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ public com.google.spanner.executor.v1.ChangeStreamRecord.Builder addChangeStreamRecordsBuilder( int index) { - return getChangeStreamRecordsFieldBuilder() - .addBuilder( - index, com.google.spanner.executor.v1.ChangeStreamRecord.getDefaultInstance()); + return getChangeStreamRecordsFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ChangeStreamRecord.getDefaultInstance()); } /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ - public java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord.Builder> - getChangeStreamRecordsBuilderList() { + public java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord.Builder> + getChangeStreamRecordsBuilderList() { return getChangeStreamRecordsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ChangeStreamRecord, - com.google.spanner.executor.v1.ChangeStreamRecord.Builder, - com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> + com.google.spanner.executor.v1.ChangeStreamRecord, com.google.spanner.executor.v1.ChangeStreamRecord.Builder, com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> getChangeStreamRecordsFieldBuilder() { if (changeStreamRecordsBuilder_ == null) { - changeStreamRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ChangeStreamRecord, - com.google.spanner.executor.v1.ChangeStreamRecord.Builder, - com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder>( + changeStreamRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.ChangeStreamRecord, com.google.spanner.executor.v1.ChangeStreamRecord.Builder, com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder>( changeStreamRecords_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), @@ -3329,9 +2930,9 @@ public com.google.spanner.executor.v1.ChangeStreamRecord.Builder addChangeStream } return changeStreamRecordsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3341,12 +2942,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.SpannerActionOutcome) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.SpannerActionOutcome) private static final com.google.spanner.executor.v1.SpannerActionOutcome DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.SpannerActionOutcome(); } @@ -3355,27 +2956,27 @@ public static com.google.spanner.executor.v1.SpannerActionOutcome getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<SpannerActionOutcome> PARSER = - new com.google.protobuf.AbstractParser<SpannerActionOutcome>() { - @java.lang.Override - public SpannerActionOutcome parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<SpannerActionOutcome> + PARSER = new com.google.protobuf.AbstractParser<SpannerActionOutcome>() { + @java.lang.Override + public SpannerActionOutcome parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<SpannerActionOutcome> parser() { return PARSER; @@ -3390,4 +2991,6 @@ public com.google.protobuf.Parser<SpannerActionOutcome> getParserForType() { public com.google.spanner.executor.v1.SpannerActionOutcome getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java similarity index 87% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java index 9e226d5df82..5cd2a116324 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOutcomeOrBuilder.java @@ -1,57 +1,33 @@ -/* - * 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 interface SpannerActionOutcomeOrBuilder - extends +public interface SpannerActionOutcomeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.SpannerActionOutcome) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. * </pre> * * <code>optional .google.rpc.Status status = 1;</code> - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. * </pre> * * <code>optional .google.rpc.Status status = 1;</code> - * * @return The status. */ com.google.rpc.Status getStatus(); /** - * - * * <pre> * If an outcome is split into multiple parts, status will be set only in the * last part. @@ -62,32 +38,24 @@ public interface SpannerActionOutcomeOrBuilder com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> * * <code>optional .google.protobuf.Timestamp commit_time = 2;</code> - * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> * * <code>optional .google.protobuf.Timestamp commit_time = 2;</code> - * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** - * - * * <pre> * Transaction timestamp. It must be set for successful committed actions. * </pre> @@ -97,34 +65,26 @@ public interface SpannerActionOutcomeOrBuilder com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder(); /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. * </pre> * * <code>optional .google.spanner.executor.v1.ReadResult read_result = 3;</code> - * * @return Whether the readResult field is set. */ boolean hasReadResult(); /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. * </pre> * * <code>optional .google.spanner.executor.v1.ReadResult read_result = 3;</code> - * * @return The readResult. */ com.google.spanner.executor.v1.ReadResult getReadResult(); /** - * - * * <pre> * Result of a ReadAction. This field must be set for ReadActions even if * no rows were read. @@ -135,34 +95,26 @@ public interface SpannerActionOutcomeOrBuilder com.google.spanner.executor.v1.ReadResultOrBuilder getReadResultOrBuilder(); /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. * </pre> * * <code>optional .google.spanner.executor.v1.QueryResult query_result = 4;</code> - * * @return Whether the queryResult field is set. */ boolean hasQueryResult(); /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. * </pre> * * <code>optional .google.spanner.executor.v1.QueryResult query_result = 4;</code> - * * @return The queryResult. */ com.google.spanner.executor.v1.QueryResult getQueryResult(); /** - * - * * <pre> * Result of a Query. This field must be set for Queries even if no rows were * read. @@ -173,8 +125,6 @@ public interface SpannerActionOutcomeOrBuilder com.google.spanner.executor.v1.QueryResultOrBuilder getQueryResultOrBuilder(); /** - * - * * <pre> * This bit indicates that Spanner has restarted the current transaction. It * means that the client should replay all the reads and writes. @@ -183,13 +133,10 @@ public interface SpannerActionOutcomeOrBuilder * </pre> * * <code>optional bool transaction_restarted = 5;</code> - * * @return Whether the transactionRestarted field is set. */ boolean hasTransactionRestarted(); /** - * - * * <pre> * This bit indicates that Spanner has restarted the current transaction. It * means that the client should replay all the reads and writes. @@ -198,41 +145,32 @@ public interface SpannerActionOutcomeOrBuilder * </pre> * * <code>optional bool transaction_restarted = 5;</code> - * * @return The transactionRestarted. */ boolean getTransactionRestarted(); /** - * - * * <pre> * In successful StartBatchTransactionAction outcomes, this contains the ID of * the transaction. * </pre> * * <code>optional bytes batch_txn_id = 6;</code> - * * @return Whether the batchTxnId field is set. */ boolean hasBatchTxnId(); /** - * - * * <pre> * In successful StartBatchTransactionAction outcomes, this contains the ID of * the transaction. * </pre> * * <code>optional bytes batch_txn_id = 6;</code> - * * @return The batchTxnId. */ com.google.protobuf.ByteString getBatchTxnId(); /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -240,10 +178,9 @@ public interface SpannerActionOutcomeOrBuilder * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - java.util.List<com.google.spanner.executor.v1.BatchPartition> getDbPartitionList(); + java.util.List<com.google.spanner.executor.v1.BatchPartition> + getDbPartitionList(); /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -253,8 +190,6 @@ public interface SpannerActionOutcomeOrBuilder */ com.google.spanner.executor.v1.BatchPartition getDbPartition(int index); /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -264,8 +199,6 @@ public interface SpannerActionOutcomeOrBuilder */ int getDbPartitionCount(); /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -273,11 +206,9 @@ public interface SpannerActionOutcomeOrBuilder * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.BatchPartitionOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.BatchPartitionOrBuilder> getDbPartitionOrBuilderList(); /** - * - * * <pre> * Generated database partitions (result of a * GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction). @@ -285,35 +216,28 @@ public interface SpannerActionOutcomeOrBuilder * * <code>repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;</code> */ - com.google.spanner.executor.v1.BatchPartitionOrBuilder getDbPartitionOrBuilder(int index); + com.google.spanner.executor.v1.BatchPartitionOrBuilder getDbPartitionOrBuilder( + int index); /** - * - * * <pre> * Result of admin related actions. * </pre> * * <code>optional .google.spanner.executor.v1.AdminResult admin_result = 8;</code> - * * @return Whether the adminResult field is set. */ boolean hasAdminResult(); /** - * - * * <pre> * Result of admin related actions. * </pre> * * <code>optional .google.spanner.executor.v1.AdminResult admin_result = 8;</code> - * * @return The adminResult. */ com.google.spanner.executor.v1.AdminResult getAdminResult(); /** - * - * * <pre> * Result of admin related actions. * </pre> @@ -323,100 +247,77 @@ public interface SpannerActionOutcomeOrBuilder com.google.spanner.executor.v1.AdminResultOrBuilder getAdminResultOrBuilder(); /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @return A list containing the dmlRowsModified. */ java.util.List<java.lang.Long> getDmlRowsModifiedList(); /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @return The count of dmlRowsModified. */ int getDmlRowsModifiedCount(); /** - * - * * <pre> * Stores rows modified by query in single DML or batch DML action. * In case of batch DML action, stores 0 as row count of errored DML query. * </pre> * * <code>repeated int64 dml_rows_modified = 9;</code> - * * @param index The index of the element to return. * @return The dmlRowsModified at the given index. */ long getDmlRowsModified(int index); /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ - java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord> getChangeStreamRecordsList(); + java.util.List<com.google.spanner.executor.v1.ChangeStreamRecord> + getChangeStreamRecordsList(); /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ com.google.spanner.executor.v1.ChangeStreamRecord getChangeStreamRecords(int index); /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ int getChangeStreamRecordsCount(); /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder> getChangeStreamRecordsOrBuilderList(); /** - * - * * <pre> * Change stream records returned by a change stream query. * </pre> * - * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; - * </code> + * <code>repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;</code> */ com.google.spanner.executor.v1.ChangeStreamRecordOrBuilder getChangeStreamRecordsOrBuilder( int index); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java similarity index 66% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java index 82b3b635ac7..01016800ebc 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequest.java @@ -1,76 +1,55 @@ -/* - * 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; /** - * - * * <pre> * Request to executor service that start a new Spanner action. * </pre> * * Protobuf type {@code google.spanner.executor.v1.SpannerAsyncActionRequest} */ -public final class SpannerAsyncActionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpannerAsyncActionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.SpannerAsyncActionRequest) SpannerAsyncActionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpannerAsyncActionRequest.newBuilder() to construct. private SpannerAsyncActionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private SpannerAsyncActionRequest() {} + private SpannerAsyncActionRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpannerAsyncActionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.SpannerAsyncActionRequest.class, - com.google.spanner.executor.v1.SpannerAsyncActionRequest.Builder.class); + com.google.spanner.executor.v1.SpannerAsyncActionRequest.class, com.google.spanner.executor.v1.SpannerAsyncActionRequest.Builder.class); } public static final int ACTION_ID_FIELD_NUMBER = 1; private int actionId_ = 0; /** - * - * * <pre> * Action id to uniquely identify this action request. * </pre> * * <code>int32 action_id = 1;</code> - * * @return The actionId. */ @java.lang.Override @@ -81,14 +60,11 @@ public int getActionId() { public static final int ACTION_FIELD_NUMBER = 2; private com.google.spanner.executor.v1.SpannerAction action_; /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> * * <code>.google.spanner.executor.v1.SpannerAction action = 2;</code> - * * @return Whether the action field is set. */ @java.lang.Override @@ -96,25 +72,18 @@ public boolean hasAction() { return action_ != null; } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> * * <code>.google.spanner.executor.v1.SpannerAction action = 2;</code> - * * @return The action. */ @java.lang.Override public com.google.spanner.executor.v1.SpannerAction getAction() { - return action_ == null - ? com.google.spanner.executor.v1.SpannerAction.getDefaultInstance() - : action_; + return action_ == null ? com.google.spanner.executor.v1.SpannerAction.getDefaultInstance() : action_; } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> @@ -123,13 +92,10 @@ public com.google.spanner.executor.v1.SpannerAction getAction() { */ @java.lang.Override public com.google.spanner.executor.v1.SpannerActionOrBuilder getActionOrBuilder() { - return action_ == null - ? com.google.spanner.executor.v1.SpannerAction.getDefaultInstance() - : action_; + return action_ == null ? com.google.spanner.executor.v1.SpannerAction.getDefaultInstance() : action_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (actionId_ != 0) { output.writeInt32(1, actionId_); } @@ -158,10 +125,12 @@ public int getSerializedSize() { size = 0; if (actionId_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, actionId_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, actionId_); } if (action_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAction()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,18 +140,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.SpannerAsyncActionRequest)) { return super.equals(obj); } - com.google.spanner.executor.v1.SpannerAsyncActionRequest other = - (com.google.spanner.executor.v1.SpannerAsyncActionRequest) obj; + com.google.spanner.executor.v1.SpannerAsyncActionRequest other = (com.google.spanner.executor.v1.SpannerAsyncActionRequest) obj; - if (getActionId() != other.getActionId()) return false; + if (getActionId() + != other.getActionId()) return false; if (hasAction() != other.hasAction()) return false; if (hasAction()) { - if (!getAction().equals(other.getAction())) return false; + if (!getAction() + .equals(other.getAction())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -207,136 +177,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SpannerAsyncActionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAsyncActionRequest 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.SpannerAsyncActionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.SpannerAsyncActionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.SpannerAsyncActionRequest prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.SpannerAsyncActionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Request to executor service that start a new Spanner action. * </pre> * * Protobuf type {@code google.spanner.executor.v1.SpannerAsyncActionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.SpannerAsyncActionRequest) com.google.spanner.executor.v1.SpannerAsyncActionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.SpannerAsyncActionRequest.class, - com.google.spanner.executor.v1.SpannerAsyncActionRequest.Builder.class); + com.google.spanner.executor.v1.SpannerAsyncActionRequest.class, com.google.spanner.executor.v1.SpannerAsyncActionRequest.Builder.class); } // Construct using com.google.spanner.executor.v1.SpannerAsyncActionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor; } @java.lang.Override @@ -372,11 +337,8 @@ public com.google.spanner.executor.v1.SpannerAsyncActionRequest build() { @java.lang.Override public com.google.spanner.executor.v1.SpannerAsyncActionRequest buildPartial() { - com.google.spanner.executor.v1.SpannerAsyncActionRequest result = - new com.google.spanner.executor.v1.SpannerAsyncActionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.SpannerAsyncActionRequest result = new com.google.spanner.executor.v1.SpannerAsyncActionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -387,7 +349,9 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerAsyncActionRequ result.actionId_ = actionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build(); + result.action_ = actionBuilder_ == null + ? action_ + : actionBuilder_.build(); } } @@ -395,39 +359,38 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerAsyncActionRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.SpannerAsyncActionRequest) { - return mergeFrom((com.google.spanner.executor.v1.SpannerAsyncActionRequest) other); + return mergeFrom((com.google.spanner.executor.v1.SpannerAsyncActionRequest)other); } else { super.mergeFrom(other); return this; @@ -435,8 +398,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.SpannerAsyncActionRequest other) { - if (other == com.google.spanner.executor.v1.SpannerAsyncActionRequest.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.SpannerAsyncActionRequest.getDefaultInstance()) return this; if (other.getActionId() != 0) { setActionId(other.getActionId()); } @@ -469,25 +431,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - actionId_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getActionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + actionId_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getActionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,19 +458,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int actionId_; + private int actionId_ ; /** - * - * * <pre> * Action id to uniquely identify this action request. * </pre> * * <code>int32 action_id = 1;</code> - * * @return The actionId. */ @java.lang.Override @@ -517,14 +474,11 @@ public int getActionId() { return actionId_; } /** - * - * * <pre> * Action id to uniquely identify this action request. * </pre> * * <code>int32 action_id = 1;</code> - * * @param value The actionId to set. * @return This builder for chaining. */ @@ -536,14 +490,11 @@ public Builder setActionId(int value) { return this; } /** - * - * * <pre> * Action id to uniquely identify this action request. * </pre> * * <code>int32 action_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearActionId() { @@ -555,47 +506,34 @@ public Builder clearActionId() { private com.google.spanner.executor.v1.SpannerAction action_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.SpannerAction, - com.google.spanner.executor.v1.SpannerAction.Builder, - com.google.spanner.executor.v1.SpannerActionOrBuilder> - actionBuilder_; + com.google.spanner.executor.v1.SpannerAction, com.google.spanner.executor.v1.SpannerAction.Builder, com.google.spanner.executor.v1.SpannerActionOrBuilder> actionBuilder_; /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> * * <code>.google.spanner.executor.v1.SpannerAction action = 2;</code> - * * @return Whether the action field is set. */ public boolean hasAction() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> * * <code>.google.spanner.executor.v1.SpannerAction action = 2;</code> - * * @return The action. */ public com.google.spanner.executor.v1.SpannerAction getAction() { if (actionBuilder_ == null) { - return action_ == null - ? com.google.spanner.executor.v1.SpannerAction.getDefaultInstance() - : action_; + return action_ == null ? com.google.spanner.executor.v1.SpannerAction.getDefaultInstance() : action_; } else { return actionBuilder_.getMessage(); } } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> @@ -616,15 +554,14 @@ public Builder setAction(com.google.spanner.executor.v1.SpannerAction value) { return this; } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> * * <code>.google.spanner.executor.v1.SpannerAction action = 2;</code> */ - public Builder setAction(com.google.spanner.executor.v1.SpannerAction.Builder builderForValue) { + public Builder setAction( + com.google.spanner.executor.v1.SpannerAction.Builder builderForValue) { if (actionBuilder_ == null) { action_ = builderForValue.build(); } else { @@ -635,8 +572,6 @@ public Builder setAction(com.google.spanner.executor.v1.SpannerAction.Builder bu return this; } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> @@ -645,9 +580,9 @@ public Builder setAction(com.google.spanner.executor.v1.SpannerAction.Builder bu */ public Builder mergeAction(com.google.spanner.executor.v1.SpannerAction value) { if (actionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && action_ != null - && action_ != com.google.spanner.executor.v1.SpannerAction.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + action_ != null && + action_ != com.google.spanner.executor.v1.SpannerAction.getDefaultInstance()) { getActionBuilder().mergeFrom(value); } else { action_ = value; @@ -660,8 +595,6 @@ public Builder mergeAction(com.google.spanner.executor.v1.SpannerAction value) { return this; } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> @@ -679,8 +612,6 @@ public Builder clearAction() { return this; } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> @@ -693,8 +624,6 @@ public com.google.spanner.executor.v1.SpannerAction.Builder getActionBuilder() { return getActionFieldBuilder().getBuilder(); } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> @@ -705,14 +634,11 @@ public com.google.spanner.executor.v1.SpannerActionOrBuilder getActionOrBuilder( if (actionBuilder_ != null) { return actionBuilder_.getMessageOrBuilder(); } else { - return action_ == null - ? com.google.spanner.executor.v1.SpannerAction.getDefaultInstance() - : action_; + return action_ == null ? + com.google.spanner.executor.v1.SpannerAction.getDefaultInstance() : action_; } } /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> @@ -720,24 +646,21 @@ public com.google.spanner.executor.v1.SpannerActionOrBuilder getActionOrBuilder( * <code>.google.spanner.executor.v1.SpannerAction action = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.SpannerAction, - com.google.spanner.executor.v1.SpannerAction.Builder, - com.google.spanner.executor.v1.SpannerActionOrBuilder> + com.google.spanner.executor.v1.SpannerAction, com.google.spanner.executor.v1.SpannerAction.Builder, com.google.spanner.executor.v1.SpannerActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { - actionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.SpannerAction, - com.google.spanner.executor.v1.SpannerAction.Builder, - com.google.spanner.executor.v1.SpannerActionOrBuilder>( - getAction(), getParentForChildren(), isClean()); + actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.SpannerAction, com.google.spanner.executor.v1.SpannerAction.Builder, com.google.spanner.executor.v1.SpannerActionOrBuilder>( + getAction(), + getParentForChildren(), + isClean()); action_ = null; } return actionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -747,12 +670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.SpannerAsyncActionRequest) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.SpannerAsyncActionRequest) private static final com.google.spanner.executor.v1.SpannerAsyncActionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.SpannerAsyncActionRequest(); } @@ -761,27 +684,27 @@ public static com.google.spanner.executor.v1.SpannerAsyncActionRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<SpannerAsyncActionRequest> PARSER = - new com.google.protobuf.AbstractParser<SpannerAsyncActionRequest>() { - @java.lang.Override - public SpannerAsyncActionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<SpannerAsyncActionRequest> + PARSER = new com.google.protobuf.AbstractParser<SpannerAsyncActionRequest>() { + @java.lang.Override + public SpannerAsyncActionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<SpannerAsyncActionRequest> parser() { return PARSER; @@ -796,4 +719,6 @@ public com.google.protobuf.Parser<SpannerAsyncActionRequest> getParserForType() public com.google.spanner.executor.v1.SpannerAsyncActionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java index 7b43292bb5e..4124599cf1b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionRequestOrBuilder.java @@ -1,68 +1,41 @@ -/* - * 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 interface SpannerAsyncActionRequestOrBuilder - extends +public interface SpannerAsyncActionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.SpannerAsyncActionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Action id to uniquely identify this action request. * </pre> * * <code>int32 action_id = 1;</code> - * * @return The actionId. */ int getActionId(); /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> * * <code>.google.spanner.executor.v1.SpannerAction action = 2;</code> - * * @return Whether the action field is set. */ boolean hasAction(); /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> * * <code>.google.spanner.executor.v1.SpannerAction action = 2;</code> - * * @return The action. */ com.google.spanner.executor.v1.SpannerAction getAction(); /** - * - * * <pre> * The actual SpannerAction to perform. * </pre> diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java index b085cbe14ad..2f68cb24cda 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponse.java @@ -1,76 +1,55 @@ -/* - * 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; /** - * - * * <pre> * Response from executor service. * </pre> * * Protobuf type {@code google.spanner.executor.v1.SpannerAsyncActionResponse} */ -public final class SpannerAsyncActionResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpannerAsyncActionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.SpannerAsyncActionResponse) SpannerAsyncActionResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpannerAsyncActionResponse.newBuilder() to construct. private SpannerAsyncActionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private SpannerAsyncActionResponse() {} + private SpannerAsyncActionResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpannerAsyncActionResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.SpannerAsyncActionResponse.class, - com.google.spanner.executor.v1.SpannerAsyncActionResponse.Builder.class); + com.google.spanner.executor.v1.SpannerAsyncActionResponse.class, com.google.spanner.executor.v1.SpannerAsyncActionResponse.Builder.class); } public static final int ACTION_ID_FIELD_NUMBER = 1; private int actionId_ = 0; /** - * - * * <pre> * Action id corresponds to the request. * </pre> * * <code>int32 action_id = 1;</code> - * * @return The actionId. */ @java.lang.Override @@ -81,15 +60,12 @@ public int getActionId() { public static final int OUTCOME_FIELD_NUMBER = 2; private com.google.spanner.executor.v1.SpannerActionOutcome outcome_; /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. * </pre> * * <code>.google.spanner.executor.v1.SpannerActionOutcome outcome = 2;</code> - * * @return Whether the outcome field is set. */ @java.lang.Override @@ -97,26 +73,19 @@ public boolean hasOutcome() { return outcome_ != null; } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. * </pre> * * <code>.google.spanner.executor.v1.SpannerActionOutcome outcome = 2;</code> - * * @return The outcome. */ @java.lang.Override public com.google.spanner.executor.v1.SpannerActionOutcome getOutcome() { - return outcome_ == null - ? com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance() - : outcome_; + return outcome_ == null ? com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance() : outcome_; } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. @@ -126,13 +95,10 @@ public com.google.spanner.executor.v1.SpannerActionOutcome getOutcome() { */ @java.lang.Override public com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder getOutcomeOrBuilder() { - return outcome_ == null - ? com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance() - : outcome_; + return outcome_ == null ? com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance() : outcome_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (actionId_ != 0) { output.writeInt32(1, actionId_); } @@ -161,10 +128,12 @@ public int getSerializedSize() { size = 0; if (actionId_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, actionId_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, actionId_); } if (outcome_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutcome()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutcome()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,18 +143,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.SpannerAsyncActionResponse)) { return super.equals(obj); } - com.google.spanner.executor.v1.SpannerAsyncActionResponse other = - (com.google.spanner.executor.v1.SpannerAsyncActionResponse) obj; + com.google.spanner.executor.v1.SpannerAsyncActionResponse other = (com.google.spanner.executor.v1.SpannerAsyncActionResponse) obj; - if (getActionId() != other.getActionId()) return false; + if (getActionId() + != other.getActionId()) return false; if (hasOutcome() != other.hasOutcome()) return false; if (hasOutcome()) { - if (!getOutcome().equals(other.getOutcome())) return false; + if (!getOutcome() + .equals(other.getOutcome())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -210,136 +180,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SpannerAsyncActionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAsyncActionResponse 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.SpannerAsyncActionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.SpannerAsyncActionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.SpannerAsyncActionResponse prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.SpannerAsyncActionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Response from executor service. * </pre> * * Protobuf type {@code google.spanner.executor.v1.SpannerAsyncActionResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.SpannerAsyncActionResponse) com.google.spanner.executor.v1.SpannerAsyncActionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.SpannerAsyncActionResponse.class, - com.google.spanner.executor.v1.SpannerAsyncActionResponse.Builder.class); + com.google.spanner.executor.v1.SpannerAsyncActionResponse.class, com.google.spanner.executor.v1.SpannerAsyncActionResponse.Builder.class); } // Construct using com.google.spanner.executor.v1.SpannerAsyncActionResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor; } @java.lang.Override @@ -375,11 +340,8 @@ public com.google.spanner.executor.v1.SpannerAsyncActionResponse build() { @java.lang.Override public com.google.spanner.executor.v1.SpannerAsyncActionResponse buildPartial() { - com.google.spanner.executor.v1.SpannerAsyncActionResponse result = - new com.google.spanner.executor.v1.SpannerAsyncActionResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.SpannerAsyncActionResponse result = new com.google.spanner.executor.v1.SpannerAsyncActionResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -390,7 +352,9 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerAsyncActionResp result.actionId_ = actionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.outcome_ = outcomeBuilder_ == null ? outcome_ : outcomeBuilder_.build(); + result.outcome_ = outcomeBuilder_ == null + ? outcome_ + : outcomeBuilder_.build(); } } @@ -398,39 +362,38 @@ private void buildPartial0(com.google.spanner.executor.v1.SpannerAsyncActionResp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.SpannerAsyncActionResponse) { - return mergeFrom((com.google.spanner.executor.v1.SpannerAsyncActionResponse) other); + return mergeFrom((com.google.spanner.executor.v1.SpannerAsyncActionResponse)other); } else { super.mergeFrom(other); return this; @@ -438,8 +401,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.SpannerAsyncActionResponse other) { - if (other == com.google.spanner.executor.v1.SpannerAsyncActionResponse.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.SpannerAsyncActionResponse.getDefaultInstance()) return this; if (other.getActionId() != 0) { setActionId(other.getActionId()); } @@ -472,25 +434,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - actionId_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getOutcomeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + actionId_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getOutcomeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,19 +461,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int actionId_; + private int actionId_ ; /** - * - * * <pre> * Action id corresponds to the request. * </pre> * * <code>int32 action_id = 1;</code> - * * @return The actionId. */ @java.lang.Override @@ -520,14 +477,11 @@ public int getActionId() { return actionId_; } /** - * - * * <pre> * Action id corresponds to the request. * </pre> * * <code>int32 action_id = 1;</code> - * * @param value The actionId to set. * @return This builder for chaining. */ @@ -539,14 +493,11 @@ public Builder setActionId(int value) { return this; } /** - * - * * <pre> * Action id corresponds to the request. * </pre> * * <code>int32 action_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearActionId() { @@ -558,49 +509,36 @@ public Builder clearActionId() { private com.google.spanner.executor.v1.SpannerActionOutcome outcome_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.SpannerActionOutcome, - com.google.spanner.executor.v1.SpannerActionOutcome.Builder, - com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder> - outcomeBuilder_; + com.google.spanner.executor.v1.SpannerActionOutcome, com.google.spanner.executor.v1.SpannerActionOutcome.Builder, com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder> outcomeBuilder_; /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. * </pre> * * <code>.google.spanner.executor.v1.SpannerActionOutcome outcome = 2;</code> - * * @return Whether the outcome field is set. */ public boolean hasOutcome() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. * </pre> * * <code>.google.spanner.executor.v1.SpannerActionOutcome outcome = 2;</code> - * * @return The outcome. */ public com.google.spanner.executor.v1.SpannerActionOutcome getOutcome() { if (outcomeBuilder_ == null) { - return outcome_ == null - ? com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance() - : outcome_; + return outcome_ == null ? com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance() : outcome_; } else { return outcomeBuilder_.getMessage(); } } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. @@ -622,8 +560,6 @@ public Builder setOutcome(com.google.spanner.executor.v1.SpannerActionOutcome va return this; } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. @@ -643,8 +579,6 @@ public Builder setOutcome( return this; } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. @@ -654,10 +588,9 @@ public Builder setOutcome( */ public Builder mergeOutcome(com.google.spanner.executor.v1.SpannerActionOutcome value) { if (outcomeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && outcome_ != null - && outcome_ - != com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + outcome_ != null && + outcome_ != com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance()) { getOutcomeBuilder().mergeFrom(value); } else { outcome_ = value; @@ -670,8 +603,6 @@ public Builder mergeOutcome(com.google.spanner.executor.v1.SpannerActionOutcome return this; } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. @@ -690,8 +621,6 @@ public Builder clearOutcome() { return this; } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. @@ -705,8 +634,6 @@ public com.google.spanner.executor.v1.SpannerActionOutcome.Builder getOutcomeBui return getOutcomeFieldBuilder().getBuilder(); } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. @@ -718,14 +645,11 @@ public com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder getOutcomeOr if (outcomeBuilder_ != null) { return outcomeBuilder_.getMessageOrBuilder(); } else { - return outcome_ == null - ? com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance() - : outcome_; + return outcome_ == null ? + com.google.spanner.executor.v1.SpannerActionOutcome.getDefaultInstance() : outcome_; } } /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. @@ -734,24 +658,21 @@ public com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder getOutcomeOr * <code>.google.spanner.executor.v1.SpannerActionOutcome outcome = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.SpannerActionOutcome, - com.google.spanner.executor.v1.SpannerActionOutcome.Builder, - com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder> + com.google.spanner.executor.v1.SpannerActionOutcome, com.google.spanner.executor.v1.SpannerActionOutcome.Builder, com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder> getOutcomeFieldBuilder() { if (outcomeBuilder_ == null) { - outcomeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.SpannerActionOutcome, - com.google.spanner.executor.v1.SpannerActionOutcome.Builder, - com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder>( - getOutcome(), getParentForChildren(), isClean()); + outcomeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.SpannerActionOutcome, com.google.spanner.executor.v1.SpannerActionOutcome.Builder, com.google.spanner.executor.v1.SpannerActionOutcomeOrBuilder>( + getOutcome(), + getParentForChildren(), + isClean()); outcome_ = null; } return outcomeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -761,12 +682,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.SpannerAsyncActionResponse) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.SpannerAsyncActionResponse) private static final com.google.spanner.executor.v1.SpannerAsyncActionResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.SpannerAsyncActionResponse(); } @@ -775,27 +696,27 @@ public static com.google.spanner.executor.v1.SpannerAsyncActionResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<SpannerAsyncActionResponse> PARSER = - new com.google.protobuf.AbstractParser<SpannerAsyncActionResponse>() { - @java.lang.Override - public SpannerAsyncActionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<SpannerAsyncActionResponse> + PARSER = new com.google.protobuf.AbstractParser<SpannerAsyncActionResponse>() { + @java.lang.Override + public SpannerAsyncActionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<SpannerAsyncActionResponse> parser() { return PARSER; @@ -810,4 +731,6 @@ public com.google.protobuf.Parser<SpannerAsyncActionResponse> getParserForType() public com.google.spanner.executor.v1.SpannerAsyncActionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java index 4cd40921dc2..a740435f30b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAsyncActionResponseOrBuilder.java @@ -1,70 +1,43 @@ -/* - * 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 interface SpannerAsyncActionResponseOrBuilder - extends +public interface SpannerAsyncActionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.SpannerAsyncActionResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Action id corresponds to the request. * </pre> * * <code>int32 action_id = 1;</code> - * * @return The actionId. */ int getActionId(); /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. * </pre> * * <code>.google.spanner.executor.v1.SpannerActionOutcome outcome = 2;</code> - * * @return Whether the outcome field is set. */ boolean hasOutcome(); /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. * </pre> * * <code>.google.spanner.executor.v1.SpannerActionOutcome outcome = 2;</code> - * * @return The outcome. */ com.google.spanner.executor.v1.SpannerActionOutcome getOutcome(); /** - * - * * <pre> * If action results are split into multiple responses, only the last response * can and should contain status. diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java index 8151ddd2d1a..33f7509c118 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionAction.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * * <pre> * Starts a batch read-only transaction in executor. Successful outcomes of this * action will contain batch_txn_id--the identificator that can be used to start @@ -58,55 +41,49 @@ * * Protobuf type {@code google.spanner.executor.v1.StartBatchTransactionAction} */ -public final class StartBatchTransactionAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartBatchTransactionAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.StartBatchTransactionAction) StartBatchTransactionActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartBatchTransactionAction.newBuilder() to construct. private StartBatchTransactionAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private StartBatchTransactionAction() { cloudDatabaseRole_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartBatchTransactionAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartBatchTransactionAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartBatchTransactionAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.StartBatchTransactionAction.class, - com.google.spanner.executor.v1.StartBatchTransactionAction.Builder.class); + com.google.spanner.executor.v1.StartBatchTransactionAction.class, com.google.spanner.executor.v1.StartBatchTransactionAction.Builder.class); } private int paramCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object param_; - public enum ParamCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_TXN_TIME(1), TID(2), PARAM_NOT_SET(0); private final int value; - private ParamCase(int value) { this.value = value; } @@ -122,36 +99,30 @@ public static ParamCase valueOf(int value) { public static ParamCase forNumber(int value) { switch (value) { - case 1: - return BATCH_TXN_TIME; - case 2: - return TID; - case 0: - return PARAM_NOT_SET; - default: - return null; + case 1: return BATCH_TXN_TIME; + case 2: return TID; + case 0: return PARAM_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ParamCase getParamCase() { - return ParamCase.forNumber(paramCase_); + public ParamCase + getParamCase() { + return ParamCase.forNumber( + paramCase_); } public static final int BATCH_TXN_TIME_FIELD_NUMBER = 1; /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> * * <code>.google.protobuf.Timestamp batch_txn_time = 1;</code> - * * @return Whether the batchTxnTime field is set. */ @java.lang.Override @@ -159,26 +130,21 @@ public boolean hasBatchTxnTime() { return paramCase_ == 1; } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> * * <code>.google.protobuf.Timestamp batch_txn_time = 1;</code> - * * @return The batchTxnTime. */ @java.lang.Override public com.google.protobuf.Timestamp getBatchTxnTime() { if (paramCase_ == 1) { - return (com.google.protobuf.Timestamp) param_; + return (com.google.protobuf.Timestamp) param_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> @@ -188,15 +154,13 @@ public com.google.protobuf.Timestamp getBatchTxnTime() { @java.lang.Override public com.google.protobuf.TimestampOrBuilder getBatchTxnTimeOrBuilder() { if (paramCase_ == 1) { - return (com.google.protobuf.Timestamp) param_; + return (com.google.protobuf.Timestamp) param_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int TID_FIELD_NUMBER = 2; /** - * - * * <pre> * ID of a batch read-only transaction. It can be used to start the same * batch transaction on multiple executors and parallelize partition @@ -204,7 +168,6 @@ public com.google.protobuf.TimestampOrBuilder getBatchTxnTimeOrBuilder() { * </pre> * * <code>bytes tid = 2;</code> - * * @return Whether the tid field is set. */ @java.lang.Override @@ -212,8 +175,6 @@ public boolean hasTid() { return paramCase_ == 2; } /** - * - * * <pre> * ID of a batch read-only transaction. It can be used to start the same * batch transaction on multiple executors and parallelize partition @@ -221,7 +182,6 @@ public boolean hasTid() { * </pre> * * <code>bytes tid = 2;</code> - * * @return The tid. */ @java.lang.Override @@ -233,12 +193,9 @@ public com.google.protobuf.ByteString getTid() { } public static final int CLOUD_DATABASE_ROLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object cloudDatabaseRole_ = ""; /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -246,7 +203,6 @@ public com.google.protobuf.ByteString getTid() { * </pre> * * <code>string cloud_database_role = 3;</code> - * * @return The cloudDatabaseRole. */ @java.lang.Override @@ -255,15 +211,14 @@ public java.lang.String getCloudDatabaseRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudDatabaseRole_ = s; return s; } } /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -271,15 +226,16 @@ public java.lang.String getCloudDatabaseRole() { * </pre> * * <code>string cloud_database_role = 3;</code> - * * @return The bytes for cloudDatabaseRole. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { + public com.google.protobuf.ByteString + getCloudDatabaseRoleBytes() { java.lang.Object ref = cloudDatabaseRole_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudDatabaseRole_ = b; return b; } else { @@ -288,7 +244,6 @@ public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,12 +255,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (paramCase_ == 1) { output.writeMessage(1, (com.google.protobuf.Timestamp) param_); } if (paramCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) param_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) param_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudDatabaseRole_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cloudDatabaseRole_); @@ -320,14 +277,13 @@ public int getSerializedSize() { size = 0; if (paramCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.protobuf.Timestamp) param_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.protobuf.Timestamp) param_); } if (paramCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) param_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) param_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudDatabaseRole_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cloudDatabaseRole_); @@ -340,22 +296,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.StartBatchTransactionAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.StartBatchTransactionAction other = - (com.google.spanner.executor.v1.StartBatchTransactionAction) obj; + com.google.spanner.executor.v1.StartBatchTransactionAction other = (com.google.spanner.executor.v1.StartBatchTransactionAction) obj; - if (!getCloudDatabaseRole().equals(other.getCloudDatabaseRole())) return false; + if (!getCloudDatabaseRole() + .equals(other.getCloudDatabaseRole())) return false; if (!getParamCase().equals(other.getParamCase())) return false; switch (paramCase_) { case 1: - if (!getBatchTxnTime().equals(other.getBatchTxnTime())) return false; + if (!getBatchTxnTime() + .equals(other.getBatchTxnTime())) return false; break; case 2: - if (!getTid().equals(other.getTid())) return false; + if (!getTid() + .equals(other.getTid())) return false; break; case 0: default: @@ -391,104 +349,98 @@ public int hashCode() { } public static com.google.spanner.executor.v1.StartBatchTransactionAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.StartBatchTransactionAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StartBatchTransactionAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.StartBatchTransactionAction 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.StartBatchTransactionAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.StartBatchTransactionAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.StartBatchTransactionAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.StartBatchTransactionAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.StartBatchTransactionAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.StartBatchTransactionAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.StartBatchTransactionAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.StartBatchTransactionAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.StartBatchTransactionAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.StartBatchTransactionAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.StartBatchTransactionAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.StartBatchTransactionAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Starts a batch read-only transaction in executor. Successful outcomes of this * action will contain batch_txn_id--the identificator that can be used to start @@ -526,32 +478,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.spanner.executor.v1.StartBatchTransactionAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.StartBatchTransactionAction) com.google.spanner.executor.v1.StartBatchTransactionActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartBatchTransactionAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartBatchTransactionAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.StartBatchTransactionAction.class, - com.google.spanner.executor.v1.StartBatchTransactionAction.Builder.class); + com.google.spanner.executor.v1.StartBatchTransactionAction.class, com.google.spanner.executor.v1.StartBatchTransactionAction.Builder.class); } // Construct using com.google.spanner.executor.v1.StartBatchTransactionAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -566,9 +519,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor; } @java.lang.Override @@ -587,11 +540,8 @@ public com.google.spanner.executor.v1.StartBatchTransactionAction build() { @java.lang.Override public com.google.spanner.executor.v1.StartBatchTransactionAction buildPartial() { - com.google.spanner.executor.v1.StartBatchTransactionAction result = - new com.google.spanner.executor.v1.StartBatchTransactionAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.StartBatchTransactionAction result = new com.google.spanner.executor.v1.StartBatchTransactionAction(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -604,11 +554,11 @@ private void buildPartial0(com.google.spanner.executor.v1.StartBatchTransactionA } } - private void buildPartialOneofs( - com.google.spanner.executor.v1.StartBatchTransactionAction result) { + private void buildPartialOneofs(com.google.spanner.executor.v1.StartBatchTransactionAction result) { result.paramCase_ = paramCase_; result.param_ = this.param_; - if (paramCase_ == 1 && batchTxnTimeBuilder_ != null) { + if (paramCase_ == 1 && + batchTxnTimeBuilder_ != null) { result.param_ = batchTxnTimeBuilder_.build(); } } @@ -617,39 +567,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.StartBatchTransactionAction) { - return mergeFrom((com.google.spanner.executor.v1.StartBatchTransactionAction) other); + return mergeFrom((com.google.spanner.executor.v1.StartBatchTransactionAction)other); } else { super.mergeFrom(other); return this; @@ -657,28 +606,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.StartBatchTransactionAction other) { - if (other == com.google.spanner.executor.v1.StartBatchTransactionAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.StartBatchTransactionAction.getDefaultInstance()) return this; if (!other.getCloudDatabaseRole().isEmpty()) { cloudDatabaseRole_ = other.cloudDatabaseRole_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getParamCase()) { - case BATCH_TXN_TIME: - { - mergeBatchTxnTime(other.getBatchTxnTime()); - break; - } - case TID: - { - setTid(other.getTid()); - break; - } - case PARAM_NOT_SET: - { - break; - } + case BATCH_TXN_TIME: { + mergeBatchTxnTime(other.getBatchTxnTime()); + break; + } + case TID: { + setTid(other.getTid()); + break; + } + case PARAM_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -706,31 +651,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBatchTxnTimeFieldBuilder().getBuilder(), extensionRegistry); - paramCase_ = 1; - break; - } // case 10 - case 18: - { - param_ = input.readBytes(); - paramCase_ = 2; - break; - } // case 18 - case 26: - { - cloudDatabaseRole_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBatchTxnTimeFieldBuilder().getBuilder(), + extensionRegistry); + paramCase_ = 1; + break; + } // case 10 + case 18: { + param_ = input.readBytes(); + paramCase_ = 2; + break; + } // case 18 + case 26: { + cloudDatabaseRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -740,12 +683,12 @@ public Builder mergeFrom( } // finally return this; } - private int paramCase_ = 0; private java.lang.Object param_; - - public ParamCase getParamCase() { - return ParamCase.forNumber(paramCase_); + public ParamCase + getParamCase() { + return ParamCase.forNumber( + paramCase_); } public Builder clearParam() { @@ -758,19 +701,13 @@ public Builder clearParam() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - batchTxnTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> batchTxnTimeBuilder_; /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> * * <code>.google.protobuf.Timestamp batch_txn_time = 1;</code> - * * @return Whether the batchTxnTime field is set. */ @java.lang.Override @@ -778,14 +715,11 @@ public boolean hasBatchTxnTime() { return paramCase_ == 1; } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> * * <code>.google.protobuf.Timestamp batch_txn_time = 1;</code> - * * @return The batchTxnTime. */ @java.lang.Override @@ -803,8 +737,6 @@ public com.google.protobuf.Timestamp getBatchTxnTime() { } } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> @@ -825,15 +757,14 @@ public Builder setBatchTxnTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> * * <code>.google.protobuf.Timestamp batch_txn_time = 1;</code> */ - public Builder setBatchTxnTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setBatchTxnTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (batchTxnTimeBuilder_ == null) { param_ = builderForValue.build(); onChanged(); @@ -844,8 +775,6 @@ public Builder setBatchTxnTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> @@ -854,11 +783,10 @@ public Builder setBatchTxnTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeBatchTxnTime(com.google.protobuf.Timestamp value) { if (batchTxnTimeBuilder_ == null) { - if (paramCase_ == 1 && param_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - param_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) param_) - .mergeFrom(value) - .buildPartial(); + if (paramCase_ == 1 && + param_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + param_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) param_) + .mergeFrom(value).buildPartial(); } else { param_ = value; } @@ -874,8 +802,6 @@ public Builder mergeBatchTxnTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> @@ -899,8 +825,6 @@ public Builder clearBatchTxnTime() { return this; } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> @@ -911,8 +835,6 @@ public com.google.protobuf.Timestamp.Builder getBatchTxnTimeBuilder() { return getBatchTxnTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> @@ -931,8 +853,6 @@ public com.google.protobuf.TimestampOrBuilder getBatchTxnTimeOrBuilder() { } } /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> @@ -940,20 +860,17 @@ public com.google.protobuf.TimestampOrBuilder getBatchTxnTimeOrBuilder() { * <code>.google.protobuf.Timestamp batch_txn_time = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getBatchTxnTimeFieldBuilder() { if (batchTxnTimeBuilder_ == null) { if (!(paramCase_ == 1)) { param_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - batchTxnTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) param_, getParentForChildren(), isClean()); + batchTxnTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) param_, + getParentForChildren(), + isClean()); param_ = null; } paramCase_ = 1; @@ -962,8 +879,6 @@ public com.google.protobuf.TimestampOrBuilder getBatchTxnTimeOrBuilder() { } /** - * - * * <pre> * ID of a batch read-only transaction. It can be used to start the same * batch transaction on multiple executors and parallelize partition @@ -971,15 +886,12 @@ public com.google.protobuf.TimestampOrBuilder getBatchTxnTimeOrBuilder() { * </pre> * * <code>bytes tid = 2;</code> - * * @return Whether the tid field is set. */ public boolean hasTid() { return paramCase_ == 2; } /** - * - * * <pre> * ID of a batch read-only transaction. It can be used to start the same * batch transaction on multiple executors and parallelize partition @@ -987,7 +899,6 @@ public boolean hasTid() { * </pre> * * <code>bytes tid = 2;</code> - * * @return The tid. */ public com.google.protobuf.ByteString getTid() { @@ -997,8 +908,6 @@ public com.google.protobuf.ByteString getTid() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * * <pre> * ID of a batch read-only transaction. It can be used to start the same * batch transaction on multiple executors and parallelize partition @@ -1006,22 +915,17 @@ public com.google.protobuf.ByteString getTid() { * </pre> * * <code>bytes tid = 2;</code> - * * @param value The tid to set. * @return This builder for chaining. */ public Builder setTid(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } paramCase_ = 2; param_ = value; onChanged(); return this; } /** - * - * * <pre> * ID of a batch read-only transaction. It can be used to start the same * batch transaction on multiple executors and parallelize partition @@ -1029,7 +933,6 @@ public Builder setTid(com.google.protobuf.ByteString value) { * </pre> * * <code>bytes tid = 2;</code> - * * @return This builder for chaining. */ public Builder clearTid() { @@ -1043,8 +946,6 @@ public Builder clearTid() { private java.lang.Object cloudDatabaseRole_ = ""; /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -1052,13 +953,13 @@ public Builder clearTid() { * </pre> * * <code>string cloud_database_role = 3;</code> - * * @return The cloudDatabaseRole. */ public java.lang.String getCloudDatabaseRole() { java.lang.Object ref = cloudDatabaseRole_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudDatabaseRole_ = s; return s; @@ -1067,8 +968,6 @@ public java.lang.String getCloudDatabaseRole() { } } /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -1076,14 +975,15 @@ public java.lang.String getCloudDatabaseRole() { * </pre> * * <code>string cloud_database_role = 3;</code> - * * @return The bytes for cloudDatabaseRole. */ - public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { + public com.google.protobuf.ByteString + getCloudDatabaseRoleBytes() { java.lang.Object ref = cloudDatabaseRole_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudDatabaseRole_ = b; return b; } else { @@ -1091,8 +991,6 @@ public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { } } /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -1100,22 +998,18 @@ public com.google.protobuf.ByteString getCloudDatabaseRoleBytes() { * </pre> * * <code>string cloud_database_role = 3;</code> - * * @param value The cloudDatabaseRole to set. * @return This builder for chaining. */ - public Builder setCloudDatabaseRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCloudDatabaseRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cloudDatabaseRole_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -1123,7 +1017,6 @@ public Builder setCloudDatabaseRole(java.lang.String value) { * </pre> * * <code>string cloud_database_role = 3;</code> - * * @return This builder for chaining. */ public Builder clearCloudDatabaseRole() { @@ -1133,8 +1026,6 @@ public Builder clearCloudDatabaseRole() { return this; } /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -1142,23 +1033,21 @@ public Builder clearCloudDatabaseRole() { * </pre> * * <code>string cloud_database_role = 3;</code> - * * @param value The bytes for cloudDatabaseRole to set. * @return This builder for chaining. */ - public Builder setCloudDatabaseRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCloudDatabaseRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cloudDatabaseRole_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1168,12 +1057,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.StartBatchTransactionAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.StartBatchTransactionAction) private static final com.google.spanner.executor.v1.StartBatchTransactionAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.StartBatchTransactionAction(); } @@ -1182,27 +1071,27 @@ public static com.google.spanner.executor.v1.StartBatchTransactionAction getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<StartBatchTransactionAction> PARSER = - new com.google.protobuf.AbstractParser<StartBatchTransactionAction>() { - @java.lang.Override - public StartBatchTransactionAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<StartBatchTransactionAction> + PARSER = new com.google.protobuf.AbstractParser<StartBatchTransactionAction>() { + @java.lang.Override + public StartBatchTransactionAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<StartBatchTransactionAction> parser() { return PARSER; @@ -1217,4 +1106,6 @@ public com.google.protobuf.Parser<StartBatchTransactionAction> getParserForType( public com.google.spanner.executor.v1.StartBatchTransactionAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java similarity index 74% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java index 36a9b82e176..f6a5c12ee7e 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartBatchTransactionActionOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 interface StartBatchTransactionActionOrBuilder - extends +public interface StartBatchTransactionActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.StartBatchTransactionAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> * * <code>.google.protobuf.Timestamp batch_txn_time = 1;</code> - * * @return Whether the batchTxnTime field is set. */ boolean hasBatchTxnTime(); /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> * * <code>.google.protobuf.Timestamp batch_txn_time = 1;</code> - * * @return The batchTxnTime. */ com.google.protobuf.Timestamp getBatchTxnTime(); /** - * - * * <pre> * The exact timestamp to start the batch transaction. * </pre> @@ -59,8 +35,6 @@ public interface StartBatchTransactionActionOrBuilder com.google.protobuf.TimestampOrBuilder getBatchTxnTimeOrBuilder(); /** - * - * * <pre> * ID of a batch read-only transaction. It can be used to start the same * batch transaction on multiple executors and parallelize partition @@ -68,13 +42,10 @@ public interface StartBatchTransactionActionOrBuilder * </pre> * * <code>bytes tid = 2;</code> - * * @return Whether the tid field is set. */ boolean hasTid(); /** - * - * * <pre> * ID of a batch read-only transaction. It can be used to start the same * batch transaction on multiple executors and parallelize partition @@ -82,14 +53,11 @@ public interface StartBatchTransactionActionOrBuilder * </pre> * * <code>bytes tid = 2;</code> - * * @return The tid. */ com.google.protobuf.ByteString getTid(); /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -97,13 +65,10 @@ public interface StartBatchTransactionActionOrBuilder * </pre> * * <code>string cloud_database_role = 3;</code> - * * @return The cloudDatabaseRole. */ java.lang.String getCloudDatabaseRole(); /** - * - * * <pre> * Database role to assume while performing this action. Setting the * database_role will enforce additional role-based access checks on this @@ -111,10 +76,10 @@ public interface StartBatchTransactionActionOrBuilder * </pre> * * <code>string cloud_database_role = 3;</code> - * * @return The bytes for cloudDatabaseRole. */ - com.google.protobuf.ByteString getCloudDatabaseRoleBytes(); + com.google.protobuf.ByteString + getCloudDatabaseRoleBytes(); com.google.spanner.executor.v1.StartBatchTransactionAction.ParamCase getParamCase(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java index 5a59ea38137..0a487e93d59 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * StartTransactionAction defines an action of initializing a transaction. * </pre> * * Protobuf type {@code google.spanner.executor.v1.StartTransactionAction} */ -public final class StartTransactionAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartTransactionAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.StartTransactionAction) StartTransactionActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartTransactionAction.newBuilder() to construct. private StartTransactionAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private StartTransactionAction() { table_ = java.util.Collections.emptyList(); transactionSeed_ = ""; @@ -44,38 +26,34 @@ private StartTransactionAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartTransactionAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartTransactionAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartTransactionAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.StartTransactionAction.class, - com.google.spanner.executor.v1.StartTransactionAction.Builder.class); + com.google.spanner.executor.v1.StartTransactionAction.class, com.google.spanner.executor.v1.StartTransactionAction.Builder.class); } private int bitField0_; public static final int CONCURRENCY_FIELD_NUMBER = 1; private com.google.spanner.executor.v1.Concurrency concurrency_; /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. * </pre> * * <code>optional .google.spanner.executor.v1.Concurrency concurrency = 1;</code> - * * @return Whether the concurrency field is set. */ @java.lang.Override @@ -83,26 +61,19 @@ public boolean hasConcurrency() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. * </pre> * * <code>optional .google.spanner.executor.v1.Concurrency concurrency = 1;</code> - * * @return The concurrency. */ @java.lang.Override public com.google.spanner.executor.v1.Concurrency getConcurrency() { - return concurrency_ == null - ? com.google.spanner.executor.v1.Concurrency.getDefaultInstance() - : concurrency_; + return concurrency_ == null ? com.google.spanner.executor.v1.Concurrency.getDefaultInstance() : concurrency_; } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -112,18 +83,13 @@ public com.google.spanner.executor.v1.Concurrency getConcurrency() { */ @java.lang.Override public com.google.spanner.executor.v1.ConcurrencyOrBuilder getConcurrencyOrBuilder() { - return concurrency_ == null - ? com.google.spanner.executor.v1.Concurrency.getDefaultInstance() - : concurrency_; + return concurrency_ == null ? com.google.spanner.executor.v1.Concurrency.getDefaultInstance() : concurrency_; } public static final int TABLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.TableMetadata> table_; /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -136,8 +102,6 @@ public java.util.List<com.google.spanner.executor.v1.TableMetadata> getTableList return table_; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -146,13 +110,11 @@ public java.util.List<com.google.spanner.executor.v1.TableMetadata> getTableList * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> getTableOrBuilderList() { return table_; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -165,8 +127,6 @@ public int getTableCount() { return table_.size(); } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -179,8 +139,6 @@ public com.google.spanner.executor.v1.TableMetadata getTable(int index) { return table_.get(index); } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -189,24 +147,21 @@ public com.google.spanner.executor.v1.TableMetadata getTable(int index) { * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(int index) { + public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder( + int index) { return table_.get(index); } public static final int TRANSACTION_SEED_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object transactionSeed_ = ""; /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @return The transactionSeed. */ @java.lang.Override @@ -215,30 +170,30 @@ public java.lang.String getTransactionSeed() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionSeed_ = s; return s; } } /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @return The bytes for transactionSeed. */ @java.lang.Override - public com.google.protobuf.ByteString getTransactionSeedBytes() { + public com.google.protobuf.ByteString + getTransactionSeedBytes() { java.lang.Object ref = transactionSeed_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionSeed_ = b; return b; } else { @@ -249,15 +204,11 @@ public com.google.protobuf.ByteString getTransactionSeedBytes() { public static final int EXECUTION_OPTIONS_FIELD_NUMBER = 4; private com.google.spanner.executor.v1.TransactionExecutionOptions executionOptions_; /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> - * + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> * @return Whether the executionOptions field is set. */ @java.lang.Override @@ -265,43 +216,30 @@ public boolean hasExecutionOptions() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> - * + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> * @return The executionOptions. */ @java.lang.Override public com.google.spanner.executor.v1.TransactionExecutionOptions getExecutionOptions() { - return executionOptions_ == null - ? com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance() - : executionOptions_; + return executionOptions_ == null ? com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance() : executionOptions_; } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder - getExecutionOptionsOrBuilder() { - return executionOptions_ == null - ? com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance() - : executionOptions_; + public com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder getExecutionOptionsOrBuilder() { + return executionOptions_ == null ? com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance() : executionOptions_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +251,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getConcurrency()); } @@ -336,16 +275,19 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConcurrency()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConcurrency()); } for (int i = 0; i < table_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, table_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, table_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionSeed_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionSeed_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExecutionOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExecutionOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -355,23 +297,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.StartTransactionAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.StartTransactionAction other = - (com.google.spanner.executor.v1.StartTransactionAction) obj; + com.google.spanner.executor.v1.StartTransactionAction other = (com.google.spanner.executor.v1.StartTransactionAction) obj; if (hasConcurrency() != other.hasConcurrency()) return false; if (hasConcurrency()) { - if (!getConcurrency().equals(other.getConcurrency())) return false; + if (!getConcurrency() + .equals(other.getConcurrency())) return false; } - if (!getTableList().equals(other.getTableList())) return false; - if (!getTransactionSeed().equals(other.getTransactionSeed())) return false; + if (!getTableList() + .equals(other.getTableList())) return false; + if (!getTransactionSeed() + .equals(other.getTransactionSeed())) return false; if (hasExecutionOptions() != other.hasExecutionOptions()) return false; if (hasExecutionOptions()) { - if (!getExecutionOptions().equals(other.getExecutionOptions())) return false; + if (!getExecutionOptions() + .equals(other.getExecutionOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -404,127 +349,119 @@ public int hashCode() { } public static com.google.spanner.executor.v1.StartTransactionAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.StartTransactionAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StartTransactionAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.StartTransactionAction 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.StartTransactionAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.StartTransactionAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.StartTransactionAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.StartTransactionAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.StartTransactionAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.StartTransactionAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.StartTransactionAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.StartTransactionAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.StartTransactionAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.StartTransactionAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.StartTransactionAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.StartTransactionAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * StartTransactionAction defines an action of initializing a transaction. * </pre> * * Protobuf type {@code google.spanner.executor.v1.StartTransactionAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.StartTransactionAction) com.google.spanner.executor.v1.StartTransactionActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartTransactionAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartTransactionAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.StartTransactionAction.class, - com.google.spanner.executor.v1.StartTransactionAction.Builder.class); + com.google.spanner.executor.v1.StartTransactionAction.class, com.google.spanner.executor.v1.StartTransactionAction.Builder.class); } // Construct using com.google.spanner.executor.v1.StartTransactionAction.newBuilder() @@ -532,19 +469,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getConcurrencyFieldBuilder(); getTableFieldBuilder(); getExecutionOptionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor; } @java.lang.Override @@ -592,18 +529,14 @@ public com.google.spanner.executor.v1.StartTransactionAction build() { @java.lang.Override public com.google.spanner.executor.v1.StartTransactionAction buildPartial() { - com.google.spanner.executor.v1.StartTransactionAction result = - new com.google.spanner.executor.v1.StartTransactionAction(this); + com.google.spanner.executor.v1.StartTransactionAction result = new com.google.spanner.executor.v1.StartTransactionAction(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.spanner.executor.v1.StartTransactionAction result) { + private void buildPartialRepeatedFields(com.google.spanner.executor.v1.StartTransactionAction result) { if (tableBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { table_ = java.util.Collections.unmodifiableList(table_); @@ -619,16 +552,18 @@ private void buildPartial0(com.google.spanner.executor.v1.StartTransactionAction int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.concurrency_ = - concurrencyBuilder_ == null ? concurrency_ : concurrencyBuilder_.build(); + result.concurrency_ = concurrencyBuilder_ == null + ? concurrency_ + : concurrencyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.transactionSeed_ = transactionSeed_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.executionOptions_ = - executionOptionsBuilder_ == null ? executionOptions_ : executionOptionsBuilder_.build(); + result.executionOptions_ = executionOptionsBuilder_ == null + ? executionOptions_ + : executionOptionsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -638,39 +573,38 @@ private void buildPartial0(com.google.spanner.executor.v1.StartTransactionAction public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.StartTransactionAction) { - return mergeFrom((com.google.spanner.executor.v1.StartTransactionAction) other); + return mergeFrom((com.google.spanner.executor.v1.StartTransactionAction)other); } else { super.mergeFrom(other); return this; @@ -678,8 +612,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.StartTransactionAction other) { - if (other == com.google.spanner.executor.v1.StartTransactionAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.StartTransactionAction.getDefaultInstance()) return this; if (other.hasConcurrency()) { mergeConcurrency(other.getConcurrency()); } @@ -701,10 +634,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.StartTransactionAction o tableBuilder_ = null; table_ = other.table_; bitField0_ = (bitField0_ & ~0x00000002); - tableBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTableFieldBuilder() - : null; + tableBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTableFieldBuilder() : null; } else { tableBuilder_.addAllMessages(other.table_); } @@ -744,45 +676,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConcurrencyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.spanner.executor.v1.TableMetadata m = - input.readMessage( - com.google.spanner.executor.v1.TableMetadata.parser(), extensionRegistry); - if (tableBuilder_ == null) { - ensureTableIsMutable(); - table_.add(m); - } else { - tableBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - transactionSeed_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getExecutionOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConcurrencyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.spanner.executor.v1.TableMetadata m = + input.readMessage( + com.google.spanner.executor.v1.TableMetadata.parser(), + extensionRegistry); + if (tableBuilder_ == null) { + ensureTableIsMutable(); + table_.add(m); + } else { + tableBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + transactionSeed_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getExecutionOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -792,54 +723,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.spanner.executor.v1.Concurrency concurrency_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.Concurrency, - com.google.spanner.executor.v1.Concurrency.Builder, - com.google.spanner.executor.v1.ConcurrencyOrBuilder> - concurrencyBuilder_; + com.google.spanner.executor.v1.Concurrency, com.google.spanner.executor.v1.Concurrency.Builder, com.google.spanner.executor.v1.ConcurrencyOrBuilder> concurrencyBuilder_; /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. * </pre> * * <code>optional .google.spanner.executor.v1.Concurrency concurrency = 1;</code> - * * @return Whether the concurrency field is set. */ public boolean hasConcurrency() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. * </pre> * * <code>optional .google.spanner.executor.v1.Concurrency concurrency = 1;</code> - * * @return The concurrency. */ public com.google.spanner.executor.v1.Concurrency getConcurrency() { if (concurrencyBuilder_ == null) { - return concurrency_ == null - ? com.google.spanner.executor.v1.Concurrency.getDefaultInstance() - : concurrency_; + return concurrency_ == null ? com.google.spanner.executor.v1.Concurrency.getDefaultInstance() : concurrency_; } else { return concurrencyBuilder_.getMessage(); } } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -861,8 +778,6 @@ public Builder setConcurrency(com.google.spanner.executor.v1.Concurrency value) return this; } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -882,8 +797,6 @@ public Builder setConcurrency( return this; } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -893,9 +806,9 @@ public Builder setConcurrency( */ public Builder mergeConcurrency(com.google.spanner.executor.v1.Concurrency value) { if (concurrencyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && concurrency_ != null - && concurrency_ != com.google.spanner.executor.v1.Concurrency.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + concurrency_ != null && + concurrency_ != com.google.spanner.executor.v1.Concurrency.getDefaultInstance()) { getConcurrencyBuilder().mergeFrom(value); } else { concurrency_ = value; @@ -908,8 +821,6 @@ public Builder mergeConcurrency(com.google.spanner.executor.v1.Concurrency value return this; } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -928,8 +839,6 @@ public Builder clearConcurrency() { return this; } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -943,8 +852,6 @@ public com.google.spanner.executor.v1.Concurrency.Builder getConcurrencyBuilder( return getConcurrencyFieldBuilder().getBuilder(); } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -956,14 +863,11 @@ public com.google.spanner.executor.v1.ConcurrencyOrBuilder getConcurrencyOrBuild if (concurrencyBuilder_ != null) { return concurrencyBuilder_.getMessageOrBuilder(); } else { - return concurrency_ == null - ? com.google.spanner.executor.v1.Concurrency.getDefaultInstance() - : concurrency_; + return concurrency_ == null ? + com.google.spanner.executor.v1.Concurrency.getDefaultInstance() : concurrency_; } } /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -972,41 +876,32 @@ public com.google.spanner.executor.v1.ConcurrencyOrBuilder getConcurrencyOrBuild * <code>optional .google.spanner.executor.v1.Concurrency concurrency = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.Concurrency, - com.google.spanner.executor.v1.Concurrency.Builder, - com.google.spanner.executor.v1.ConcurrencyOrBuilder> + com.google.spanner.executor.v1.Concurrency, com.google.spanner.executor.v1.Concurrency.Builder, com.google.spanner.executor.v1.ConcurrencyOrBuilder> getConcurrencyFieldBuilder() { if (concurrencyBuilder_ == null) { - concurrencyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.Concurrency, - com.google.spanner.executor.v1.Concurrency.Builder, - com.google.spanner.executor.v1.ConcurrencyOrBuilder>( - getConcurrency(), getParentForChildren(), isClean()); + concurrencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.Concurrency, com.google.spanner.executor.v1.Concurrency.Builder, com.google.spanner.executor.v1.ConcurrencyOrBuilder>( + getConcurrency(), + getParentForChildren(), + isClean()); concurrency_ = null; } return concurrencyBuilder_; } private java.util.List<com.google.spanner.executor.v1.TableMetadata> table_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { table_ = new java.util.ArrayList<com.google.spanner.executor.v1.TableMetadata>(table_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.TableMetadata, - com.google.spanner.executor.v1.TableMetadata.Builder, - com.google.spanner.executor.v1.TableMetadataOrBuilder> - tableBuilder_; + com.google.spanner.executor.v1.TableMetadata, com.google.spanner.executor.v1.TableMetadata.Builder, com.google.spanner.executor.v1.TableMetadataOrBuilder> tableBuilder_; /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1022,8 +917,6 @@ public java.util.List<com.google.spanner.executor.v1.TableMetadata> getTableList } } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1039,8 +932,6 @@ public int getTableCount() { } } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1056,8 +947,6 @@ public com.google.spanner.executor.v1.TableMetadata getTable(int index) { } } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1065,7 +954,8 @@ public com.google.spanner.executor.v1.TableMetadata getTable(int index) { * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public Builder setTable(int index, com.google.spanner.executor.v1.TableMetadata value) { + public Builder setTable( + int index, com.google.spanner.executor.v1.TableMetadata value) { if (tableBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1079,8 +969,6 @@ public Builder setTable(int index, com.google.spanner.executor.v1.TableMetadata return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1100,8 +988,6 @@ public Builder setTable( return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1123,8 +1009,6 @@ public Builder addTable(com.google.spanner.executor.v1.TableMetadata value) { return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1132,7 +1016,8 @@ public Builder addTable(com.google.spanner.executor.v1.TableMetadata value) { * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public Builder addTable(int index, com.google.spanner.executor.v1.TableMetadata value) { + public Builder addTable( + int index, com.google.spanner.executor.v1.TableMetadata value) { if (tableBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1146,8 +1031,6 @@ public Builder addTable(int index, com.google.spanner.executor.v1.TableMetadata return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1155,7 +1038,8 @@ public Builder addTable(int index, com.google.spanner.executor.v1.TableMetadata * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public Builder addTable(com.google.spanner.executor.v1.TableMetadata.Builder builderForValue) { + public Builder addTable( + com.google.spanner.executor.v1.TableMetadata.Builder builderForValue) { if (tableBuilder_ == null) { ensureTableIsMutable(); table_.add(builderForValue.build()); @@ -1166,8 +1050,6 @@ public Builder addTable(com.google.spanner.executor.v1.TableMetadata.Builder bui return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1187,8 +1069,6 @@ public Builder addTable( return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1200,7 +1080,8 @@ public Builder addAllTable( java.lang.Iterable<? extends com.google.spanner.executor.v1.TableMetadata> values) { if (tableBuilder_ == null) { ensureTableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, table_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, table_); onChanged(); } else { tableBuilder_.addAllMessages(values); @@ -1208,8 +1089,6 @@ public Builder addAllTable( return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1228,8 +1107,6 @@ public Builder clearTable() { return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1248,8 +1125,6 @@ public Builder removeTable(int index) { return this; } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1257,12 +1132,11 @@ public Builder removeTable(int index) { * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public com.google.spanner.executor.v1.TableMetadata.Builder getTableBuilder(int index) { + public com.google.spanner.executor.v1.TableMetadata.Builder getTableBuilder( + int index) { return getTableFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1270,16 +1144,14 @@ public com.google.spanner.executor.v1.TableMetadata.Builder getTableBuilder(int * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(int index) { + public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder( + int index) { if (tableBuilder_ == null) { - return table_.get(index); - } else { + return table_.get(index); } else { return tableBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1287,8 +1159,8 @@ public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(i * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> - getTableOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> + getTableOrBuilderList() { if (tableBuilder_ != null) { return tableBuilder_.getMessageOrBuilderList(); } else { @@ -1296,8 +1168,6 @@ public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(i } } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1306,12 +1176,10 @@ public com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(i * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder() { - return getTableFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.TableMetadata.getDefaultInstance()); + return getTableFieldBuilder().addBuilder( + com.google.spanner.executor.v1.TableMetadata.getDefaultInstance()); } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1319,13 +1187,12 @@ public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder() { * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder(int index) { - return getTableFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.TableMetadata.getDefaultInstance()); + public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder( + int index) { + return getTableFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.TableMetadata.getDefaultInstance()); } /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -1333,23 +1200,20 @@ public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder(int * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - public java.util.List<com.google.spanner.executor.v1.TableMetadata.Builder> - getTableBuilderList() { + public java.util.List<com.google.spanner.executor.v1.TableMetadata.Builder> + getTableBuilderList() { return getTableFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.TableMetadata, - com.google.spanner.executor.v1.TableMetadata.Builder, - com.google.spanner.executor.v1.TableMetadataOrBuilder> + com.google.spanner.executor.v1.TableMetadata, com.google.spanner.executor.v1.TableMetadata.Builder, com.google.spanner.executor.v1.TableMetadataOrBuilder> getTableFieldBuilder() { if (tableBuilder_ == null) { - tableBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.TableMetadata, - com.google.spanner.executor.v1.TableMetadata.Builder, - com.google.spanner.executor.v1.TableMetadataOrBuilder>( - table_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + tableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.TableMetadata, com.google.spanner.executor.v1.TableMetadata.Builder, com.google.spanner.executor.v1.TableMetadataOrBuilder>( + table_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); table_ = null; } return tableBuilder_; @@ -1357,21 +1221,19 @@ public com.google.spanner.executor.v1.TableMetadata.Builder addTableBuilder(int private java.lang.Object transactionSeed_ = ""; /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @return The transactionSeed. */ public java.lang.String getTransactionSeed() { java.lang.Object ref = transactionSeed_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionSeed_ = s; return s; @@ -1380,22 +1242,21 @@ public java.lang.String getTransactionSeed() { } } /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @return The bytes for transactionSeed. */ - public com.google.protobuf.ByteString getTransactionSeedBytes() { + public com.google.protobuf.ByteString + getTransactionSeedBytes() { java.lang.Object ref = transactionSeed_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionSeed_ = b; return b; } else { @@ -1403,37 +1264,30 @@ public com.google.protobuf.ByteString getTransactionSeedBytes() { } } /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @param value The transactionSeed to set. * @return This builder for chaining. */ - public Builder setTransactionSeed(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionSeed( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transactionSeed_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @return This builder for chaining. */ public Builder clearTransactionSeed() { @@ -1443,22 +1297,18 @@ public Builder clearTransactionSeed() { return this; } /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @param value The bytes for transactionSeed to set. * @return This builder for chaining. */ - public Builder setTransactionSeedBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionSeedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionSeed_ = value; bitField0_ |= 0x00000004; @@ -1468,58 +1318,41 @@ public Builder setTransactionSeedBytes(com.google.protobuf.ByteString value) { private com.google.spanner.executor.v1.TransactionExecutionOptions executionOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.TransactionExecutionOptions, - com.google.spanner.executor.v1.TransactionExecutionOptions.Builder, - com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder> - executionOptionsBuilder_; + com.google.spanner.executor.v1.TransactionExecutionOptions, com.google.spanner.executor.v1.TransactionExecutionOptions.Builder, com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder> executionOptionsBuilder_; /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> - * + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> * @return Whether the executionOptions field is set. */ public boolean hasExecutionOptions() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> - * + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> * @return The executionOptions. */ public com.google.spanner.executor.v1.TransactionExecutionOptions getExecutionOptions() { if (executionOptionsBuilder_ == null) { - return executionOptions_ == null - ? com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance() - : executionOptions_; + return executionOptions_ == null ? com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance() : executionOptions_; } else { return executionOptionsBuilder_.getMessage(); } } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ - public Builder setExecutionOptions( - com.google.spanner.executor.v1.TransactionExecutionOptions value) { + public Builder setExecutionOptions(com.google.spanner.executor.v1.TransactionExecutionOptions value) { if (executionOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1533,14 +1366,11 @@ public Builder setExecutionOptions( return this; } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ public Builder setExecutionOptions( com.google.spanner.executor.v1.TransactionExecutionOptions.Builder builderForValue) { @@ -1554,23 +1384,17 @@ public Builder setExecutionOptions( return this; } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ - public Builder mergeExecutionOptions( - com.google.spanner.executor.v1.TransactionExecutionOptions value) { + public Builder mergeExecutionOptions(com.google.spanner.executor.v1.TransactionExecutionOptions value) { if (executionOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && executionOptions_ != null - && executionOptions_ - != com.google.spanner.executor.v1.TransactionExecutionOptions - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + executionOptions_ != null && + executionOptions_ != com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance()) { getExecutionOptionsBuilder().mergeFrom(value); } else { executionOptions_ = value; @@ -1583,14 +1407,11 @@ public Builder mergeExecutionOptions( return this; } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ public Builder clearExecutionOptions() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1603,70 +1424,55 @@ public Builder clearExecutionOptions() { return this; } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ - public com.google.spanner.executor.v1.TransactionExecutionOptions.Builder - getExecutionOptionsBuilder() { + public com.google.spanner.executor.v1.TransactionExecutionOptions.Builder getExecutionOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getExecutionOptionsFieldBuilder().getBuilder(); } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ - public com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder - getExecutionOptionsOrBuilder() { + public com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder getExecutionOptionsOrBuilder() { if (executionOptionsBuilder_ != null) { return executionOptionsBuilder_.getMessageOrBuilder(); } else { - return executionOptions_ == null - ? com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance() - : executionOptions_; + return executionOptions_ == null ? + com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance() : executionOptions_; } } /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.TransactionExecutionOptions, - com.google.spanner.executor.v1.TransactionExecutionOptions.Builder, - com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder> + com.google.spanner.executor.v1.TransactionExecutionOptions, com.google.spanner.executor.v1.TransactionExecutionOptions.Builder, com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder> getExecutionOptionsFieldBuilder() { if (executionOptionsBuilder_ == null) { - executionOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.spanner.executor.v1.TransactionExecutionOptions, - com.google.spanner.executor.v1.TransactionExecutionOptions.Builder, - com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder>( - getExecutionOptions(), getParentForChildren(), isClean()); + executionOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.executor.v1.TransactionExecutionOptions, com.google.spanner.executor.v1.TransactionExecutionOptions.Builder, com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder>( + getExecutionOptions(), + getParentForChildren(), + isClean()); executionOptions_ = null; } return executionOptionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1676,12 +1482,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.StartTransactionAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.StartTransactionAction) private static final com.google.spanner.executor.v1.StartTransactionAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.StartTransactionAction(); } @@ -1690,27 +1496,27 @@ public static com.google.spanner.executor.v1.StartTransactionAction getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<StartTransactionAction> PARSER = - new com.google.protobuf.AbstractParser<StartTransactionAction>() { - @java.lang.Override - public StartTransactionAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<StartTransactionAction> + PARSER = new com.google.protobuf.AbstractParser<StartTransactionAction>() { + @java.lang.Override + public StartTransactionAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<StartTransactionAction> parser() { return PARSER; @@ -1725,4 +1531,6 @@ public com.google.protobuf.Parser<StartTransactionAction> getParserForType() { public com.google.spanner.executor.v1.StartTransactionAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java similarity index 77% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java index b3019e84c78..58ddbdfbaeb 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/StartTransactionActionOrBuilder.java @@ -1,57 +1,33 @@ -/* - * 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 interface StartTransactionActionOrBuilder - extends +public interface StartTransactionActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.StartTransactionAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. * </pre> * * <code>optional .google.spanner.executor.v1.Concurrency concurrency = 1;</code> - * * @return Whether the concurrency field is set. */ boolean hasConcurrency(); /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. * </pre> * * <code>optional .google.spanner.executor.v1.Concurrency concurrency = 1;</code> - * * @return The concurrency. */ com.google.spanner.executor.v1.Concurrency getConcurrency(); /** - * - * * <pre> * Concurrency is for read-only transactions and must be omitted for * read-write transactions. @@ -62,8 +38,6 @@ public interface StartTransactionActionOrBuilder com.google.spanner.executor.v1.ConcurrencyOrBuilder getConcurrencyOrBuilder(); /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -71,10 +45,9 @@ public interface StartTransactionActionOrBuilder * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - java.util.List<com.google.spanner.executor.v1.TableMetadata> getTableList(); + java.util.List<com.google.spanner.executor.v1.TableMetadata> + getTableList(); /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -84,8 +57,6 @@ public interface StartTransactionActionOrBuilder */ com.google.spanner.executor.v1.TableMetadata getTable(int index); /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -95,8 +66,6 @@ public interface StartTransactionActionOrBuilder */ int getTableCount(); /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -104,11 +73,9 @@ public interface StartTransactionActionOrBuilder * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder> getTableOrBuilderList(); /** - * - * * <pre> * Metadata about tables and columns that will be involved in this * transaction. It is to convert values of key parts correctly. @@ -116,71 +83,55 @@ public interface StartTransactionActionOrBuilder * * <code>repeated .google.spanner.executor.v1.TableMetadata table = 2;</code> */ - com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder(int index); + com.google.spanner.executor.v1.TableMetadataOrBuilder getTableOrBuilder( + int index); /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @return The transactionSeed. */ java.lang.String getTransactionSeed(); /** - * - * * <pre> * Transaction_seed contains workid and op pair for this transaction, used for * testing. * </pre> * * <code>string transaction_seed = 3;</code> - * * @return The bytes for transactionSeed. */ - com.google.protobuf.ByteString getTransactionSeedBytes(); + com.google.protobuf.ByteString + getTransactionSeedBytes(); /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> - * + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> * @return Whether the executionOptions field is set. */ boolean hasExecutionOptions(); /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> - * + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> * @return The executionOptions. */ com.google.spanner.executor.v1.TransactionExecutionOptions getExecutionOptions(); /** - * - * * <pre> * Execution options (e.g., whether transaction is opaque, optimistic). * </pre> * - * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4; - * </code> + * <code>optional .google.spanner.executor.v1.TransactionExecutionOptions execution_options = 4;</code> */ - com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder - getExecutionOptionsOrBuilder(); + com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder getExecutionOptionsOrBuilder(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java similarity index 74% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java index d7ab699a2ee..4c364f74b34 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadata.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * TableMetadata contains metadata of a single table. * </pre> * * Protobuf type {@code google.spanner.executor.v1.TableMetadata} */ -public final class TableMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TableMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.TableMetadata) TableMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TableMetadata.newBuilder() to construct. private TableMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private TableMetadata() { name_ = ""; column_ = java.util.Collections.emptyList(); @@ -45,38 +27,33 @@ private TableMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TableMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TableMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TableMetadata_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TableMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.TableMetadata.class, - com.google.spanner.executor.v1.TableMetadata.Builder.class); + com.google.spanner.executor.v1.TableMetadata.class, com.google.spanner.executor.v1.TableMetadata.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @return The name. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -116,12 +93,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int COLUMN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.ColumnMetadata> column_; /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -133,8 +107,6 @@ public java.util.List<com.google.spanner.executor.v1.ColumnMetadata> getColumnLi return column_; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -142,13 +114,11 @@ public java.util.List<com.google.spanner.executor.v1.ColumnMetadata> getColumnLi * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> getColumnOrBuilderList() { return column_; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -160,8 +130,6 @@ public int getColumnCount() { return column_.size(); } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -173,8 +141,6 @@ public com.google.spanner.executor.v1.ColumnMetadata getColumn(int index) { return column_.get(index); } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -182,17 +148,15 @@ public com.google.spanner.executor.v1.ColumnMetadata getColumn(int index) { * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getColumnOrBuilder(int index) { + public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getColumnOrBuilder( + int index) { return column_.get(index); } public static final int KEY_COLUMN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List<com.google.spanner.executor.v1.ColumnMetadata> keyColumn_; /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -204,8 +168,6 @@ public java.util.List<com.google.spanner.executor.v1.ColumnMetadata> getKeyColum return keyColumn_; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -213,13 +175,11 @@ public java.util.List<com.google.spanner.executor.v1.ColumnMetadata> getKeyColum * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ @java.lang.Override - public java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> + public java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> getKeyColumnOrBuilderList() { return keyColumn_; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -231,8 +191,6 @@ public int getKeyColumnCount() { return keyColumn_.size(); } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -244,8 +202,6 @@ public com.google.spanner.executor.v1.ColumnMetadata getKeyColumn(int index) { return keyColumn_.get(index); } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -253,12 +209,12 @@ public com.google.spanner.executor.v1.ColumnMetadata getKeyColumn(int index) { * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ @java.lang.Override - public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getKeyColumnOrBuilder(int index) { + public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getKeyColumnOrBuilder( + int index) { return keyColumn_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -293,10 +250,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < column_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, column_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, column_.get(i)); } for (int i = 0; i < keyColumn_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, keyColumn_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, keyColumn_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,17 +265,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.TableMetadata)) { return super.equals(obj); } - com.google.spanner.executor.v1.TableMetadata other = - (com.google.spanner.executor.v1.TableMetadata) obj; + com.google.spanner.executor.v1.TableMetadata other = (com.google.spanner.executor.v1.TableMetadata) obj; - if (!getName().equals(other.getName())) return false; - if (!getColumnList().equals(other.getColumnList())) return false; - if (!getKeyColumnList().equals(other.getKeyColumnList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getColumnList() + .equals(other.getColumnList())) return false; + if (!getKeyColumnList() + .equals(other.getKeyColumnList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -343,136 +304,132 @@ public int hashCode() { return hash; } - public static com.google.spanner.executor.v1.TableMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.spanner.executor.v1.TableMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.TableMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TableMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.TableMetadata 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.TableMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.TableMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.spanner.executor.v1.TableMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.TableMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.TableMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.TableMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.TableMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.TableMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.TableMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.spanner.executor.v1.TableMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * TableMetadata contains metadata of a single table. * </pre> * * Protobuf type {@code google.spanner.executor.v1.TableMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.TableMetadata) com.google.spanner.executor.v1.TableMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TableMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TableMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TableMetadata_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TableMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.TableMetadata.class, - com.google.spanner.executor.v1.TableMetadata.Builder.class); + com.google.spanner.executor.v1.TableMetadata.class, com.google.spanner.executor.v1.TableMetadata.Builder.class); } // Construct using com.google.spanner.executor.v1.TableMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +453,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TableMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TableMetadata_descriptor; } @java.lang.Override @@ -517,12 +474,9 @@ public com.google.spanner.executor.v1.TableMetadata build() { @java.lang.Override public com.google.spanner.executor.v1.TableMetadata buildPartial() { - com.google.spanner.executor.v1.TableMetadata result = - new com.google.spanner.executor.v1.TableMetadata(this); + com.google.spanner.executor.v1.TableMetadata result = new com.google.spanner.executor.v1.TableMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -559,39 +513,38 @@ private void buildPartial0(com.google.spanner.executor.v1.TableMetadata result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.TableMetadata) { - return mergeFrom((com.google.spanner.executor.v1.TableMetadata) other); + return mergeFrom((com.google.spanner.executor.v1.TableMetadata)other); } else { super.mergeFrom(other); return this; @@ -623,10 +576,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.TableMetadata other) { columnBuilder_ = null; column_ = other.column_; bitField0_ = (bitField0_ & ~0x00000002); - columnBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColumnFieldBuilder() - : null; + columnBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnFieldBuilder() : null; } else { columnBuilder_.addAllMessages(other.column_); } @@ -650,10 +602,9 @@ public Builder mergeFrom(com.google.spanner.executor.v1.TableMetadata other) { keyColumnBuilder_ = null; keyColumn_ = other.keyColumn_; bitField0_ = (bitField0_ & ~0x00000004); - keyColumnBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeyColumnFieldBuilder() - : null; + keyColumnBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeyColumnFieldBuilder() : null; } else { keyColumnBuilder_.addAllMessages(other.keyColumn_); } @@ -685,45 +636,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.spanner.executor.v1.ColumnMetadata m = - input.readMessage( - com.google.spanner.executor.v1.ColumnMetadata.parser(), extensionRegistry); - if (columnBuilder_ == null) { - ensureColumnIsMutable(); - column_.add(m); - } else { - columnBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.spanner.executor.v1.ColumnMetadata m = - input.readMessage( - com.google.spanner.executor.v1.ColumnMetadata.parser(), extensionRegistry); - if (keyColumnBuilder_ == null) { - ensureKeyColumnIsMutable(); - keyColumn_.add(m); - } else { - keyColumnBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.spanner.executor.v1.ColumnMetadata m = + input.readMessage( + com.google.spanner.executor.v1.ColumnMetadata.parser(), + extensionRegistry); + if (columnBuilder_ == null) { + ensureColumnIsMutable(); + column_.add(m); + } else { + columnBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + com.google.spanner.executor.v1.ColumnMetadata m = + input.readMessage( + com.google.spanner.executor.v1.ColumnMetadata.parser(), + extensionRegistry); + if (keyColumnBuilder_ == null) { + ensureKeyColumnIsMutable(); + keyColumn_.add(m); + } else { + keyColumnBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,25 +682,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -760,21 +706,20 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -782,35 +727,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -820,21 +758,17 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -843,24 +777,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.util.List<com.google.spanner.executor.v1.ColumnMetadata> column_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureColumnIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { column_ = new java.util.ArrayList<com.google.spanner.executor.v1.ColumnMetadata>(column_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ColumnMetadata, - com.google.spanner.executor.v1.ColumnMetadata.Builder, - com.google.spanner.executor.v1.ColumnMetadataOrBuilder> - columnBuilder_; + com.google.spanner.executor.v1.ColumnMetadata, com.google.spanner.executor.v1.ColumnMetadata.Builder, com.google.spanner.executor.v1.ColumnMetadataOrBuilder> columnBuilder_; /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -875,8 +803,6 @@ public java.util.List<com.google.spanner.executor.v1.ColumnMetadata> getColumnLi } } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -891,8 +817,6 @@ public int getColumnCount() { } } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -907,15 +831,14 @@ public com.google.spanner.executor.v1.ColumnMetadata getColumn(int index) { } } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - public Builder setColumn(int index, com.google.spanner.executor.v1.ColumnMetadata value) { + public Builder setColumn( + int index, com.google.spanner.executor.v1.ColumnMetadata value) { if (columnBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -929,8 +852,6 @@ public Builder setColumn(int index, com.google.spanner.executor.v1.ColumnMetadat return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -949,8 +870,6 @@ public Builder setColumn( return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -971,15 +890,14 @@ public Builder addColumn(com.google.spanner.executor.v1.ColumnMetadata value) { return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - public Builder addColumn(int index, com.google.spanner.executor.v1.ColumnMetadata value) { + public Builder addColumn( + int index, com.google.spanner.executor.v1.ColumnMetadata value) { if (columnBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -993,8 +911,6 @@ public Builder addColumn(int index, com.google.spanner.executor.v1.ColumnMetadat return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -1013,8 +929,6 @@ public Builder addColumn( return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -1033,8 +947,6 @@ public Builder addColumn( return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -1045,7 +957,8 @@ public Builder addAllColumn( java.lang.Iterable<? extends com.google.spanner.executor.v1.ColumnMetadata> values) { if (columnBuilder_ == null) { ensureColumnIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, column_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, column_); onChanged(); } else { columnBuilder_.addAllMessages(values); @@ -1053,8 +966,6 @@ public Builder addAllColumn( return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -1072,8 +983,6 @@ public Builder clearColumn() { return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -1091,44 +1000,39 @@ public Builder removeColumn(int index) { return this; } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - public com.google.spanner.executor.v1.ColumnMetadata.Builder getColumnBuilder(int index) { + public com.google.spanner.executor.v1.ColumnMetadata.Builder getColumnBuilder( + int index) { return getColumnFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getColumnOrBuilder(int index) { + public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getColumnOrBuilder( + int index) { if (columnBuilder_ == null) { - return column_.get(index); - } else { + return column_.get(index); } else { return columnBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> - getColumnOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> + getColumnOrBuilderList() { if (columnBuilder_ != null) { return columnBuilder_.getMessageOrBuilderList(); } else { @@ -1136,8 +1040,6 @@ public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getColumnOrBuilder } } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -1145,73 +1047,60 @@ public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getColumnOrBuilder * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ public com.google.spanner.executor.v1.ColumnMetadata.Builder addColumnBuilder() { - return getColumnFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.ColumnMetadata.getDefaultInstance()); + return getColumnFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ColumnMetadata.getDefaultInstance()); } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - public com.google.spanner.executor.v1.ColumnMetadata.Builder addColumnBuilder(int index) { - return getColumnFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.ColumnMetadata.getDefaultInstance()); + public com.google.spanner.executor.v1.ColumnMetadata.Builder addColumnBuilder( + int index) { + return getColumnFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ColumnMetadata.getDefaultInstance()); } /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - public java.util.List<com.google.spanner.executor.v1.ColumnMetadata.Builder> - getColumnBuilderList() { + public java.util.List<com.google.spanner.executor.v1.ColumnMetadata.Builder> + getColumnBuilderList() { return getColumnFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ColumnMetadata, - com.google.spanner.executor.v1.ColumnMetadata.Builder, - com.google.spanner.executor.v1.ColumnMetadataOrBuilder> + com.google.spanner.executor.v1.ColumnMetadata, com.google.spanner.executor.v1.ColumnMetadata.Builder, com.google.spanner.executor.v1.ColumnMetadataOrBuilder> getColumnFieldBuilder() { if (columnBuilder_ == null) { - columnBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ColumnMetadata, - com.google.spanner.executor.v1.ColumnMetadata.Builder, - com.google.spanner.executor.v1.ColumnMetadataOrBuilder>( - column_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + columnBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.ColumnMetadata, com.google.spanner.executor.v1.ColumnMetadata.Builder, com.google.spanner.executor.v1.ColumnMetadataOrBuilder>( + column_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); column_ = null; } return columnBuilder_; } private java.util.List<com.google.spanner.executor.v1.ColumnMetadata> keyColumn_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureKeyColumnIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - keyColumn_ = - new java.util.ArrayList<com.google.spanner.executor.v1.ColumnMetadata>(keyColumn_); + keyColumn_ = new java.util.ArrayList<com.google.spanner.executor.v1.ColumnMetadata>(keyColumn_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ColumnMetadata, - com.google.spanner.executor.v1.ColumnMetadata.Builder, - com.google.spanner.executor.v1.ColumnMetadataOrBuilder> - keyColumnBuilder_; + com.google.spanner.executor.v1.ColumnMetadata, com.google.spanner.executor.v1.ColumnMetadata.Builder, com.google.spanner.executor.v1.ColumnMetadataOrBuilder> keyColumnBuilder_; /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1226,8 +1115,6 @@ public java.util.List<com.google.spanner.executor.v1.ColumnMetadata> getKeyColum } } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1242,8 +1129,6 @@ public int getKeyColumnCount() { } } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1258,15 +1143,14 @@ public com.google.spanner.executor.v1.ColumnMetadata getKeyColumn(int index) { } } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - public Builder setKeyColumn(int index, com.google.spanner.executor.v1.ColumnMetadata value) { + public Builder setKeyColumn( + int index, com.google.spanner.executor.v1.ColumnMetadata value) { if (keyColumnBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1280,8 +1164,6 @@ public Builder setKeyColumn(int index, com.google.spanner.executor.v1.ColumnMeta return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1300,8 +1182,6 @@ public Builder setKeyColumn( return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1322,15 +1202,14 @@ public Builder addKeyColumn(com.google.spanner.executor.v1.ColumnMetadata value) return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - public Builder addKeyColumn(int index, com.google.spanner.executor.v1.ColumnMetadata value) { + public Builder addKeyColumn( + int index, com.google.spanner.executor.v1.ColumnMetadata value) { if (keyColumnBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1344,8 +1223,6 @@ public Builder addKeyColumn(int index, com.google.spanner.executor.v1.ColumnMeta return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1364,8 +1241,6 @@ public Builder addKeyColumn( return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1384,8 +1259,6 @@ public Builder addKeyColumn( return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1396,7 +1269,8 @@ public Builder addAllKeyColumn( java.lang.Iterable<? extends com.google.spanner.executor.v1.ColumnMetadata> values) { if (keyColumnBuilder_ == null) { ensureKeyColumnIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyColumn_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keyColumn_); onChanged(); } else { keyColumnBuilder_.addAllMessages(values); @@ -1404,8 +1278,6 @@ public Builder addAllKeyColumn( return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1423,8 +1295,6 @@ public Builder clearKeyColumn() { return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1442,44 +1312,39 @@ public Builder removeKeyColumn(int index) { return this; } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - public com.google.spanner.executor.v1.ColumnMetadata.Builder getKeyColumnBuilder(int index) { + public com.google.spanner.executor.v1.ColumnMetadata.Builder getKeyColumnBuilder( + int index) { return getKeyColumnFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getKeyColumnOrBuilder(int index) { + public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getKeyColumnOrBuilder( + int index) { if (keyColumnBuilder_ == null) { - return keyColumn_.get(index); - } else { + return keyColumn_.get(index); } else { return keyColumnBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - public java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> - getKeyColumnOrBuilderList() { + public java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> + getKeyColumnOrBuilderList() { if (keyColumnBuilder_ != null) { return keyColumnBuilder_.getMessageOrBuilderList(); } else { @@ -1487,8 +1352,6 @@ public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getKeyColumnOrBuil } } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -1496,55 +1359,49 @@ public com.google.spanner.executor.v1.ColumnMetadataOrBuilder getKeyColumnOrBuil * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ public com.google.spanner.executor.v1.ColumnMetadata.Builder addKeyColumnBuilder() { - return getKeyColumnFieldBuilder() - .addBuilder(com.google.spanner.executor.v1.ColumnMetadata.getDefaultInstance()); + return getKeyColumnFieldBuilder().addBuilder( + com.google.spanner.executor.v1.ColumnMetadata.getDefaultInstance()); } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - public com.google.spanner.executor.v1.ColumnMetadata.Builder addKeyColumnBuilder(int index) { - return getKeyColumnFieldBuilder() - .addBuilder(index, com.google.spanner.executor.v1.ColumnMetadata.getDefaultInstance()); + public com.google.spanner.executor.v1.ColumnMetadata.Builder addKeyColumnBuilder( + int index) { + return getKeyColumnFieldBuilder().addBuilder( + index, com.google.spanner.executor.v1.ColumnMetadata.getDefaultInstance()); } /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - public java.util.List<com.google.spanner.executor.v1.ColumnMetadata.Builder> - getKeyColumnBuilderList() { + public java.util.List<com.google.spanner.executor.v1.ColumnMetadata.Builder> + getKeyColumnBuilderList() { return getKeyColumnFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ColumnMetadata, - com.google.spanner.executor.v1.ColumnMetadata.Builder, - com.google.spanner.executor.v1.ColumnMetadataOrBuilder> + com.google.spanner.executor.v1.ColumnMetadata, com.google.spanner.executor.v1.ColumnMetadata.Builder, com.google.spanner.executor.v1.ColumnMetadataOrBuilder> getKeyColumnFieldBuilder() { if (keyColumnBuilder_ == null) { - keyColumnBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.spanner.executor.v1.ColumnMetadata, - com.google.spanner.executor.v1.ColumnMetadata.Builder, - com.google.spanner.executor.v1.ColumnMetadataOrBuilder>( - keyColumn_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + keyColumnBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.executor.v1.ColumnMetadata, com.google.spanner.executor.v1.ColumnMetadata.Builder, com.google.spanner.executor.v1.ColumnMetadataOrBuilder>( + keyColumn_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); keyColumn_ = null; } return keyColumnBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1554,12 +1411,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.TableMetadata) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.TableMetadata) private static final com.google.spanner.executor.v1.TableMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.TableMetadata(); } @@ -1568,27 +1425,27 @@ public static com.google.spanner.executor.v1.TableMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<TableMetadata> PARSER = - new com.google.protobuf.AbstractParser<TableMetadata>() { - @java.lang.Override - public TableMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<TableMetadata> + PARSER = new com.google.protobuf.AbstractParser<TableMetadata>() { + @java.lang.Override + public TableMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<TableMetadata> parser() { return PARSER; @@ -1603,4 +1460,6 @@ public com.google.protobuf.Parser<TableMetadata> getParserForType() { public com.google.spanner.executor.v1.TableMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java index 31b3ffb83ba..a1f0a0ee7f6 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TableMetadataOrBuilder.java @@ -1,66 +1,42 @@ -/* - * 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 interface TableMetadataOrBuilder - extends +public interface TableMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.TableMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * Table name. * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - java.util.List<com.google.spanner.executor.v1.ColumnMetadata> getColumnList(); + java.util.List<com.google.spanner.executor.v1.ColumnMetadata> + getColumnList(); /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -69,8 +45,6 @@ public interface TableMetadataOrBuilder */ com.google.spanner.executor.v1.ColumnMetadata getColumn(int index); /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> @@ -79,40 +53,34 @@ public interface TableMetadataOrBuilder */ int getColumnCount(); /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> getColumnOrBuilderList(); /** - * - * * <pre> * Columns, in the same order as in the schema. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata column = 2;</code> */ - com.google.spanner.executor.v1.ColumnMetadataOrBuilder getColumnOrBuilder(int index); + com.google.spanner.executor.v1.ColumnMetadataOrBuilder getColumnOrBuilder( + int index); /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - java.util.List<com.google.spanner.executor.v1.ColumnMetadata> getKeyColumnList(); + java.util.List<com.google.spanner.executor.v1.ColumnMetadata> + getKeyColumnList(); /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -121,8 +89,6 @@ public interface TableMetadataOrBuilder */ com.google.spanner.executor.v1.ColumnMetadata getKeyColumn(int index); /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> @@ -131,24 +97,21 @@ public interface TableMetadataOrBuilder */ int getKeyColumnCount(); /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> + java.util.List<? extends com.google.spanner.executor.v1.ColumnMetadataOrBuilder> getKeyColumnOrBuilderList(); /** - * - * * <pre> * Keys, in order. Column name is currently not populated. * </pre> * * <code>repeated .google.spanner.executor.v1.ColumnMetadata key_column = 3;</code> */ - com.google.spanner.executor.v1.ColumnMetadataOrBuilder getKeyColumnOrBuilder(int index); + com.google.spanner.executor.v1.ColumnMetadataOrBuilder getKeyColumnOrBuilder( + int index); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java similarity index 64% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java index 4770c3dfd4d..91d432e7ba1 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptions.java @@ -1,76 +1,55 @@ -/* - * 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; /** - * - * * <pre> * Options for executing the transaction. * </pre> * * Protobuf type {@code google.spanner.executor.v1.TransactionExecutionOptions} */ -public final class TransactionExecutionOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransactionExecutionOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.TransactionExecutionOptions) TransactionExecutionOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransactionExecutionOptions.newBuilder() to construct. private TransactionExecutionOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - - private TransactionExecutionOptions() {} + private TransactionExecutionOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransactionExecutionOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TransactionExecutionOptions_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TransactionExecutionOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.TransactionExecutionOptions.class, - com.google.spanner.executor.v1.TransactionExecutionOptions.Builder.class); + com.google.spanner.executor.v1.TransactionExecutionOptions.class, com.google.spanner.executor.v1.TransactionExecutionOptions.Builder.class); } public static final int OPTIMISTIC_FIELD_NUMBER = 1; private boolean optimistic_ = false; /** - * - * * <pre> * Whether optimistic concurrency should be used to execute this transaction. * </pre> * * <code>bool optimistic = 1;</code> - * * @return The optimistic. */ @java.lang.Override @@ -79,7 +58,6 @@ public boolean getOptimistic() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -91,7 +69,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (optimistic_ != false) { output.writeBool(1, optimistic_); } @@ -105,7 +84,8 @@ public int getSerializedSize() { size = 0; if (optimistic_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, optimistic_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, optimistic_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -115,15 +95,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.TransactionExecutionOptions)) { return super.equals(obj); } - com.google.spanner.executor.v1.TransactionExecutionOptions other = - (com.google.spanner.executor.v1.TransactionExecutionOptions) obj; + com.google.spanner.executor.v1.TransactionExecutionOptions other = (com.google.spanner.executor.v1.TransactionExecutionOptions) obj; - if (getOptimistic() != other.getOptimistic()) return false; + if (getOptimistic() + != other.getOptimistic()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -136,143 +116,139 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OPTIMISTIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptimistic()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOptimistic()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.spanner.executor.v1.TransactionExecutionOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.TransactionExecutionOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TransactionExecutionOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.TransactionExecutionOptions 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.TransactionExecutionOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.TransactionExecutionOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.TransactionExecutionOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.TransactionExecutionOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.TransactionExecutionOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.TransactionExecutionOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.TransactionExecutionOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.TransactionExecutionOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.TransactionExecutionOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.TransactionExecutionOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.TransactionExecutionOptions prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.TransactionExecutionOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Options for executing the transaction. * </pre> * * Protobuf type {@code google.spanner.executor.v1.TransactionExecutionOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.TransactionExecutionOptions) com.google.spanner.executor.v1.TransactionExecutionOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TransactionExecutionOptions_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TransactionExecutionOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.TransactionExecutionOptions.class, - com.google.spanner.executor.v1.TransactionExecutionOptions.Builder.class); + com.google.spanner.executor.v1.TransactionExecutionOptions.class, com.google.spanner.executor.v1.TransactionExecutionOptions.Builder.class); } // Construct using com.google.spanner.executor.v1.TransactionExecutionOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -282,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor; } @java.lang.Override @@ -303,11 +279,8 @@ public com.google.spanner.executor.v1.TransactionExecutionOptions build() { @java.lang.Override public com.google.spanner.executor.v1.TransactionExecutionOptions buildPartial() { - com.google.spanner.executor.v1.TransactionExecutionOptions result = - new com.google.spanner.executor.v1.TransactionExecutionOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.TransactionExecutionOptions result = new com.google.spanner.executor.v1.TransactionExecutionOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -323,39 +296,38 @@ private void buildPartial0(com.google.spanner.executor.v1.TransactionExecutionOp public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.TransactionExecutionOptions) { - return mergeFrom((com.google.spanner.executor.v1.TransactionExecutionOptions) other); + return mergeFrom((com.google.spanner.executor.v1.TransactionExecutionOptions)other); } else { super.mergeFrom(other); return this; @@ -363,8 +335,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.TransactionExecutionOptions other) { - if (other == com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.TransactionExecutionOptions.getDefaultInstance()) return this; if (other.getOptimistic() != false) { setOptimistic(other.getOptimistic()); } @@ -394,19 +365,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - optimistic_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + optimistic_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -416,19 +385,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean optimistic_; + private boolean optimistic_ ; /** - * - * * <pre> * Whether optimistic concurrency should be used to execute this transaction. * </pre> * * <code>bool optimistic = 1;</code> - * * @return The optimistic. */ @java.lang.Override @@ -436,14 +401,11 @@ public boolean getOptimistic() { return optimistic_; } /** - * - * * <pre> * Whether optimistic concurrency should be used to execute this transaction. * </pre> * * <code>bool optimistic = 1;</code> - * * @param value The optimistic to set. * @return This builder for chaining. */ @@ -455,14 +417,11 @@ public Builder setOptimistic(boolean value) { return this; } /** - * - * * <pre> * Whether optimistic concurrency should be used to execute this transaction. * </pre> * * <code>bool optimistic = 1;</code> - * * @return This builder for chaining. */ public Builder clearOptimistic() { @@ -471,9 +430,9 @@ public Builder clearOptimistic() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -483,12 +442,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.TransactionExecutionOptions) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.TransactionExecutionOptions) private static final com.google.spanner.executor.v1.TransactionExecutionOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.TransactionExecutionOptions(); } @@ -497,27 +456,27 @@ public static com.google.spanner.executor.v1.TransactionExecutionOptions getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<TransactionExecutionOptions> PARSER = - new com.google.protobuf.AbstractParser<TransactionExecutionOptions>() { - @java.lang.Override - public TransactionExecutionOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<TransactionExecutionOptions> + PARSER = new com.google.protobuf.AbstractParser<TransactionExecutionOptions>() { + @java.lang.Override + public TransactionExecutionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<TransactionExecutionOptions> parser() { return PARSER; @@ -532,4 +491,6 @@ public com.google.protobuf.Parser<TransactionExecutionOptions> getParserForType( public com.google.spanner.executor.v1.TransactionExecutionOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptionsOrBuilder.java new file mode 100644 index 00000000000..deb9e44bd63 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/TransactionExecutionOptionsOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/executor/v1/cloud_executor.proto + +package com.google.spanner.executor.v1; + +public interface TransactionExecutionOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.TransactionExecutionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Whether optimistic concurrency should be used to execute this transaction. + * </pre> + * + * <code>bool optimistic = 1;</code> + * @return The optimistic. + */ + boolean getOptimistic(); +} diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java index d03b821373f..8abc305af1a 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.UpdateCloudBackupAction} */ -public final class UpdateCloudBackupAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCloudBackupAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.UpdateCloudBackupAction) UpdateCloudBackupActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCloudBackupAction.newBuilder() to construct. private UpdateCloudBackupAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private UpdateCloudBackupAction() { projectId_ = ""; instanceId_ = ""; @@ -45,38 +27,33 @@ private UpdateCloudBackupAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCloudBackupAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.UpdateCloudBackupAction.class, - com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder.class); + com.google.spanner.executor.v1.UpdateCloudBackupAction.class, com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int INSTANCE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -167,18 +140,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int BACKUP_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ @java.lang.Override @@ -187,29 +156,29 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -220,16 +189,12 @@ public com.google.protobuf.ByteString getBackupIdBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expireTime_; /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ @java.lang.Override @@ -237,16 +202,12 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ @java.lang.Override @@ -254,15 +215,12 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -270,7 +228,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +239,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -314,7 +272,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -324,20 +283,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.UpdateCloudBackupAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.UpdateCloudBackupAction other = - (com.google.spanner.executor.v1.UpdateCloudBackupAction) obj; + com.google.spanner.executor.v1.UpdateCloudBackupAction other = (com.google.spanner.executor.v1.UpdateCloudBackupAction) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getBackupId().equals(other.getBackupId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getBackupId() + .equals(other.getBackupId())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -366,136 +328,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateCloudBackupAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudBackupAction 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.UpdateCloudBackupAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.UpdateCloudBackupAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.UpdateCloudBackupAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.UpdateCloudBackupAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that updates a Cloud Spanner database backup. * </pre> * * Protobuf type {@code google.spanner.executor.v1.UpdateCloudBackupAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.UpdateCloudBackupAction) com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.UpdateCloudBackupAction.class, - com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder.class); + com.google.spanner.executor.v1.UpdateCloudBackupAction.class, com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder.class); } // Construct using com.google.spanner.executor.v1.UpdateCloudBackupAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor; } @java.lang.Override @@ -533,11 +490,8 @@ public com.google.spanner.executor.v1.UpdateCloudBackupAction build() { @java.lang.Override public com.google.spanner.executor.v1.UpdateCloudBackupAction buildPartial() { - com.google.spanner.executor.v1.UpdateCloudBackupAction result = - new com.google.spanner.executor.v1.UpdateCloudBackupAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.UpdateCloudBackupAction result = new com.google.spanner.executor.v1.UpdateCloudBackupAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -554,7 +508,9 @@ private void buildPartial0(com.google.spanner.executor.v1.UpdateCloudBackupActio result.backupId_ = backupId_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } } @@ -562,39 +518,38 @@ private void buildPartial0(com.google.spanner.executor.v1.UpdateCloudBackupActio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.UpdateCloudBackupAction) { - return mergeFrom((com.google.spanner.executor.v1.UpdateCloudBackupAction) other); + return mergeFrom((com.google.spanner.executor.v1.UpdateCloudBackupAction)other); } else { super.mergeFrom(other); return this; @@ -602,8 +557,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.UpdateCloudBackupAction other) { - if (other == com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -648,37 +602,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -688,25 +639,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -715,21 +663,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -737,35 +684,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -775,21 +715,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -799,20 +735,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -821,21 +755,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -843,35 +776,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -881,21 +807,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000002; @@ -905,20 +827,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object backupId_ = ""; /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -927,21 +847,20 @@ public java.lang.String getBackupId() { } } /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -949,35 +868,28 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBackupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } backupId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearBackupId() { @@ -987,21 +899,17 @@ public Builder clearBackupId() { return this; } /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @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(); - } + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backupId_ = value; bitField0_ |= 0x00000004; @@ -1011,61 +919,42 @@ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1081,18 +970,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -1103,22 +989,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1131,16 +1013,12 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1153,16 +1031,12 @@ public Builder clearExpireTime() { return this; } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000008; @@ -1170,57 +1044,45 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code> - * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1230,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.UpdateCloudBackupAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.UpdateCloudBackupAction) private static final com.google.spanner.executor.v1.UpdateCloudBackupAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.UpdateCloudBackupAction(); } @@ -1244,27 +1106,27 @@ public static com.google.spanner.executor.v1.UpdateCloudBackupAction getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateCloudBackupAction> PARSER = - new com.google.protobuf.AbstractParser<UpdateCloudBackupAction>() { - @java.lang.Override - public UpdateCloudBackupAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateCloudBackupAction> + PARSER = new com.google.protobuf.AbstractParser<UpdateCloudBackupAction>() { + @java.lang.Override + public UpdateCloudBackupAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateCloudBackupAction> parser() { return PARSER; @@ -1279,4 +1141,6 @@ public com.google.protobuf.Parser<UpdateCloudBackupAction> getParserForType() { public com.google.spanner.executor.v1.UpdateCloudBackupAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java similarity index 67% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java index 5df3e1907b1..28f8160d04b 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudBackupActionOrBuilder.java @@ -1,141 +1,99 @@ -/* - * 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 interface UpdateCloudBackupActionOrBuilder - extends +public interface UpdateCloudBackupActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.UpdateCloudBackupAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 1;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 2;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * * <pre> * The id of the backup to update, e.g. "test-backup". * </pre> * * <code>string backup_id = 3;</code> - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * * <pre> * Output only. Updated value of expire_time, this is the only field * that supported to be updated. * </pre> * - * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); } diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java similarity index 69% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java index a0deaeaacab..ece05e217b9 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that updates a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.UpdateCloudDatabaseAction} */ -public final class UpdateCloudDatabaseAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCloudDatabaseAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.UpdateCloudDatabaseAction) UpdateCloudDatabaseActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCloudDatabaseAction.newBuilder() to construct. private UpdateCloudDatabaseAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private UpdateCloudDatabaseAction() { instanceId_ = ""; projectId_ = ""; @@ -45,38 +27,33 @@ private UpdateCloudDatabaseAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCloudDatabaseAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.UpdateCloudDatabaseAction.class, - com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder.class); + com.google.spanner.executor.v1.UpdateCloudDatabaseAction.class, com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -167,18 +140,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int DATABASE_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object databaseName_ = ""; /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @return The databaseName. */ @java.lang.Override @@ -187,29 +156,29 @@ public java.lang.String getDatabaseName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseName_ = s; return s; } } /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @return The bytes for databaseName. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseNameBytes() { + public com.google.protobuf.ByteString + getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseName_ = b; return b; } else { @@ -220,15 +189,12 @@ public com.google.protobuf.ByteString getDatabaseNameBytes() { public static final int ENABLE_DROP_PROTECTION_FIELD_NUMBER = 4; private boolean enableDropProtection_ = false; /** - * - * * <pre> * Updated value of enable_drop_protection, this is the only field that has * supported to be updated. * </pre> * * <code>bool enable_drop_protection = 4;</code> - * * @return The enableDropProtection. */ @java.lang.Override @@ -237,7 +203,6 @@ public boolean getEnableDropProtection() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +214,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -281,7 +247,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, databaseName_); } if (enableDropProtection_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableDropProtection_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enableDropProtection_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -291,18 +258,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.UpdateCloudDatabaseAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.UpdateCloudDatabaseAction other = - (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) obj; + com.google.spanner.executor.v1.UpdateCloudDatabaseAction other = (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) obj; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getDatabaseName().equals(other.getDatabaseName())) return false; - if (getEnableDropProtection() != other.getEnableDropProtection()) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getDatabaseName() + .equals(other.getDatabaseName())) return false; + if (getEnableDropProtection() + != other.getEnableDropProtection()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,143 +291,139 @@ public int hashCode() { hash = (37 * hash) + DATABASE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDatabaseName().hashCode(); hash = (37 * hash) + ENABLE_DROP_PROTECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDropProtection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableDropProtection()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateCloudDatabaseAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction 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.UpdateCloudDatabaseAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.UpdateCloudDatabaseAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.UpdateCloudDatabaseAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that updates a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.UpdateCloudDatabaseAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.UpdateCloudDatabaseAction) com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.UpdateCloudDatabaseAction.class, - com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder.class); + com.google.spanner.executor.v1.UpdateCloudDatabaseAction.class, com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder.class); } // Construct using com.google.spanner.executor.v1.UpdateCloudDatabaseAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +436,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor; } @java.lang.Override @@ -491,11 +457,8 @@ public com.google.spanner.executor.v1.UpdateCloudDatabaseAction build() { @java.lang.Override public com.google.spanner.executor.v1.UpdateCloudDatabaseAction buildPartial() { - com.google.spanner.executor.v1.UpdateCloudDatabaseAction result = - new com.google.spanner.executor.v1.UpdateCloudDatabaseAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.UpdateCloudDatabaseAction result = new com.google.spanner.executor.v1.UpdateCloudDatabaseAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -520,39 +483,38 @@ private void buildPartial0(com.google.spanner.executor.v1.UpdateCloudDatabaseAct public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.UpdateCloudDatabaseAction) { - return mergeFrom((com.google.spanner.executor.v1.UpdateCloudDatabaseAction) other); + return mergeFrom((com.google.spanner.executor.v1.UpdateCloudDatabaseAction)other); } else { super.mergeFrom(other); return this; @@ -560,8 +522,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.UpdateCloudDatabaseAction other) { - if (other == com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; bitField0_ |= 0x00000001; @@ -606,37 +567,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - databaseName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - enableDropProtection_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + databaseName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + enableDropProtection_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -646,25 +602,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -673,21 +626,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -695,35 +647,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -733,21 +678,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -757,20 +698,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -779,21 +718,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -801,35 +739,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -839,21 +770,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -863,20 +790,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseName_ = ""; /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @return The databaseName. */ public java.lang.String getDatabaseName() { java.lang.Object ref = databaseName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseName_ = s; return s; @@ -885,21 +810,20 @@ public java.lang.String getDatabaseName() { } } /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @return The bytes for databaseName. */ - public com.google.protobuf.ByteString getDatabaseNameBytes() { + public com.google.protobuf.ByteString + getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseName_ = b; return b; } else { @@ -907,35 +831,28 @@ public com.google.protobuf.ByteString getDatabaseNameBytes() { } } /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @param value The databaseName to set. * @return This builder for chaining. */ - public Builder setDatabaseName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseName() { @@ -945,21 +862,17 @@ public Builder clearDatabaseName() { return this; } /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @param value The bytes for databaseName to set. * @return This builder for chaining. */ - public Builder setDatabaseNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseName_ = value; bitField0_ |= 0x00000004; @@ -967,17 +880,14 @@ public Builder setDatabaseNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean enableDropProtection_; + private boolean enableDropProtection_ ; /** - * - * * <pre> * Updated value of enable_drop_protection, this is the only field that has * supported to be updated. * </pre> * * <code>bool enable_drop_protection = 4;</code> - * * @return The enableDropProtection. */ @java.lang.Override @@ -985,15 +895,12 @@ public boolean getEnableDropProtection() { return enableDropProtection_; } /** - * - * * <pre> * Updated value of enable_drop_protection, this is the only field that has * supported to be updated. * </pre> * * <code>bool enable_drop_protection = 4;</code> - * * @param value The enableDropProtection to set. * @return This builder for chaining. */ @@ -1005,15 +912,12 @@ public Builder setEnableDropProtection(boolean value) { return this; } /** - * - * * <pre> * Updated value of enable_drop_protection, this is the only field that has * supported to be updated. * </pre> * * <code>bool enable_drop_protection = 4;</code> - * * @return This builder for chaining. */ public Builder clearEnableDropProtection() { @@ -1022,9 +926,9 @@ public Builder clearEnableDropProtection() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1034,12 +938,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.UpdateCloudDatabaseAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.UpdateCloudDatabaseAction) private static final com.google.spanner.executor.v1.UpdateCloudDatabaseAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.UpdateCloudDatabaseAction(); } @@ -1048,27 +952,27 @@ public static com.google.spanner.executor.v1.UpdateCloudDatabaseAction getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateCloudDatabaseAction> PARSER = - new com.google.protobuf.AbstractParser<UpdateCloudDatabaseAction>() { - @java.lang.Override - public UpdateCloudDatabaseAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateCloudDatabaseAction> + PARSER = new com.google.protobuf.AbstractParser<UpdateCloudDatabaseAction>() { + @java.lang.Override + public UpdateCloudDatabaseAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateCloudDatabaseAction> parser() { return PARSER; @@ -1083,4 +987,6 @@ public com.google.protobuf.Parser<UpdateCloudDatabaseAction> getParserForType() public com.google.spanner.executor.v1.UpdateCloudDatabaseAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java similarity index 64% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java index c2e887b6e7d..a7b2f63b09f 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseActionOrBuilder.java @@ -1,113 +1,79 @@ -/* - * 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 interface UpdateCloudDatabaseActionOrBuilder - extends +public interface UpdateCloudDatabaseActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.UpdateCloudDatabaseAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @return The databaseName. */ java.lang.String getDatabaseName(); /** - * - * * <pre> * Cloud database name (not full path), e.g. "db0". * </pre> * * <code>string database_name = 3;</code> - * * @return The bytes for databaseName. */ - com.google.protobuf.ByteString getDatabaseNameBytes(); + com.google.protobuf.ByteString + getDatabaseNameBytes(); /** - * - * * <pre> * Updated value of enable_drop_protection, this is the only field that has * supported to be updated. * </pre> * * <code>bool enable_drop_protection = 4;</code> - * * @return The enableDropProtection. */ boolean getEnableDropProtection(); diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java similarity index 72% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java index 86e645c2dba..2a18bba18c4 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlAction.java @@ -1,86 +1,64 @@ -/* - * 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; /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.UpdateCloudDatabaseDdlAction} */ -public final class UpdateCloudDatabaseDdlAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCloudDatabaseDdlAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) UpdateCloudDatabaseDdlActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCloudDatabaseDdlAction.newBuilder() to construct. private UpdateCloudDatabaseDdlAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private UpdateCloudDatabaseDdlAction() { instanceId_ = ""; projectId_ = ""; databaseId_ = ""; - sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sdlStatement_ = + com.google.protobuf.LazyStringArrayList.emptyList(); operationId_ = ""; protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCloudDatabaseDdlAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.class, - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder.class); + com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.class, com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder.class); } private int bitField0_; public static final int INSTANCE_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ @java.lang.Override @@ -89,29 +67,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -120,18 +98,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -140,29 +114,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -171,18 +145,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int DATABASE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The databaseId. */ @java.lang.Override @@ -191,29 +161,29 @@ public java.lang.String getDatabaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -222,47 +192,38 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } public static final int SDL_STATEMENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return A list containing the sdlStatement. */ - public com.google.protobuf.ProtocolStringList getSdlStatementList() { + public com.google.protobuf.ProtocolStringList + getSdlStatementList() { return sdlStatement_; } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return The count of sdlStatement. */ public int getSdlStatementCount() { return sdlStatement_.size(); } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param index The index of the element to return. * @return The sdlStatement at the given index. */ @@ -270,28 +231,23 @@ public java.lang.String getSdlStatement(int index) { return sdlStatement_.get(index); } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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) { + public com.google.protobuf.ByteString + getSdlStatementBytes(int index) { return sdlStatement_.getByteString(index); } public static final int OPERATION_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object operationId_ = ""; /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -299,7 +255,6 @@ public com.google.protobuf.ByteString getSdlStatementBytes(int index) { * </pre> * * <code>string operation_id = 5;</code> - * * @return The operationId. */ @java.lang.Override @@ -308,15 +263,14 @@ public java.lang.String getOperationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } } /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -324,15 +278,16 @@ public java.lang.String getOperationId() { * </pre> * * <code>string operation_id = 5;</code> - * * @return The bytes for operationId. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationIdBytes() { + public com.google.protobuf.ByteString + getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationId_ = b; return b; } else { @@ -344,7 +299,6 @@ public com.google.protobuf.ByteString getOperationIdBytes() { private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes proto_descriptors = 6;</code> - * * @return Whether the protoDescriptors field is set. */ @java.lang.Override @@ -353,7 +307,6 @@ public boolean hasProtoDescriptors() { } /** * <code>optional bytes proto_descriptors = 6;</code> - * * @return The protoDescriptors. */ @java.lang.Override @@ -362,7 +315,6 @@ public com.google.protobuf.ByteString getProtoDescriptors() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,7 +326,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -423,7 +376,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, operationId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, protoDescriptors_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, protoDescriptors_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -433,22 +387,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction other = - (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) 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 (!getOperationId().equals(other.getOperationId())) return false; + com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction other = (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) 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 (!getOperationId() + .equals(other.getOperationId())) return false; if (hasProtoDescriptors() != other.hasProtoDescriptors()) return false; if (hasProtoDescriptors()) { - if (!getProtoDescriptors().equals(other.getProtoDescriptors())) return false; + if (!getProtoDescriptors() + .equals(other.getProtoDescriptors())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -483,136 +442,131 @@ public int hashCode() { } public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateCloudDatabaseDdlAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction 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.UpdateCloudDatabaseDdlAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that updates the schema of a Cloud Spanner database. * </pre> * * Protobuf type {@code google.spanner.executor.v1.UpdateCloudDatabaseDdlAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.class, - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder.class); + com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.class, com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder.class); } // Construct using com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -620,16 +574,17 @@ public Builder clear() { instanceId_ = ""; projectId_ = ""; databaseId_ = ""; - sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sdlStatement_ = + com.google.protobuf.LazyStringArrayList.emptyList(); operationId_ = ""; protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor; } @java.lang.Override @@ -648,11 +603,8 @@ public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction build() { @java.lang.Override public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction buildPartial() { - com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction result = - new com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction result = new com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -687,39 +639,38 @@ private void buildPartial0(com.google.spanner.executor.v1.UpdateCloudDatabaseDdl public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) { - return mergeFrom((com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) other); + return mergeFrom((com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction)other); } else { super.mergeFrom(other); return this; @@ -727,8 +678,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction other) { - if (other == com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance()) - return this; + if (other == com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; bitField0_ |= 0x00000001; @@ -788,50 +738,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - databaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSdlStatementIsMutable(); - sdlStatement_.add(s); - break; - } // case 34 - case 42: - { - operationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - protoDescriptors_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSdlStatementIsMutable(); + sdlStatement_.add(s); + break; + } // case 34 + case 42: { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + protoDescriptors_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -841,25 +784,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -868,21 +808,20 @@ public java.lang.String getInstanceId() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -890,35 +829,28 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return This builder for chaining. */ public Builder clearInstanceId() { @@ -928,21 +860,17 @@ public Builder clearInstanceId() { return this; } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @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(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -952,20 +880,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -974,21 +900,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -996,35 +921,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -1034,21 +952,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @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(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -1058,20 +972,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseId_ = ""; /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; @@ -1080,21 +992,20 @@ public java.lang.String getDatabaseId() { } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ - public com.google.protobuf.ByteString getDatabaseIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseId_ = b; return b; } else { @@ -1102,35 +1013,28 @@ public com.google.protobuf.ByteString getDatabaseIdBytes() { } } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @param value The databaseId to set. * @return This builder for chaining. */ - public Builder setDatabaseId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return This builder for chaining. */ public Builder clearDatabaseId() { @@ -1140,21 +1044,17 @@ public Builder clearDatabaseId() { return this; } /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @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(); - } + public Builder setDatabaseIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseId_ = value; bitField0_ |= 0x00000004; @@ -1164,7 +1064,6 @@ public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSdlStatementIsMutable() { if (!sdlStatement_.isModifiable()) { sdlStatement_ = new com.google.protobuf.LazyStringArrayList(sdlStatement_); @@ -1172,43 +1071,35 @@ private void ensureSdlStatementIsMutable() { bitField0_ |= 0x00000008; } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return A list containing the sdlStatement. */ - public com.google.protobuf.ProtocolStringList getSdlStatementList() { + public com.google.protobuf.ProtocolStringList + getSdlStatementList() { sdlStatement_.makeImmutable(); return sdlStatement_; } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return The count of sdlStatement. */ public int getSdlStatementCount() { return sdlStatement_.size(); } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param index The index of the element to return. * @return The sdlStatement at the given index. */ @@ -1216,37 +1107,31 @@ public java.lang.String getSdlStatement(int index) { return sdlStatement_.get(index); } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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) { + public com.google.protobuf.ByteString + getSdlStatementBytes(int index) { return sdlStatement_.getByteString(index); } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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(); - } + public Builder setSdlStatement( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSdlStatementIsMutable(); sdlStatement_.set(index, value); bitField0_ |= 0x00000008; @@ -1254,21 +1139,17 @@ public Builder setSdlStatement(int index, java.lang.String value) { return this; } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param value The sdlStatement to add. * @return This builder for chaining. */ - public Builder addSdlStatement(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSdlStatement( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSdlStatementIsMutable(); sdlStatement_.add(value); bitField0_ |= 0x00000008; @@ -1276,58 +1157,50 @@ public Builder addSdlStatement(java.lang.String value) { return this; } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param values The sdlStatement to add. * @return This builder for chaining. */ - public Builder addAllSdlStatement(java.lang.Iterable<java.lang.String> values) { + public Builder addAllSdlStatement( + java.lang.Iterable<java.lang.String> values) { ensureSdlStatementIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sdlStatement_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sdlStatement_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return This builder for chaining. */ public Builder clearSdlStatement() { - sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + sdlStatement_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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(); - } + public Builder addSdlStatementBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSdlStatementIsMutable(); sdlStatement_.add(value); @@ -1338,8 +1211,6 @@ public Builder addSdlStatementBytes(com.google.protobuf.ByteString value) { private java.lang.Object operationId_ = ""; /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -1347,13 +1218,13 @@ public Builder addSdlStatementBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>string operation_id = 5;</code> - * * @return The operationId. */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; @@ -1362,8 +1233,6 @@ public java.lang.String getOperationId() { } } /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -1371,14 +1240,15 @@ public java.lang.String getOperationId() { * </pre> * * <code>string operation_id = 5;</code> - * * @return The bytes for operationId. */ - public com.google.protobuf.ByteString getOperationIdBytes() { + public com.google.protobuf.ByteString + getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationId_ = b; return b; } else { @@ -1386,8 +1256,6 @@ public com.google.protobuf.ByteString getOperationIdBytes() { } } /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -1395,22 +1263,18 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * </pre> * * <code>string operation_id = 5;</code> - * * @param value The operationId to set. * @return This builder for chaining. */ - public Builder setOperationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } operationId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -1418,7 +1282,6 @@ public Builder setOperationId(java.lang.String value) { * </pre> * * <code>string operation_id = 5;</code> - * * @return This builder for chaining. */ public Builder clearOperationId() { @@ -1428,8 +1291,6 @@ public Builder clearOperationId() { return this; } /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -1437,14 +1298,12 @@ public Builder clearOperationId() { * </pre> * * <code>string operation_id = 5;</code> - * * @param value The bytes for operationId to set. * @return This builder for chaining. */ - public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationId_ = value; bitField0_ |= 0x00000010; @@ -1455,7 +1314,6 @@ public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes proto_descriptors = 6;</code> - * * @return Whether the protoDescriptors field is set. */ @java.lang.Override @@ -1464,7 +1322,6 @@ public boolean hasProtoDescriptors() { } /** * <code>optional bytes proto_descriptors = 6;</code> - * * @return The protoDescriptors. */ @java.lang.Override @@ -1473,14 +1330,11 @@ public com.google.protobuf.ByteString getProtoDescriptors() { } /** * <code>optional bytes proto_descriptors = 6;</code> - * * @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(); - } + if (value == null) { throw new NullPointerException(); } protoDescriptors_ = value; bitField0_ |= 0x00000020; onChanged(); @@ -1488,7 +1342,6 @@ public Builder setProtoDescriptors(com.google.protobuf.ByteString value) { } /** * <code>optional bytes proto_descriptors = 6;</code> - * * @return This builder for chaining. */ public Builder clearProtoDescriptors() { @@ -1497,9 +1350,9 @@ public Builder clearProtoDescriptors() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1509,12 +1362,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) } // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) private static final com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction(); } @@ -1523,27 +1376,27 @@ public static com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<UpdateCloudDatabaseDdlAction> PARSER = - new com.google.protobuf.AbstractParser<UpdateCloudDatabaseDdlAction>() { - @java.lang.Override - public UpdateCloudDatabaseDdlAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<UpdateCloudDatabaseDdlAction> + PARSER = new com.google.protobuf.AbstractParser<UpdateCloudDatabaseDdlAction>() { + @java.lang.Override + public UpdateCloudDatabaseDdlAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<UpdateCloudDatabaseDdlAction> parser() { return PARSER; @@ -1558,4 +1411,6 @@ public com.google.protobuf.Parser<UpdateCloudDatabaseDdlAction> getParserForType public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java similarity index 73% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java index 9a0b79ff9cd..8270fa50aa9 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudDatabaseDdlActionOrBuilder.java @@ -1,157 +1,114 @@ -/* - * 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 interface UpdateCloudDatabaseDdlActionOrBuilder - extends +public interface UpdateCloudDatabaseDdlActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The databaseId. */ java.lang.String getDatabaseId(); /** - * - * * <pre> * Cloud database ID (not full path), e.g. "db0". * </pre> * * <code>string database_id = 3;</code> - * * @return The bytes for databaseId. */ - com.google.protobuf.ByteString getDatabaseIdBytes(); + com.google.protobuf.ByteString + getDatabaseIdBytes(); /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return A list containing the sdlStatement. */ - java.util.List<java.lang.String> getSdlStatementList(); + java.util.List<java.lang.String> + getSdlStatementList(); /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @return The count of sdlStatement. */ int getSdlStatementCount(); /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @param index The index of the element to return. * @return The sdlStatement at the given index. */ java.lang.String getSdlStatement(int index); /** - * - * * <pre> * SDL statements to apply to the database. * </pre> * * <code>repeated string sdl_statement = 4;</code> - * * @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); + com.google.protobuf.ByteString + getSdlStatementBytes(int index); /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -159,13 +116,10 @@ public interface UpdateCloudDatabaseDdlActionOrBuilder * </pre> * * <code>string operation_id = 5;</code> - * * @return The operationId. */ java.lang.String getOperationId(); /** - * - * * <pre> * Op ID can be used to track progress of the update. If set, it must be * unique per database. If not set, Cloud Spanner will generate operation ID @@ -173,20 +127,18 @@ public interface UpdateCloudDatabaseDdlActionOrBuilder * </pre> * * <code>string operation_id = 5;</code> - * * @return The bytes for operationId. */ - com.google.protobuf.ByteString getOperationIdBytes(); + com.google.protobuf.ByteString + getOperationIdBytes(); /** * <code>optional bytes proto_descriptors = 6;</code> - * * @return Whether the protoDescriptors field is set. */ boolean hasProtoDescriptors(); /** * <code>optional bytes proto_descriptors = 6;</code> - * * @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/UpdateCloudInstanceAction.java b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java similarity index 68% rename from proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java rename to owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java index 7fe449ce299..63e9e786c96 100644 --- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java +++ b/owl-bot-staging/v1/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/UpdateCloudInstanceAction.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * Protobuf type {@code google.spanner.executor.v1.UpdateCloudInstanceAction} */ -public final class UpdateCloudInstanceAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCloudInstanceAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.UpdateCloudInstanceAction) UpdateCloudInstanceActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCloudInstanceAction.newBuilder() to construct. private UpdateCloudInstanceAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private UpdateCloudInstanceAction() { instanceId_ = ""; projectId_ = ""; @@ -45,50 +27,46 @@ private UpdateCloudInstanceAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCloudInstanceAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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_UpdateCloudInstanceAction_fieldAccessorTable + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.spanner.executor.v1.UpdateCloudInstanceAction.class, - com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder.class); + com.google.spanner.executor.v1.UpdateCloudInstanceAction.class, com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder.class); } private int bitField0_; public static final int INSTANCE_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object instanceId_ = ""; /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The instanceId. */ @java.lang.Override @@ -97,29 +75,29 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * * <pre> * Cloud instance ID (not path), e.g. "test-instance". * </pre> * * <code>string instance_id = 1;</code> - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -128,18 +106,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The projectId. */ @java.lang.Override @@ -148,29 +122,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * Cloud project ID, e.g. "spanner-cloud-systest". * </pre> * * <code>string project_id = 2;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -179,19 +153,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * * <pre> * The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>optional string display_name = 3;</code> - * * @return Whether the displayName field is set. */ @java.lang.Override @@ -199,15 +169,12 @@ public boolean hasDisplayName() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * * <pre> * The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>optional string display_name = 3;</code> - * * @return The displayName. */ @java.lang.Override @@ -216,30 +183,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * * <pre> * The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>optional string display_name = 3;</code> - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -250,15 +217,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int NODE_COUNT_FIELD_NUMBER = 4; private int nodeCount_ = 0; /** - * - * * <pre> * The number of nodes allocated to this instance. At most one of either * node_count or processing_units should be present in the message. * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return Whether the nodeCount field is set. */ @java.lang.Override @@ -266,15 +230,12 @@ public boolean hasNodeCount() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * * <pre> * The number of nodes allocated to this instance. At most one of either * node_count or processing_units should be present in the message. * </pre> * * <code>optional int32 node_count = 4;</code> - * * @return The nodeCount. */ @java.lang.Override @@ -285,15 +246,12 @@ public int getNodeCount() { public static final int PROCESSING_UNITS_FIELD_NUMBER = 5; private int processingUnits_ = 0; /** - * - * * <pre> * The number of processing units allocated to this instance. At most one of * processing_units or node_count should be present in the message. * </pre> * * <code>optional int32 processing_units = 5;</code> - * * @return Whether the processingUnits field is set. */ @java.lang.Override @@ -301,15 +259,12 @@ public boolean hasProcessingUnits() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * * <pre> * The number of processing units allocated to this instance. At most one of * processing_units or node_count should be present in the message. * </pre> * * <code>optional int32 processing_units = 5;</code> - * * @return The processingUnits. */ @java.lang.Override @@ -320,17 +275,13 @@ public int getProcessingUnits() { public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 7; private com.google.spanner.admin.instance.v1.AutoscalingConfig autoscalingConfig_; /** - * - * * <pre> * The autoscaling config for this instance. If non-empty, this instance is * using autoscaling (processing_units and node_count should be set to * 0 if used). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> - * + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> * @return Whether the autoscalingConfig field is set. */ @java.lang.Override @@ -338,74 +289,60 @@ public boolean hasAutoscalingConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * * <pre> * The autoscaling config for this instance. If non-empty, this instance is * using autoscaling (processing_units and node_count should be set to * 0 if used). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> - * + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> * @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_; + return autoscalingConfig_ == null ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } /** - * - * * <pre> * The autoscaling config for this instance. If non-empty, this instance is * using autoscaling (processing_units and node_count should be set to * 0 if used). * </pre> * - * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7; - * </code> + * <code>optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;</code> */ @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 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 = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( - com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .<java.lang.String, java.lang.String>newDefaultInstance( + com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * labels. * </pre> @@ -413,21 +350,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 6;</code> */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * labels. * </pre> @@ -439,8 +375,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * labels. * </pre> @@ -448,19 +382,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 6;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + 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<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * labels. * </pre> @@ -468,11 +400,11 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 6;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -480,7 +412,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -492,7 +423,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -508,8 +440,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(5, processingUnits_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getAutoscalingConfig()); } @@ -532,23 +468,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, nodeCount_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, processingUnits_); - } - for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, processingUnits_); + } + for (java.util.Map.Entry<java.lang.String, java.lang.String> entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAutoscalingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAutoscalingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -558,33 +497,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.spanner.executor.v1.UpdateCloudInstanceAction)) { return super.equals(obj); } - com.google.spanner.executor.v1.UpdateCloudInstanceAction other = - (com.google.spanner.executor.v1.UpdateCloudInstanceAction) obj; + com.google.spanner.executor.v1.UpdateCloudInstanceAction other = (com.google.spanner.executor.v1.UpdateCloudInstanceAction) obj; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (hasDisplayName() != other.hasDisplayName()) return false; if (hasDisplayName()) { - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; } if (hasNodeCount() != other.hasNodeCount()) return false; if (hasNodeCount()) { - if (getNodeCount() != other.getNodeCount()) return false; + if (getNodeCount() + != other.getNodeCount()) return false; } if (hasProcessingUnits() != other.hasProcessingUnits()) return false; if (hasProcessingUnits()) { - if (getProcessingUnits() != other.getProcessingUnits()) return false; + if (getProcessingUnits() + != other.getProcessingUnits()) return false; } if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false; if (hasAutoscalingConfig()) { - if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false; + if (!getAutoscalingConfig() + .equals(other.getAutoscalingConfig())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -626,147 +571,141 @@ public int hashCode() { } public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateCloudInstanceAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudInstanceAction 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.UpdateCloudInstanceAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.spanner.executor.v1.UpdateCloudInstanceAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.spanner.executor.v1.UpdateCloudInstanceAction prototype) { + public static Builder newBuilder(com.google.spanner.executor.v1.UpdateCloudInstanceAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * * <pre> * Action that updates a Cloud Spanner instance. * </pre> * * Protobuf type {@code google.spanner.executor.v1.UpdateCloudInstanceAction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.spanner.executor.v1.UpdateCloudInstanceAction) com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.spanner.executor.v1.CloudExecutorProto - .internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto.internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + 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_UpdateCloudInstanceAction_fieldAccessorTable +